Micro Focus QTP (UFT) Forums
Place the results in a specific folder - 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: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Place the results in a specific folder (/Thread-Place-the-results-in-a-specific-folder)



Place the results in a specific folder - riteshnaidu - 12-27-2008

Hi Ankur,
I need to place the results of the test execution in a specific folder. I reffered the QTP help doc as u can see below, thats the script mentioned in help doc

Code:
Set qtResultsOpt = CreateObject("QuickTest.RunResultsOptions") ' Create the Run Results Options object
qtResultsOpt.ResultsLocation = "C:\Res1" ' Set the results location
Set qtResultsOp=nothing"


"however when i execute a simple script in QTP like below"

Code:
"Dialog("Login").WinEdit("Agent Name:").Set "ritesh"
Dialog("Login").WinEdit("Agent Name:").Type  micTab
Dialog("Login").WinEdit("Password:").SetSecure "495507a186cd47a16355ad62cc6a70950800572b"
Dialog("Login").WinButton("Cancel").Click

Set qtResultsOpt = CreateObject("QuickTest.RunResultsOptions") ' Create the Run Results Options object
qtResultsOpt.ResultsLocation = "C:\Res1" ' Set the results location
Set qtResultsOp=nothing"

i dont get the results placed at C:\Res1.
Please let me know if i am doin this is in a correct way, or is there another way to do it


Smile

Ritesh
"When the goin gets tough the tough gets goin"


RE: Place the results in a specific folder - Ankur - 12-27-2008

You are referring to QTP's Automation Object Model (AOM)... Read this post on Automation Object Model carefully, you might understand the reason.


RE: Place the results in a specific folder - riteshnaidu - 01-02-2009

Hi Ankur,
thanku for the help, i found what i wanted. once again thank u very much

Regards

Ritesh