How to change the default Result Directory before the execution starts through scripts

1,696 views
Skip to first unread message

udhaya kumar

unread,
Jun 8, 2012, 1:49:00 AM6/8/12
to QTP - HP Quick Test Professional - Automated Software Testing
Hi All,
 
                 I am having seperate folder called resluts for storing all the results. How to change the default QTP Result directory to custom before the execution starts.
 
Please Help me.
 
Thank You,
Udhay

Anish Pillai

unread,
Jun 9, 2012, 12:31:33 AM6/9/12
to mercu...@googlegroups.com
Hi Udhay,

How are you running your test scripts? Directly from QTP or using AOM ?? If you are using AOM then you can use the below code to specify the result folder.

'Open QTP
'------------------------------------------------------------
Set qtpApp = CreateObject("QuickTest.Application")

'If QTP is not open then open QTP application
If qtpApp.launched <> True Then
qtpApp.Launch
End If

'Make the QuickTest application visible
qtpApp.Visible = True
   
'Set QuickTest run options
'Instruct QuickTest to perform next step when error occurs
qtpApp.Options.Run.ImageCaptureForTestResults = "OnError"
qtpApp.Options.Run.RunMode = "Fast"
qtpApp.Options.Run.ViewResults = False

'Open the test in read-only mode
qtpApp.Open strScriptPath, True

'set run settings for the test
Set qtpTest = qtpApp.Test

'Instruct QuickTest to perform next step when error occurs
qtpTest.Settings.Run.OnError = "NextStep"

'Create the Run Results Options object
Set qtpResult = CreateObject("QuickTest.RunResultsOptions")

'Set the results location
qtpResult.ResultsLocation = strResultPath

'Run the test
qtpTest.Run qtpResult





--
ar

sujit kumar

unread,
Jun 10, 2012, 8:06:02 AM6/10/12
to mercu...@googlegroups.com
Hi Udhay,
Better u use one XML file which store Result folder path into XML file
then load this XML file into all script and If you want to change this location just change into XML file and Enjoy

-- 
Thanks  & Regards 
Sujit :) 





--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en




siva prasad

unread,
Jun 10, 2012, 12:52:04 PM6/10/12
to mercu...@googlegroups.com
Udhay,
 
 
                I have one diubt how to compare excel sheet values and web table values.
I was faced this question in ADP.
 
         Any body please give me answer
 
It will help
 ful to me
--
prasad kopparapu
+91-9032114331

sachin mahajan

unread,
Jun 10, 2012, 12:56:00 PM6/10/12
to mercu...@googlegroups.com
u can compare them bt taking their values in variable or array ..

siva prasad

unread,
Jun 10, 2012, 10:40:06 PM6/10/12
to mercu...@googlegroups.com

I need example code
 
Thanks&Regards
prasad k
On Sun, Jun 10, 2012 at 10:26 PM, sachin mahajan <schn...@gmail.com> wrote:
u can compare them bt taking their values in variable or array ..

--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en



--
prasad kopparapu
+91-9032114331

Deepak Kumar Mahapatro

unread,
Sep 13, 2012, 5:11:36 AM9/13/12
to mercu...@googlegroups.com
Hi Uday,
You can assign the location path to Reporter.ReportPath at run time if not using AOM.

On Sun, Jun 10, 2012 at 5:36 PM, sujit kumar <sujit...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en




--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en



--
Regards,
Deepak
Reply all
Reply to author
Forward
0 new messages