Translate

Can we declare a array in one action and pass it to another action in QTP

Let's assume you have an array Arr[] in Action A1.

You can do the following in A1
Environment.value(env) = Arr

This statement will map the array arr environment variable env.

To use this array in another action A2.
write the following in Action A2
var= environment(env)

We can then access the array elements with var which is mapped with the array Arr

Subscribe to Quality Assurance Knowledge Base! by Email

No comments :

Post a Comment