agiletstware
12 years agoOccasional Contributor
print test case name and status
Hello,
I need to print my test case name and its status (pass, fail, etc) to the log when a test case finishes.
I tried a simple onstepTest and onStartTest event, but seems like this is not supported?
Sub GeneralEvents_OnStopTest(Sender)
log.Message(Project.TestItems.Current.Name)
End Sub
Sub GeneralEvents_OnStartTest(Sender)
log.Message(Project.TestItems.Current.Name)
End Sub
I get an VBScript runtime error.
How can I print the testcase name? This should be fairly easy I hope
I need to print my test case name and its status (pass, fail, etc) to the log when a test case finishes.
I tried a simple onstepTest and onStartTest event, but seems like this is not supported?
Sub GeneralEvents_OnStopTest(Sender)
log.Message(Project.TestItems.Current.Name)
End Sub
Sub GeneralEvents_OnStartTest(Sender)
log.Message(Project.TestItems.Current.Name)
End Sub
I get an VBScript runtime error.
How can I print the testcase name? This should be fairly easy I hope
- Hi,
How are you running the tests?
I have something similar where I use Project.TestItems.Current.Name.
If I run the test from the individual test editor and I do not run the test from the Project Folder I get a run time error.
You have to add the tests to the project editor (Test Item panel) and run them from there.
http://support.smartbear.com/viewarticle/29618/