我是第一次尝试使用小黄瓜的业务分析师/ PO。我有以下场景(主要是这些类型),其中预期的行为是:
假设我是一个注册用户
我在登录页上
当我选择一个选项以...(例如搜索并连接到我的客户端代理)
然后系统会提示我打开地理位置(通过我的应用程序)
现在,根据上述提示的接受或拒绝,系统将为用户显示不同的屏幕,以供用户继续操作。如果我接受,系统将显示地图和特定搜索。如果我拒绝,系统会显示另一种搜索方式。
我如何实现这样的场景?
发布于 2018-05-21 23:21:03
你所拥有的是一种分裂,两种不同的结果可能会发生。它们是不同的场景。
首先,您需要一个提示符。第二,确认并检查结果,第三,否认并检查结果。
Background:
Given I a registered user
And I am on a landing page
When I select an option to search and connect with my client agent
Scenario: I should be prompted
Then the app should prompt me to turn on geo-location
Scenario: I turn on my geo-location
When I turn on my geo-location
Then I should see a map
And I should see a specific search
Scenario: I turn off my geo-location
When I deny the app access to my geo-location
Then I should see another way to searchhttps://stackoverflow.com/questions/50237831
复制相似问题