Micro Focus QTP (UFT) Forums
Post results directly to QC - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Post results directly to QC (/Thread-Post-results-directly-to-QC)



Post results directly to QC - QTPScripter - 02-16-2012

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:

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.