How to find the Test Result Path at run time.

Hi All,

I would like to know, how to get test result path at run time, mean to say in descriptive programming, Is there any method available for the same.

I would be grateful to you for your help.


Regards,

Akshaya Madali

Questions by akshayainbox

Showing Answers 1 - 6 of 6 Answers

Set qtTest = qtApp.Test


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


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


qtResultsOpt.ResultsLocation = "C:AlternateToBPTTestResultRes1" ' Set the 'results location



qtTest.Run qtResultsOpt,true ' Run the test



qtTest.Close ' Close the test


Set qtResultsOpt = Nothing ' Release the Run Results Options object


Set qtTest = Nothing ' Release the Test object


Regards,
Nawab

goldvels

  • Apr 18th, 2008
 

There is one "Built-in Environment variable in QTP called "ResultDir".
We can Get the test result path as below...

a = Environment.Value("ResultDir")

Ans:

for ex: result path will be  "C:Temp"

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions