0
私はCucumber 3.xを使用し、Before hookでシナリオ名を取得します。私はシナリオ名を取得できますかCucumber-js 3.x:Before hookでシナリオ名を取得する方法は?
{ sourceLocation:
{ uri: 'name_my_feature.feature',
line: 206 } } //206 - is line current scenario name
:これだけを示しキュウリ3.xでは
Before(function (scenario) {
let name = scenario.name;
console.log(scenario) //debug printing
return require("./driver").createDriver(desired);
});
とはconsole.log:私のコードは次のように思えますか?
これは質問に対する答えを提供しません。十分な[評判](https://stackoverflow.com/help/whats-reputation)があれば、[投稿にコメントする]ことができます(https://stackoverflow.com/help/privileges/comment)。代わりに、[質問者からの明確化を必要としない回答を提供する](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can- i-do-代わりに)。 - [レビューから](/レビュー/低品質の投稿/ 18343911) – Mamun
私の答えのようです。 –