Forum Discussion
omatzura
17 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
Related Content
- 2 years agoKimdongart1
- 8 months agoEgg
- 6 years ago678
Recent Discussions
- 10 hours agoKLWallace
- 7 days agoruchisingh