Forum Discussion
omatzura
18 years agoSuper Contributor
Hi Sachin,
try creating the connection in the setup script of the TestCase and save it in the context which you can access in your assertion as well.. ie in the setup script:
context.myConnection = ..
and in the assertion
def connection = context.myConnection
You can then close it in the tearDown script as well..
regards!
/Ole
eviware.com
try creating the connection in the setup script of the TestCase and save it in the context which you can access in your assertion as well.. ie in the setup script:
context.myConnection = ..
and in the assertion
def connection = context.myConnection
You can then close it in the tearDown script as well..
regards!
/Ole
eviware.com