Micro Focus QTP (UFT) Forums
Running the 1st Action only once - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Running the 1st Action only once (/Thread-Running-the-1st-Action-only-once)



Running the 1st Action only once - noeghisaacs - 12-18-2009

Hi All

How do I run the Login Action once when having more than one Iteration.
Code:
RunAction "Login_Parm [Login as Intermediary]", oneIteration
Wait(20)
RunAction "CreateClient [CreateClient]", oneIteration

RunAction "Product [Product]", oneIteration

'Hub
Browser("Investment Hub").CloseAllTabs

Wait(5)



RE: Running the 1st Action only once - omjsr - 12-28-2009

We can use combination of "FOR" loop and "if" condition so that it can get run only one time.