Guest User

Untitled

a guest
Jun 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. Dim qtApp 'As QuickTest.Application ' Declare the Application object variable
  2. Dim qtTest 'As QuickTest.Test ' Declare a Test object variable
  3.  
  4. Set qtApp = CreateObject("QuickTest.Application") ' Create the Application object
  5. qtApp.Launch ' Start QuickTest
  6. qtApp.Visible = True ' Make the QuickTest application visible
  7.  
  8. qtApp.Open "C:Tempsimple_test", True ' Open the test in read-only mode
  9.  
  10. ' set run settings for the test
  11. Set qtTest = qtApp.Test
  12. qtTest.Run ' Run the test
  13.  
  14. WScript.StdOut.Write "Status is:" & qtTest.LastRunResults.Status ' Check the results of the test run
  15. qtTest.Close ' Close the test
  16.  
  17. Set qtResultsOpt = Nothing ' Release the Run Results Options object
  18. Set qtTest = Nothing ' Release the Test object
  19. Set qtApp = Nothing ' Release the Application object
Add Comment
Please, Sign In to add comment