| || |
Need help with opening the test result
I created a vbs script which runs every day and saves the test results in a different folder other than the dedicated folder which QTP saves.
Here is the script i am using.
Dim qtApp 'As QuickTest.Application
Dim qtTest 'As QuickTest.Test
Dim qtResultsOpt 'As QuickTest.RunResultsOptions
Set qtApp = CreateObject("QuickTest.Application") qtApp.Launch
qtApp.Visible = True
qtApp.Options.Run.CaptureForTestResults = "OnError"
qtApp.Options.Run.RunMode = "Normal"
qtApp.Options.Run.ViewResults = False
qtApp.Open "C:\HP\QTP\..\..\..\Test1", True
Set qtTest = qtApp.Test
Set qtResultsOpt = CreateObject("QuickTest.RunResultsOptions") qtResultsOpt.ResultsLocation = "C:\Temp\Test1\Res1"
Set qtResultsOpt = Nothing
Set qtTest = Nothing
Set qtApp = Nothing
So normally with out this code the results will save under
so when the test runs, i open the test result viewer and open the path of the Res1.
So with this code the results are successfully being saved in the C:\Temp\Test1\Res1, but when i try to open this in test result view it does not open. after i click Res1 it opens Act0, act1 and so on all the sub folder below that.
Can any one help me in resolving this.
Thanks a lot.
Re: Need help with opening the test result
I think, I have it, we need to open the results.xml file to open the result in the test result viewer