Forum Discussion

Kateryna's avatar
Kateryna
Contributor
13 years ago

Name of keyword tests

Hello, Is it possible to get the name of current keyword test and save it to variable? Thank you in advance. Kateryna
  • YMinaev's avatar
    13 years ago
    Hi,



    If you run your test via a test item, you can get its name via the test item's ElementToBeRun property. Here's the full name of the property whose value you need to get (for example, via the [url=http://support.smartbear.com/viewarticle/11075/]Call Object Method operation[\url]):

    Project.TestItems.Current.ElementToBeRun.Caption