Forum Discussion

rdebie's avatar
rdebie
Contributor
17 years ago

Get the name of the Step

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

regards,

Raymond

3 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    sure.. try

    def name = context.currentStep.name

    regards!

    /Ole
    eviware.com
  • 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