Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to update Pass/Fail in Excel using Vbscript
#3
Not Solved
Hi,

Below is the solution,

Code:
Set qtApp = CreateObject("QuickTest.Application")
Set qtTest = qtApp.Test
Run_Status = qtTest.LastRunResults.Status ' This will give you the status of the Run i.e Pass or Fail.
Set appExcel = CreateObject("Excel.Application")
Set objWorkBook = appExcel.Workbooks.Add '
Set objWorkSheet =  objWorkBook.WorkSheets.Add
appExcel.Cells(2,2).Value = Run_Status'= This will update the status of the test in 2nd row and 2nd column in the worksheet
appExcel.ActiveWorkbook.SaveAs "c:\Results.xls"
appExcel.Quit

Use the above code at the end of out script.

- Vinod
Reply


Messages In This Thread
RE: How to update Pass/Fail in Excel using Vbscript - by ursvinod - 07-03-2009, 12:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is VBScripting disabled in Office 365 update? soumyarani 0 1,553 12-19-2020, 12:37 PM
Last Post: soumyarani
  how can i click a macro button in excel using vbscript arpan 1 3,832 10-03-2017, 06:27 AM
Last Post: supputuri
  Pass reference to datatable into function smallsteve 2 2,141 09-28-2017, 09:18 PM
Last Post: smallsteve
  UFT 12.02 Compatibility for IE 11.0 : Fail to identify the defined Object Amruta_121 9 11,289 01-11-2016, 12:45 PM
Last Post: vinod123
  Can you please help me in QTP DP to pass the variable name anshika.agarwal 1 2,803 09-04-2014, 06:43 PM
Last Post: anshika.agarwal

Forum Jump:


Users browsing this thread: 2 Guest(s)