Completed

Ability to create a list and add values to it

I want to define different variables names with the same "GET_WEB_VALUE" or "SET_VAR" command every time the loop iterate. 

For example, I have values in different cells of a row, I'm looping through the row to get every value and assign it to a different variable name. Currently I have to do an if condition for each iteration. I want to change variables name based on each iteration. For example a variable "column_1" will change to "column_2" in the second iteration.

Or it will be helpful if we can right the value of the variable and list every time the the loop iterate.For example and array of column_names

0
4 comments
Avatar
Joseph Hamdan

Hasib,

We appreciate users requesting enhancements. We are evaluating your request and will provide updates, hopefully soon.

Regards,

Subject7 Team

0
Comment actions Permalink
Avatar
Hasib Rostaiee

Hi Joseph,

Is there an update on this?

Being able to write variables values into an array would be helpful for us when using loops, so later on we can use those variables. Currently the value of variable in a loop is replaced by the latest iteration of the loop unless we put a condition for each of the iteration to save them as different variable.

Enhancing SET_LIST command for this purpose would be ideal. 

0
Comment actions Permalink
Avatar
Joseph Hamdan

Hi Hasib,

There is still no updates at this time, will let you know as soon as there is any.

Thanks for your patience.

Regards,

Subject7 Team

0
Comment actions Permalink
Avatar
Joseph Hamdan

Hi Hasib,

The scenario above can be achieved using an empty list which can be created using Set_List command and the data added using Modify_List command. A step with Get_Web_Value command can get the value and store it in a variable and Modify_List takes the value and adds it to the list for you to use it later in your test case.

Here are some articles that demonstrate basic command usage:

Set_List (Scenario 6):

https://subject7.atlassian.net/wiki/spaces/SD/pages/879493553/SET+LIST+Command

Modify_List:

https://subject7.atlassian.net/wiki/spaces/SD/pages/1435303937/MODIFY+LIST+Command

Please let us know if this is helpful or if you have any questions or comments.

Regards,

Subject7 Team

0
Comment actions Permalink

Please sign in to leave a comment.