Forum Discussion
SmartBear_Suppo
Alumni
13 years agoHi Tino,
If you want to share objects between TestSteps in the same case, you can simply save them in the test case's context (it has basic Map<Key, Value> functionality), like this:
and then access them in a different test step using
I hope this helps you solve your problem!
Regards,
Arian
SmartBear Sweden
If you want to share objects between TestSteps in the same case, you can simply save them in the test case's context (it has basic Map<Key, Value> functionality), like this:
def myObject = new SomeSortOfObject()
context.put("AStringKey", myObject)
and then access them in a different test step using
context.get("AStringKey")
I hope this helps you solve your problem!
Regards,
Arian
SmartBear Sweden