Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Place the results in a specific folder
#1
Solved: 10 Years, 8 Months, 4 Weeks ago
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"
Reply
#2
Solved: 10 Years, 8 Months, 4 Weeks ago
You are referring to QTP's Automation Object Model (AOM)... Read this post on Automation Object Model carefully, you might understand the reason.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Solved: 10 Years, 8 Months, 4 Weeks ago
Hi Ankur,
thanku for the help, i found what i wanted. once again thank u very much

Regards

Ritesh
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Scroll Browser to display Specific Row in WebTable kdunn 3 3,416 06-15-2018, 04:07 AM
Last Post: Ankur
  QTP 11 is Machine specific ? Bala8290 0 2,266 04-03-2012, 07:08 PM
Last Post: Bala8290
  Does QTP Recognize IBM Work place forms 2.7??? nit_naresh 0 2,234 09-04-2011, 10:43 AM
Last Post: nit_naresh
Question Storing results in a different folder running scripts in QC using QTP sborusu 0 2,506 10-01-2010, 09:07 AM
Last Post: sborusu

Forum Jump:


Users browsing this thread: 1 Guest(s)