Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get qtp Reporter/Summary in vb script
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi,

I am writing a vb script to capture the test results(pass,fail, start time, end time, etc) and to add them into an email body. Basically I want to get Reporter.RunStatus which gives pass/fail infor. and Summary which gives the start/end time. But how do I get them in vbscript?

I tried CreateObject("QuickTest.Reporter), and it doesn't work. Also Summary is not a qtp object but en element of an action. I am new to QTP and vbs, can anyone help?

Thanks!

Rong

Plus note:

I am writing an external vbscript, which opens QTP and runs a test. At the end of test, Iwant to capture the qtp test resuls into the external vbscript and then send the results via email.
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Code:
Set app = createobject("QuickTest.Application")
Result_value = app.test.lastrunresults.status


Here , 'Result_value' will give the result of the test execution , u can use this for the further purpose.

Thanks,
Harish Shenoy
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Reporter unable to load results when objects are involved? Elimelech.Eli 2 3,792 06-01-2014, 01:37 PM
Last Post: Elimelech.Eli
  QTP test results summary details? Ramadas 2 3,462 10-25-2013, 05:00 PM
Last Post: Ramadas
  QTP Test results summary details Ramadas 0 2,018 10-24-2013, 02:50 PM
Last Post: Ramadas
  How to write Action Iteration Summary SaranKumarV 0 2,759 03-14-2011, 12:44 PM
Last Post: SaranKumarV
  Reporter.reportevent result not displayed for second checkpoint sudhirzpatil 5 4,546 12-07-2010, 06:22 PM
Last Post: manishbhalshankar

Forum Jump:


Users browsing this thread: 1 Guest(s)