Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error is scheduling a QTP Test
#1
Not Solved
Hi Ia mtrying to schedule a QTP Test using following code but I get an error saying @ line 11. Could someone please look into this and see what I am doing wrong.

Code:
Dim Test_path
Test_path = "C:\Users\qad03322\Test3"
Dim qtApp 'As QuickTest.Application ' Declare the Application object variable
Dim qtTest 'As QuickTest.Test ' Declare a Test object variable
Set qtApp = CreateObject("QuickTest.Application") ' Create the Application object
qtApp.Launch ' Start QuickTest
qtApp.Visible = True ' Make the QuickTest application visible
' Set QuickTest run options
qtApp.Options.Run.RunMode = "Fast"
qtApp.Options.Run.ViewResults = False
qtApp.Open Test_path, True ' Open the test in read-only mode
' set run settings for the test
Set qtTest = qtApp.Test
qtTest.Run ' Run the test
qtTest.Close ' Close the test
qtApp.quit
Set qtTest = Nothing ' Release the Test object
Set qtApp = Nothing ' Release the App

Thank you,
Sqadri


Attached Files Image(s)
   
Reply
#2
Not Solved
Looks like we don't have "Test3" script at "C:\Users\qad03322\".
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Test runned from QualityCenter generated an error "Attempted to divide by zero." robertosalemi 1 2,350 10-14-2016, 08:38 PM
Last Post: robertosalemi
  Error while opening test run results vkalyankar 3 3,983 11-12-2014, 09:49 AM
Last Post: vinod123
  Error: Cannot open test Nagaraju6 1 5,608 04-04-2013, 04:47 PM
Last Post: Ankesh
  Failed to run the test due to an unknown error. Extensibility ajeshnair 4 6,361 10-17-2012, 03:13 AM
Last Post: dvmehta9
At Scheduling a run in QTP dol_fin 4 5,515 05-10-2012, 12:07 AM
Last Post: beejfred

Forum Jump:


Users browsing this thread: 1 Guest(s)