提问人:JosePepeDev 提问时间:8/15/2023 最后编辑:Mark SeemannJosePepeDev 更新时间:8/15/2023 访问量:19
BDD:您将如何改进此 Gherkin 规范?
BDD How would you improve this Gherkin spec?
问:
我正在从事 GTD 实现,对于如何指定系统的行为以遵循 GTD 的工作流程,我有点混乱。
我也在研究 BDD,这就是为什么我需要尽我所能具体说明系统在用户交互和其他外部事件中应该如何表现。
这是我当前的功能文件:
# language: en
Feature: Clarifier
This feature should allow the user to convert already extracted inputs into organizeable ones.
Scenario: User clarifies an input giving it subjective meaning
Since I have inputs to clarify
When the system shows me one input at a time ordered by priority
And tell me to enter into the system what that input means to me
So I should record my response related to that input.
@clarify_actionability
Scenario: User clarifies the actionability of an input as actionable
Since I have inputs to clarify
When I indicate to the system that I want to clarify an input that already makes subjective sense
So the system should ask me for each input if it is actionable or not
And I should record my response related to that input
@clarify_actionability
Scenario: User tries to clarify the actionability of an input that does not make subjective sense
Since I have inputs to clarify
When I try to clarify one that doesn't make subjective sense
So the system should not allow me to clarify it
And you should inform me that I cannot clarify the actionability of an input that does not make subjective sense.
@clarify_how many_steps
Scenario: User clarifies an indicated input actionable as a single step
Since one or more inputs are indicated as actionable
When I indicate to the system that I want to indicate one or more as actionable in a single step
Then the system should record my response related to that/those input/s
@clarify_how many_steps
Scenario: User tries to clarify an input as a single step without indicating it as actionable
Since one or more inputs were not indicated as actionable
When I try to indicate to the system that I want to indicate one or more as one-step actionable
So the system should not record my response related to that/those input/s
And you should inform me that I cannot clarify the number of actions of an input that is not actionable.
@plan_project
Scenario: User wants to plan a project for an actionable
Since I have inputs with subjective meaning
When indicating that one is actionable
And indicate that it is not one-step
So the system should allow me to plan a project
And register it in the system
如何在功能文件中定义“顺序工作”?
我怎样才能指定我希望表示层 (UI) 如何工作以遵循业务逻辑(我在这里遇到了麻烦,因为我不知道如何在不耦合 UI 的情况下保持与业务逻辑的内聚)
答: 暂无答案
评论