get name of current test in log.error event
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019
08:09 AM
02-15-2019
08:09 AM
get name of current test in log.error event
I cannot use Project.TestItems.Current to get the currently running test name because it is returning null in the Log.Error event. Is there a way to get the test name in code? Thanks
Solved! Go to Solution.
4 REPLIES 4
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019
09:02 AM
02-15-2019
09:02 AM
Project.TestItems.Current is the actual test item itself. Replace with Project.TestItems.Current.Name and see if that gets you what you need.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019
09:03 AM
02-15-2019
09:03 AM
I cannot get the Name because the Current is null. I did use name....
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019
09:27 AM
02-15-2019
09:27 AM
Are you running from the project level with test items added to it? Sounds like you might running an individual keyword test or script function.
Thanks,
Carson
Click the Accept as Solution button if my answer has helped
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019
12:34 PM
02-15-2019
12:34 PM
Ohhhhhhhhhh. Yes I am. Dern, now I am thinking of the documentation I was reading when I found that info. Thanks.
