Highlighted
Absent Member.
Absent Member.
1796 views

Increment parameter value on Block Iteration

When we add actions under block section, and configure it run 10 iteration. paramerter values referenced in these action files are not updated on each of these iteration.All 10 iteration , parameter holds same value. Why so? how do we solve this problem.
0 Likes
2 Replies
Highlighted
Absent Member.
Absent Member.

Re: Increment parameter value on Block Iteration

don't forget to update or change the way your test data is being utilized.

Go to the paramer list and select the parameter in question, then set the properties to Select next row: sequential and Update vaue on: Each Iteration.

if that does not work because of the complexity of the script. use the following funtion to advance the value manually at the start of the iteration or when you want the value to change or advance: lr_advance_param()

thanks


~Hector
0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: Increment parameter value on Block Iteration

Hi sanpal,

the scope of a variable depend on where it is defined, if it's defined in global, it is global for all functions.

But if variables is defined inside a function, it is only scoped to the function, and each time the function is call, the variable is reinitialised.

--
david
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.