cancel
Showing results for 
Search instead for 
Did you mean: 

Function names to step definition

SOLVED
Highlighted
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?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Manager

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


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

2 REPLIES 2
Highlighted
Community Manager

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

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Highlighted
Community Manager

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


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get properties of a web page element

See replies!

Compare images using the Region Checkpoint

See replies!

Compare HTML table with Excel file and correct data in Excel file

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!
Top Kudoed Authors