Forum Discussion

jamadarshivani's avatar
jamadarshivani
Occasional Contributor
5 years ago

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?