Forum Discussion
SmartBear_Suppo
15 years agoSmartBear Alumni (Retired)
Hi,
The context object is persisted for the entire run of the TestCase, so by setting a context variable in one TestStep, it should be readable in another, during the same execution. However, if you run the individual TestSteps one by one a new context will be created each time. So if you are testing just a script by itself it will fail if the required context variables are set in a different script, but when run as a TestCase, it should work. Hope this clears things up!
Regards,
Dain
eviware.com
The context object is persisted for the entire run of the TestCase, so by setting a context variable in one TestStep, it should be readable in another, during the same execution. However, if you run the individual TestSteps one by one a new context will be created each time. So if you are testing just a script by itself it will fail if the required context variables are set in a different script, but when run as a TestCase, it should work. Hope this clears things up!
Regards,
Dain
eviware.com