Micro Focus QTP (UFT) Forums
Issue with Actions - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Issue with Actions (/Thread-Issue-with-Actions)



Issue with Actions - uma87 - 09-14-2012

Hi,

My QTP test has 2 Actions, Action1 and Action2.
Action 1 is the main script and Action 2 is called in Action 1

script under Action1:


Code:
browser().Page().webbutton("Sign In").click
CODE
Run Action 2()
CODE

Browser().close
''''''End of the test

test runs fine till browser().close, After that it again trys to run Action2. how to make sure test doesnt rerun Action2.


RE: Issue with Actions - Ankesh - 09-14-2012

Set Action 2 to run for one iteration only.