Rajdeephere
11 years agoNew Contributor
Issue with GeneralEvents_OnStopTest
Hi All,
I am using below piece of code for saving the test result in HTML format but at the end of the run it is thwoing VB error.
Sub main()
Call TestedApps.RunAll
call Runner.CallMethod("Login_Call.Login")
call GeneralEvents_OnStopTest(Sender)
Call TestedApps.CloseAll
End sub
Sub GeneralEvents_OnStopTest(Sender)
If Project.TestItems.Current.Name = "ProjectTestItem1" Then ---> here i am getting VB error
Call Log.SaveResultsAs("C:\Results", lsHTML)
Log.Message "Hello"
End If
End Sub
Attached is the snapshot of property defined at project level.
Please suggest.!
Regards