Forum Discussion
1 Reply
- Hello,
Depends on how long you need to persist the Object. If it is during a single run (TestCase, or TestSuite, depending on what you're running) you can place it in the run context:
def someObject = //Initialize the object here...
context['my_global_object'] = someObject
//... later, in a different TestStep/Script:
def someObject = context['my_global_object']
//Do something with someObject
Regards,
Dain
SmartBear Software