Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to set resluts folder through code
#1
Not Solved
Hi All,

Can anyone tell me how can I set results folder through code?

Generaly it asks us to define folder to save results when we select run.
But I want to do it through code as I am going to run scripts through QC directly.
Reply
#2
Not Solved
Hi Amit,

Try this.
Code:
TestName = Environment.Value("TestName")
Set qtResultsOpt = CreateObject("QuickTest.RunResultsOptions") ' Create the Run Results Options object
qtResultsOpt.ResultsLocation = "C:\Tests\" & TestName & "\ Results" ' Set the results location
Set qtResultsOpt = Nothing
msgbox Environment.Value("ResultDir")

Please let me know if you need any more info.
Thanks,
SUpputuri
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Executing via create "RES"xx folder? nishitd 0 1,253 03-07-2018, 01:09 AM
Last Post: nishitd
  code for validation to create a sub folder smiley 0 1,547 10-19-2016, 10:08 PM
Last Post: smiley
  [UFT] Close opened folder robertosalemi 1 3,353 02-10-2016, 07:06 PM
Last Post: robertosalemi
  Run scripts from folder badri 1 2,829 11-26-2014, 06:18 PM
Last Post: vinod123
  Folder dineshreddymca 0 2,234 03-08-2013, 09:50 AM
Last Post: dineshreddymca

Forum Jump:


Users browsing this thread: 1 Guest(s)