黄瓜 - 你可以去然后什么时候去?
Cucumber - Can you go Then When Then?
这样的格式可以吗?
Background:
Given I am at the homepage
When I supply my shopify url
Scenario: New install
Then I get taken to Oauth page
When I supply my shopify credentials
Then I get taken to the app index page
我不希望 Oauth 页面在每个场景之前 运行,只有前两个步骤。
您可以像下面这样更改 Background
-
Background:
Given I am at the homepage
And I supply my shopify url
Scenario: New install
Then I get taken to Oauth page
When I supply my shopify credentials
Then I get taken to the app index page
这样的格式可以吗?
Background:
Given I am at the homepage
When I supply my shopify url
Scenario: New install
Then I get taken to Oauth page
When I supply my shopify credentials
Then I get taken to the app index page
我不希望 Oauth 页面在每个场景之前 运行,只有前两个步骤。
您可以像下面这样更改 Background
-
Background:
Given I am at the homepage
And I supply my shopify url
Scenario: New install
Then I get taken to Oauth page
When I supply my shopify credentials
Then I get taken to the app index page