Forum Discussion
pkitkows
10 years agoOccasional Contributor
I could use bellow code to serialize a list and get/remove first item from the list.
myList = ["0", "1", "2", "3"]
List<String> mySynchronizedList = Collections.synchronizedList(myList);
order = mySynchronizedList.remove(0)
log.info ("order: " + order)
However, the mySynchronizedList has limited scope to only test step (groovy script).
How I could do this globally ? (per suite, project)
How can I return object from test step which will be accessible from another step?
Regards
myList = ["0", "1", "2", "3"]
List<String> mySynchronizedList = Collections.synchronizedList(myList);
order = mySynchronizedList.remove(0)
log.info ("order: " + order)
However, the mySynchronizedList has limited scope to only test step (groovy script).
How I could do this globally ? (per suite, project)
How can I return object from test step which will be accessible from another step?
Regards
Related Content
Recent Discussions
- 3 days agoemoya
- 3 days agoMyBalanceNow