Forum Discussion

Morgan's avatar
Morgan
Frequent Contributor
11 years ago

checking to see which script is running

I'm sure this is easy but I can't figure it out... what do I use to look for which script routine is running?  Like "If x is the script being run then do y..."   Thanks! Morgan
  • karkadil's avatar
    11 years ago
    If you use Test Items for running your tests, you can use TestItems.Current.Name property. You can find usage example here

    http://support.smartbear.com/viewarticle/56316/



    However, if you want to get the name of the current function, it will be more challenging :)