Forum Discussion
If you are looking to find out this information at runtime via code, for keyword tests, there currently isn't a way to say "This is the keyword test I'm currently running". For script code, you can find out what script routine is calling your current script routine using the "caller" methodology built into JavaScript.
- Marsha_R7 years agoModerator
The closest I got for the keyword tests is to push the keyword test name to the indicator at the top of every test and do a pop afterwards. This does a pretty good job of showing what test is running. I made it part of our template, but if you forget one, it'll be pretty obvious.
- nimishbhuta7 years agoFrequent Contributor
Hello Robert,
Thanks for your response.
Can you let me know how can I do this with VBScript?
Regards,
Nimish
- tristaanogre7 years agoEsteemed Contributor
I'm not familiar enough with VB script to answer that.
What's your use case/purpose for needing that information?
- nimishbhuta7 years agoFrequent Contributor
Hello Robert,
My use case is to use the script name to construct the test data path of excel sheet. For ex: I create a test script as such TC01_CreateOrder then I will use the test script as CreateOrder to construct the excel file name. C:\Project\TestData\<testscripname.xls>
Regards,
Nimish
Related Content
- 7 years ago
- 6 years ago
- 6 years ago
Recent Discussions
- 16 hours ago