Forum Discussion
GiscardN
11 years agoFrequent Contributor
Hi,
You should be able to save the driver instance in the context, in the same manner an HTTP session can be maintained across the execution of a TestCase. See this article that explains it: http://www.soapui.org/Functional-Testing/testcase-execution.html: Starting up the TestCase, point 1.
You can try something like this:
def yourDriverInstance = ...
if( context["driverInstance"] == null )
context["driverInstance"] = yourDriverInstance
Then in later steps you can retrieve it as context["driverInstance"]
For your step 2 (logon step), take a look at this article for a non-Groovy alternative: http://www.soapui.org/Working-with-Projects/form-based-authentication-in-soapui.html.
Regards,
Giscard
SmartBear Support
You should be able to save the driver instance in the context, in the same manner an HTTP session can be maintained across the execution of a TestCase. See this article that explains it: http://www.soapui.org/Functional-Testing/testcase-execution.html: Starting up the TestCase, point 1.
You can try something like this:
def yourDriverInstance = ...
if( context["driverInstance"] == null )
context["driverInstance"] = yourDriverInstance
Then in later steps you can retrieve it as context["driverInstance"]
For your step 2 (logon step), take a look at this article for a non-Groovy alternative: http://www.soapui.org/Working-with-Projects/form-based-authentication-in-soapui.html.
Regards,
Giscard
SmartBear Support
Related Content
- 7 months agoDexterK