Ask a Question

Function names to step definition

SOLVED
jamadarshivani
Occasional Contributor

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?

2 REPLIES 2
sonya_m
SmartBear Alumni (Retired)

Thank you for posting this question @jamadarshivani !

Let's ask Community members for help.

 

@AlexKaras @Wamboo @Vallalarasu_P @m_essaid could you look at this?


Sonya Mihaljova
Community and Education Specialist

sonya_m
SmartBear Alumni (Retired)

@jamadarshivani I clarified this, this does not seem possible.


Sonya Mihaljova
Community and Education Specialist

cancel
Showing results for 
Search instead for 
Did you mean: