Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Conditional run of an action
#2
Solved: 10 Years, 9 Months, 3 Weeks ago
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:

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.
Reply


Messages In This Thread
Conditional run of an action - by janriis - 09-22-2010, 02:27 PM
RE: Conditional run of an action - by PrabhatN - 09-22-2010, 06:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  run by action excellentpawan 0 1,656 03-01-2014, 08:08 AM
Last Post: excellentpawan
Exclamation QC is very slow and does not run my tc. My testcase has 'call to existing action' chong67 0 2,074 06-13-2012, 07:47 PM
Last Post: chong67
  Using Conditional Statement on O/P Parameter b/w QC BPT Components Ankesh 3 5,058 05-09-2012, 04:51 PM
Last Post: Shridevi.Salagare
  action status in QTP test - main action vanilla 1 4,505 02-12-2012, 10:59 PM
Last Post: rajpes
  How to call function lib at run time from an action anilyad 5 10,052 09-03-2010, 10:00 AM
Last Post: anilyad

Forum Jump:


Users browsing this thread: 1 Guest(s)