Forum Discussion
omatzura
17 years agoSuper Contributor
Hi!
you are correct regarding the recreation of the context between each run. Maybe you could use the LoadTestContext object available in the TestRunContext for this (this is a "global" context for all testcases in the loadtest);
def loadTestContext = context.LoadTestContext
//this will be null when running the testcase "alone"
if( loadTestContext != null )
{
...
}
Otherwise using TestSuite properties is definitely an option..
Hope this helps!
regards,
/Ole
eviware.com
you are correct regarding the recreation of the context between each run. Maybe you could use the LoadTestContext object available in the TestRunContext for this (this is a "global" context for all testcases in the loadtest);
def loadTestContext = context.LoadTestContext
//this will be null when running the testcase "alone"
if( loadTestContext != null )
{
...
}
Otherwise using TestSuite properties is definitely an option..
Hope this helps!
regards,
/Ole
eviware.com
Related Content
- 4 years agoRoshan
- 4 years agolboggala
- 3 years agoTommyTester
Recent Discussions
- 3 days agoemoya
- 3 days agoMyBalanceNow