Forum Discussion

jamadarshivani's avatar
jamadarshivani
Occasional Contributor
4 years ago
Solved

Function names to step definition

Can we assign names to functions of step definitions and use it in other units ?

When("I enter {arg}, {arg}", function (param1, param2){
  Log.Message("Pass");
});

 

For example:

When("I enter {arg}, {arg}", function enterData (param1, param2){
  Log.Message("Pass");
});
 Is this possible?