Forum Discussion
Defender
16 years agoContributor
Hmmm... I'm not a guru in SoapUI but I try... 
1. Create a property on TestSuite level. Default value will be empty. The type is TEMPLATE. For example, its name is MyProperty1.
2. Add the TearDown script on the TestCase1 which finds the necessary header, parses it (takes last number from the link, regExp can be used, for example) & stores it as value of property from step1.
3. Add {/MyProperty1} to the link of resource used as source for TestCase2.
I think it will work
P.S. Some useful examples:
It's to find the necessary header.
It's to manage the property value.
Your object path will differ because your property location differs from those in example.

1. Create a property on TestSuite level. Default value will be empty. The type is TEMPLATE. For example, its name is MyProperty1.
2. Add the TearDown script on the TestCase1 which finds the necessary header, parses it (takes last number from the link, regExp can be used, for example) & stores it as value of property from step1.
3. Add {/MyProperty1} to the link of resource used as source for TestCase2.
I think it will work

P.S. Some useful examples:
context.currentStep.getHttpRequest().getResponse().properties["responseHeaders"]
It's to find the necessary header.
var userName = curTestStep.getProperty("MyProperty1").getValue();
var userName = curTestStep.getProperty("MyProperty1").setValue();It's to manage the property value.
Your object path will differ because your property location differs from those in example.