UPDATE! The community will be go into read-only on April 19, 8am Pacific in preparation for migration on April 21. Read more.
UPDATE! The community will be go into read-only on April 19, 8am Pacific in preparation for migration on April 21.Read more.
Absent Member.
Absent Member.
1238 views

How to iterate certain action run multiple times

 
Hi,
'Script to Login
RunAction "Login [Login-Logout]", oneIteration

'Script to click the "Report" link
RunAction "Report [Report]", oneIteration

'Script to Logout
RunAction "Logout [Login-Logout]", oneIteration

I want my script to run Login\Logout only once but by Report action to run two\three (multiple) times ?
For Report action I did Parameterisation.

Please advise.


Thanks
 

 

0 Likes
1 Reply
Commander
Commander

Hello,

the oneIteration(or 0) parameter tells UFT to run this action once.

Now if you change this parameter to allIterations or 1, the script will run for the number of rows of in action's data sheet.

If the action's data sheet contains fewer rows than the global sheet, the last row of the action's data sheet will be used for each subsequent iteration.

 

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.