ushaplaxo
14 years agoContributor
How to pass an array?
How do I pass an array as a paramater value in my test step?
Here is what I am doing:
1. Running a test step from which I get 4 ids - id1, id2, id3, id4
2. I store those 4 ids in a data sink
3. I have to split those 4 ids into a group of 2 and pass it in the form of an array in my next test step
Here is my parameter itemid which takes an array
itemid: [{"itemCount":2,"itemstring":"id1,id2"},{"itemCount":2,"itemstring":"id3,id4"}]
How can I do this?
Thanks
Usha
Here is what I am doing:
1. Running a test step from which I get 4 ids - id1, id2, id3, id4
2. I store those 4 ids in a data sink
3. I have to split those 4 ids into a group of 2 and pass it in the form of an array in my next test step
Here is my parameter itemid which takes an array
itemid: [{"itemCount":2,"itemstring":"id1,id2"},{"itemCount":2,"itemstring":"id3,id4"}]
How can I do this?
Thanks
Usha