09-22-2010, 06:25 PM
Hi janriis,
You can acheive this as follows:
1. Create an action named say "Driver_Script"
2. Inside the Driver_Script action call your company-specific actions based on your conditions. (Tick "After the current step" option while inserting the company-specific actions inside the Driver_Script action)
The Driver_Script action will have code something like the below:
You can make use of "LoadAndRunAction" instead of "RunAction" to avoid loading of unnecessary action(s) if you have QTP 10.
You can acheive this as follows:
1. Create an action named say "Driver_Script"
2. Inside the Driver_Script action call your company-specific actions based on your conditions. (Tick "After the current step" option while inserting the company-specific actions inside the Driver_Script action)
The Driver_Script action will have code something like the below:
Code:
If Company = "A" Then
RunAction "Action_A", oneIteration //number of action iteration may vary
Else
RunAction "Action_B", oneIteration
End If
You can make use of "LoadAndRunAction" instead of "RunAction" to avoid loading of unnecessary action(s) if you have QTP 10.