Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to initiate from 3rd script
#1
Hi,

If I have n no. of scripts and when i run the QTP, it runs from the first script i've created. What should i do to run from the (i mean the start script) 3rd or any other script in between
Reply
#2
Hi,

You can create a new action on top of all actions and call all the actions inside the new action in an order you want the actions to be executed. Then inside the new action run from any step (i.e any action) by "Run from step" option.

Hope it helps you.
Reply
#3
Scripts in the sense, are u talking about actions?
The other way is, just right click on the action in 'Test Flow' panel, and select 'Run from Action' option.
Reply
#4
Yes Prabhat is correct. You can do that one else you place the cursor from where you want to execute in your existing script and then select the option "Run from step" by right clicking or presss only "ctrl+F5".
Reply
#5
If you are talking about scripts, then it can be done like:
Write .vbs file where you will have a function to execute the scripts by launching the qtp.
EX:
Code:
If (Condition1) Then ExecuteScript "Path\script1" Else If (Condition2) Then ExecuteScript "Path\script2" End If End If Public sub ExecuteScript(ScriptPath) .. .. .. End Sub


Now run this vbs file.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Function return value is not passed during the 3rd iteration premanand1979 0 2,652 10-16-2014, 09:40 PM
Last Post: premanand1979

Forum Jump:


Users browsing this thread: 1 Guest(s)