Forum Discussion
4 Replies
- Hi!
yes.. the following properties are set in the context of the called TestCase;
(excerpt from java code)
properties.put( "#CallingRunTestCaseStep#", this );
properties.put( "#CallingTestCaseRunner#", testRunner );
properties.put( "#CallingTestRunContext#", testRunContext );
so in your target testcase you can do
// running from a run testcase?
if( context.getPropertyValue( "#CallingTestCaseRunner#" ) != null )
{
...
}
hope this helps!
regards,
/Ole
eviware.com - M_McDonaldSuper ContributorOK, I had to use context.getProperty( "#CallingTestCaseRunner#" ) instead, but that worked.
Now is there a way to detect which properties were marked for return so I could clear their values, specifically from the Setup script?
Thanks! - Hi!
the WsdlRunTestCaseTestStep instance in the #CallingRunTestCaseStep# property value has a returnProperties property (a list of strings), you should be able to use that!?
javadoc: http://www.soapui.org/apidocs/com/eviwa ... roperties()
regards!
/Ole
eviware.com - M_McDonaldSuper ContributorThanks, just what I needed!