QTP AOM Query: Test.Run step hanging during test execution
We have a QTP driver script which launches QTP, opens the test, sets some test parameters and results options and executes the test. We use this script extensively in our regression environment. we execute the test in VM machines which are of decent configuration.
we see that QTP hangs at the below step. it executes the entire test but stops at this point. we run our tests overnight on the VM machines. This issue is resulting in tests not getting executed on time because QTP is stuck in few of the machines.
qtTest.Run qtResultsOpt,true,objParams ' Run the test with params
Following the above line of code is qttest.close we have seen qtp hanging at this point as well sometimes. Could anyone give us some pointers to resolve this issue? Could this be related to environment?
Any help\inputs on this is appreciated.
Technically I do not see a reason for this to fail since we have the same implementation which runs quite fine without any issues. Can you try with below...
Set qtApp = CreateObject("QuickTest.Application") ' Create a Application object
Set qtTest = qtApp.Test
qtTest.Settings.Run.OnError = "NextStep" ' Instruct QuickTest to perform next step when error occurs
qtApp.Test.Run qtOptions, True ' Run the test and wait for it to finish before continuing the automation script
qtApp.Test.Save ' Save the test
qtApp.Quit ' Exit QuickTest
Last edited by bhavinvt; 04-17-2014 at 02:52 PM.