Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Place the results in a specific folder
#1
Solved: 11 Years, 4 Months, 2 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: 11 Years, 4 Months, 2 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: 11 Years, 4 Months, 2 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,810 06-15-2018, 04:07 AM
Last Post: Ankur
  QTP 11 is Machine specific ? Bala8290 0 2,362 04-03-2012, 07:08 PM
Last Post: Bala8290
  Does QTP Recognize IBM Work place forms 2.7??? nit_naresh 0 2,353 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,596 10-01-2010, 09:07 AM
Last Post: sborusu

Forum Jump:


Users browsing this thread: 1 Guest(s)