我们的两个用户角色似乎有一个相似的故事。
有一个外部和一个内部销售人员被确定为不同的角色。
他们都可以在调查中捕获数据。但是外部推销员(并且只有她)能够添加新的调查来源(例如商店),但只能在创建新调查时添加。内部销售人员必须在另一个系统中添加新的调查源,该系统将在一夜之间导入。没有调查就不可能添加新的调查来源。
到目前为止,我们有这个故事:
As a salesman i can create a survey so that the survey source can be benchmarked.
而这些场景:
Scenario: Survey created by internal salesman
Given an internal salesman
and a choosen shop as survey source
when a survey is created
then the survey source is benchmarked.
Scenario: Survey created for new survey source by external salesman
Given an external salesman
and a new shop as survey source
when a survey is created
then the survey source is added
and the survey source is benchmarked.
我怀疑这应该是要求的结束。首先,没有明确定义“推销员”角色。但我们在故事中使用它。并且没有明确规定只能由外部推销员创建新的调查来源。
我们应该改写还是拆分故事?将“添加新调查源”放在场景中是否足够?