【发布时间】:2021-06-21 23:21:01
【问题描述】:
如果我需要验证多个点,我必须在单独的场景中编写验证,还是必须将它们分组到一个场景中?我知道两者都是可能的。但是,作为 QA 工程师有什么建议呢?
例如:
Scenario: scenario A
Given I need to search for the product "xxxxx"
When I found the product on the list
And I click on the product item
And I click on the Update Icon
And I enter "xxxxx" as a new product name
And I click on the Save button
Then The system displays a successful message.
And The system redirects to the main page.
VS
Scenario: scenario A
Given I need to search for the product "xxxxx"
When I found the product on the list
And I click on the product item
And I click on the Update Icon
And I enter "xxxxx" as a new product name
And I click on the Save button
Then The system displays a successful message.
Scenario: scenario B
Given I need to search for the product "xxxxx"
When I found the product on the list
And I click on the product item
And I click on the Update Icon
And I enter "xxxxx" as a new product name
And I click on the Save button
Then The system redirects to the main page.
【问题讨论】: