在量角器中的黄瓜中将值传递到不同的步骤

时间:2019-03-26 16:24:42

标签: typescript protractor cucumber

我需要使用量角器打字稿将值从一个步骤传递到黄瓜的步骤定义文件中的另一步骤 通用示例:

When('the user enters the value {string}',    function() {

//code written to enter the value
}) 

Then('the user has entered the value') 
{
// I need the value entered in the previous step to be validated here
}

1 个答案:

答案 0 :(得分:0)

{{1}}