Run QTP Test using VBscript - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Run QTP Test using VBscript (/Thread-Run-QTP-Test-using-VBscript) |
Run QTP Test using VBscript - riteshgpt - 04-08-2010 Hi I am using QTP to test windows application. I have created test1 with 10 action action1 , action2 .. action 10 Now I am running test using VB script. By default its start with Action1. however I want to run action order specify by me on the fly using vbscript. Some times I want to run Action 2 and Action 10 and some time Action 1 and Action 10 like that its depend of condition. here is my vbscript Code: Dim qtApp 'As QuickTest.Application ' Declare the Application object variable RE: Run QTP Test using VBscript - Saket - 04-09-2010 You cant do the way you mentioned in your vbs. the vbs will help you open the test not the action which are associated with your test. one of the way could be write some more code in your test to run an action based on certain condition on input to the test. you can pass the input parameter to the test from vbs and then in your test you can decide which action to run. RE: Run QTP Test using VBscript - riteshgpt - 04-09-2010 Hi Saket thanks for response. can you please provide some sample for same, if it is possible. |