02-16-2012, 02:23 PM
(This post was last modified: 02-16-2012, 02:26 PM by QTPScripter.)
Can anyone please suggest possible solution for the below requirement :
Requirement :- We are having QTP test on our machine(client’s VM). We need to set up a batch file from which we should be able to execute the QTP test and we need to save results to QC(quality Center). We are using .vbs file for batch. We have done it for storing result on Local machine but facing problem while trying to store results on QC.
Below is the code we are trying to set the result location but it is not working:
We do not have customize result reporting. We want to save the results, as QTP provides, on QC directly.
Requirement :- We are having QTP test on our machine(client’s VM). We need to set up a batch file from which we should be able to execute the QTP test and we need to save results to QC(quality Center). We are using .vbs file for batch. We have done it for storing result on Local machine but facing problem while trying to store results on QC.
Below is the code we are trying to set the result location but it is not working:
Code:
Set qtResultsOpt = CreateObject("QuickTest.RunResultsOptions") ' Create the Run Results Options object
qtResultsOpt.ResultsLocation = "[QualityCenter\Resources] Resources\Res1”
qtTest.Run qtResultsOpt ‘Executing the Test with result option
We do not have customize result reporting. We want to save the results, as QTP provides, on QC directly.