Pass array between actions
I just want to know if it is possible to pass an array between actions?
I created an array with 14 elements, Array1, in a reusable action = "Action1".
I then want to then compare the data on my second web page, using "Action2" to the data that is in Array1.
I know how to pass a variable between actions:
RunAction "Action2", oneIteration, "RGA"
'Where RGA is the variable.
Re: Pass array between actions
A co-worker just gave me the code needed. Here is the answer:
This is the code to pass an array between two Actions
'At the end of “Action1” script add this code
arr_Temp = arrAddressChangeNew 'The second array is the primary array under test.
Environment.Value("arrAddressChangeNew") = arr_Temp
'At the beginning of “Action2” script add this code
arrAddressChangeNew = Environment.Value("arrAddressChangeNew")