cancel
Showing results for 
Search instead for 
Did you mean: 

Get the name of the Step

Contributor

Get the name of the Step

Is it possible to get the name of the current step?

regards,

Raymond
3 REPLIES 3
Super Contributor

Re: Get the name of the Step

Hi!

sure.. try

def name = context.currentStep.name

regards!

/Ole
eviware.com
Highlighted
Contributor

Re: Get the name of the Step

thanks
Contributor

Re: Get the name of the Step

Ole,

It doesn't work. I got the message

Tue Aug 07 12:45:07 CEST 2007:ERROR:java.lang.NullPointerException: Cannot get property: name on null object

I just made a new groovy script and added one line of code:
context.currentStep.name

Then when i run this, i got the message above
New Here?
Join us and watch the welcome video:
Watch the New Interview
APITestingMistake#2
Top Kudoed Authors