Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP Test results will return exit codes
#5
Solved: 10 Years, 9 Months, 4 Weeks ago
The requirement is : every test case should return exit/error codes e.g. 0 for pass, 1 for fail, 2 for stopped in the middle etc.

Test results displays in Run Results Viewer window in text i.e. Passed, Failed, Done and Warning but as per our requirement we need in numeric i.e. 0, 1, 3 and 3.

It would also fine if gets results in the form of codes in log/text file.

However i am also running tests from command prompt via vb script and after end of test a log file is generating with test status (Passed/Failed/Done/Warning) but we need in codes only.

Here is the code for getting the test status :
WScript.StdOut.Write "Test status: " + qtTest.LastRunResults.Status + vbCr

Hope you understand the issue ...

Thanks,
Ashish
Reply


Messages In This Thread
RE: QTP Test results will return exit codes - by asrivastava - 07-07-2011, 11:06 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Code to run all QTP scripts and see all results Pkapoor 11 16,966 08-15-2017, 02:58 AM
Last Post: Ravi
  To send the QTP Results to mail using Thunderbird Naresh 0 2,158 04-03-2015, 03:19 PM
Last Post: Naresh
  Error while opening test run results vkalyankar 3 4,027 11-12-2014, 09:49 AM
Last Post: vinod123
  Function return value is not passed during the 3rd iteration premanand1979 0 2,090 10-16-2014, 09:40 PM
Last Post: premanand1979
  How to send QTP status results to mobile Naresh 0 2,950 09-02-2014, 03:50 PM
Last Post: Naresh

Forum Jump:


Users browsing this thread: 1 Guest(s)