Cucumber 按空手道示例表的行号筛选场景大纲
空手道中是否可以按行号过滤表格Cucumber 按空手道示例表的行号筛选场景大纲,cucumber,karate,Cucumber,Karate,空手道中是否可以按行号过滤表格 Scenario Outline: name is <name> and age is <age> * def temp = '<name>' * match temp == name * match temp == __row.name Examples: | name | age | | Bob | 5 | | Nyan | 6 | @CucumberOptions(f
Scenario Outline: name is <name> and age is <age>
* def temp = '<name>'
* match temp == name
* match temp == __row.name
Examples:
| name | age |
| Bob | 5 |
| Nyan | 6 |
@CucumberOptions(features = "src/test/resources/feature/scenarios.feature:2")
场景大纲:姓名和年龄
*def温度=“”
*匹配温度==名称
*匹配temp==\uu行名称
示例:
|姓名|年龄|
|鲍勃| 5|
|年| 6|
@黄瓜选项(features=“src/test/resources/feature/scenarios.feature:2”)
上述命令应仅运行上述表格的第二行是,它在0.9.5.RC4中工作
@RunWith(Karate.class)
@KarateOptions(features = "classpath:com/myco/test.feature:9")
public class TestRunner {
}
====
Feature:
Scenario Outline:
* print x
Examples:
| x |
| 1 |
| 2 |