Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Controlling Actions
#2
Solved: 12 Years, 10 Months, 2 Weeks ago
Hi,
Its possible to contoll the acitons.
First save the test which contains your 5 actions, then go to the local path of the script (i.e. C:\test\), open the script folder. you can find total 6 action folders there like Action0...Action5
open Action0-->open script file(notepad file) ->follow the below steps and save the script and run in QTP

Suppose if you dont want to execute Action2 in second Iteration
use the below script:

'################
Code:
RunAction "Action1", oneIteration
     'I have used Environment variable to get the Test Iteration

     temp=Environment("TestIteration")
     '## for second iteration condition get fail & it won't execute second Action
     if temp<>2 then       RunAction "Action2", oneIteration
     End If

     RunAction "Action3", oneIteration
     RunAction "Action4", oneIteration
     RunAction "Action5", oneIteration
'#########################


Regards
KrishDeep
Chennai
Reply


Messages In This Thread
Controlling Actions - by mahadevan.swamy - 10-21-2008, 03:43 AM
RE: Controlling Actions - by krishnas.tester - 10-21-2008, 12:13 PM
RE: Controlling Actions - by mahadevan.swamy - 10-21-2008, 09:58 PM
RE: Controlling Actions - by mahadevan.swamy - 10-21-2008, 11:27 PM
RE: Controlling Actions - by somisays - 10-22-2008, 02:59 AM
RE: Controlling Actions - by mahadevan.swamy - 10-22-2008, 08:31 PM
RE: Controlling Actions - by MR21135 - 11-07-2008, 04:27 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)