Cucumber语法格式

 @login
Feature: Login
@T1
Scenario: Login with correct credentail
Given I open login page
When I enter correct "username" and "password"
When I click login
Then I go to home page @T2
Scenario Outline: Login with invalid credentail
Given I open login page
When I enter correct "<username>" and "<password>"
When I click login
Then I see "<errorMessage>"
Examples:
|username|password|errorMessage|
| | |用户名不能为空|

要想参数匹配的书写格式,颜色自动变

上一篇:COM - COM编程的简单实现


下一篇:js字符串截取为数组