Forum Discussion
Rick,
What we want is something that might look like Project.KeywordTests.Current.Name, and it would always return the name of the KeywordTest no matter where it was run from. Something similar for scripts would be useful as well.
Rick, you can get the test name (test name, not test item's name) by using the following property:
Project.TestItems.Current.ElementToBeRun.Caption
Unfortunately, currently it works only for test items, not for script tests.
Scott,
Could you please describe what you need to know the current test name for? Developers are still gathering information for the feature... Your description would help us understand the problem. Also, maybe we'll be able to find another (better) solution.
Why would I want to know the current keyword test name?
Because I archive files when running many keyword tests. When I archive the files, I want the archive location to contain the name of the test associated with the folder contents. Imagine yourself having 100 folders from different tests and asking yourself, which is associated with KeywordTestA, KeywordTestB, or KeywordTestC. In order to name, the folder I need the name of the keyword test, not TestItem.
Related Content
- 2 years agopstachelek
Recent Discussions
- 24 hours agoMW_Didata