Forum Discussion
omatzura
18 years agoSuper Contributor
Hi!
yes, you can do this with groovy: after your first request create a groovy script that gets the property and writes it to a properties-step in the second testcase, from which you then can do a property-transfer before the request in that tescase. The script would be something like
def value = ..get property value using groovyutils/xmlholder..
def tc = testRunner.testCase.testSuite.getTestCaseByName( "seconds testcase")
def props = tc.getTestStepByName( "properties" )
props.setPropertyValue( "..", value )
Hope this helps,
regards,
/Ole
eviware.com
yes, you can do this with groovy: after your first request create a groovy script that gets the property and writes it to a properties-step in the second testcase, from which you then can do a property-transfer before the request in that tescase. The script would be something like
def value = ..get property value using groovyutils/xmlholder..
def tc = testRunner.testCase.testSuite.getTestCaseByName( "seconds testcase")
def props = tc.getTestStepByName( "properties" )
props.setPropertyValue( "..", value )
Hope this helps,
regards,
/Ole
eviware.com