【发布时间】:2018-05-03 19:46:12
【问题描述】:
我正在用量角器处理黄瓜。 我有一个场景,我需要将另一个场景称为前提条件。 图案是这样的:
场景1:
@test1
Scenario: first scenario
场景2:
@test2
//Need to call the first scenario as the pre-condition
Scenario: second scenario
这里,我想用黄瓜钩。 所以,我的钩子文件是这样的:
this.Before({tags: ["@test2"]}, function (event, callback) {
console.log('call the first scenario');
this.feature(tags: ["@test1"]);
callback();
});
谁能告诉我该怎么做 "this.feature(tags: ["@test1"]);"
【问题讨论】:
标签: angularjs protractor cucumber hook