1. 程式人生 > >Cucumber語法格式

Cucumber語法格式

ros use gin then ror val erro 不能 spa

 1 @login
 2 Feature: Login
 3     @T1
 4     Scenario: Login with correct credentail
 5         Given I open login page
 6         When I enter correct "username"  and  "password"
 7         When I click login
 8         Then I go to home page
 9 
10
11 
12    @T2
13   Scenario Outline: Login with invalid credentail
14 Given I open login page 15 When I enter correct "<username>" and "<password>" 16 When I click login 17 Then I see "<errorMessage>" 18 Examples: 19 |username|password|errorMessage| 20 | | |用戶名不能為空|

要想參數匹配的書寫格式,顏色自動變

Cucumber語法格式