我的功能文件中有以下两种情况:
@system-A @updating-dob
Scenario: Updating customers dob
Given an account from system A
When I save the dob
Then I should see the dob is updated successfully
@system-B @updating-dob
Scenario: Updating customers dob
Given an account from system B
When I save the dob
Then I should see the dob is updated successfully
如您所见,我在同一个文件中有两个场景,但只有Given
不同。有没有办法可以使用 Scenario Outline 将这两个场景结合起来?
顺便说一句,步骤定义为
Given an account from system A
Given an account from system B
是 10 行代码。