Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
execute tests using VB Script
#1
Not Solved
Hi All,

I am new to QTP. I was doing a sample for executing test from another test(VB scripting) in QTP. Below is the code snippet

Code:
set qtApp1 = CreateObject("QuickTest.Application")
If Not qtApp1.Launched then
qtApp1.Launch
end if
qtApp1.Visible = True '
qtApp1.Options.Run.RunMode = "Fast"
qtApp1.Options.Run.ViewResults = True

qtApp1.Open "D:\Test2"

set qtTest = qtApp1.Test
qtTest.Run
qtTest.Close
qtApp1.Quit

I am getting a runtime error while executing the above code. It kicks me out at qtApp1.Open "D:\Test2" saying "The operation failed because the application is busy"

Could you please let me know what could be the reason for this type of error
Reply


Messages In This Thread
execute tests using VB Script - by sahithiqtp - 07-25-2011, 06:29 PM
RE: execute tests using VB Script - by rajpes - 07-25-2011, 08:10 PM
RE: execute tests using VB Script - by sahithiqtp - 07-26-2011, 08:59 AM
RE: execute tests using VB Script - by rajpes - 07-27-2011, 09:09 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Execute button of putton won't be clicke automaticly in UFT (VB) MarUFT 3 2,675 11-21-2016, 04:22 PM
Last Post: Ankur
  [UFT] Fixed web tests with dynamic parts jdd 3 2,607 04-05-2016, 02:56 PM
Last Post: vinod123
  Not able to execute script shanthalaAR 0 2,078 06-27-2015, 03:53 AM
Last Post: shanthalaAR
  How to Execute a testset from QC using OTA framework AutomationTester2011 12 52,575 01-21-2015, 09:22 PM
Last Post: karthik_sanakran
  Is there a possible way to execute sql in QTP using 'WITH' clause shruthic 0 3,106 04-26-2014, 11:42 PM
Last Post: shruthic

Forum Jump:


Users browsing this thread: 1 Guest(s)