Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to stop Second Action Call
#1
Solved: 10 Years, 9 Months ago
Hi,
In My script I have two Actions say:
Action1
Action2
By default both the action code executes as we run the script. But I dont want to run the Action2 based on some condition I am checking in Action1.
Could we do that.. Please help..
Thanks In Advance.
Reply
#2
Solved: 10 Years, 9 Months ago
tried with if statement?
Reply
#3
Solved: 10 Years, 9 Months ago
Hi,

Use if statement and if ur condition meets then go for LoadAndRunAction statement.

Regards,
Sankalp
Reply
#4
Solved: 10 Years, 9 Months ago
Thank for reply..
I am using the IF condition for running Action2 but my problem is at the end to Action 1 execution automatically it switches to Action2 execution which I dont want it...
let me know how can i stop this execution..
Reply
#5
Solved: 10 Years, 9 Months ago
Hi,

Are you calling action 2 from Action 1 or these 2 actions are called independently from one driver script?


Regards,
Sankalp
Reply
#6
Solved: 10 Years, 9 Months ago
hi, make your action 2 a resuasable aciton, then delete it from test flow. so still see action 2 from resources and can call from your if.... call action 2
Reply
#7
Solved: 10 Years, 9 Months ago
Hi, Thanks alot..
after deleting from Test Flow it works as I was expecting..

regards,
Faheem
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Object not found during the 2nd iteration of an Action call in a For loop BGunay 0 855 04-23-2020, 07:08 PM
Last Post: BGunay
  Is it possible to call Java window and Power Builder Window in 1 Action sbkhbk 0 2,447 06-05-2014, 08:18 PM
Last Post: sbkhbk
  Perform some functions whenever QTP Stop button is pressed smartkarthi 2 2,941 08-22-2013, 11:43 AM
Last Post: smartkarthi
  insert call to new action bistritapcv 1 2,457 04-06-2013, 12:09 PM
Last Post: ravi.gajul
Exclamation QC is very slow and does not run my tc. My testcase has 'call to existing action' chong67 0 2,067 06-13-2012, 07:47 PM
Last Post: chong67

Forum Jump:


Users browsing this thread: 1 Guest(s)