Forum Discussion

Unibet_Support's avatar
Unibet_Support
Contributor
12 years ago

Passing parameters between test steps.

Hi! What is the best way to pass parameters between test steps?

I currently use Property Transfer feature, but I can't find a way to make it more dynamic.
Currently namespace contains my server name which changes from environment to environment and will be causing my tests to fail:

I have to pass ruleId returned as a response of one test step to another test step:

Using property transfer:

declare namespace ns1='http://hostA/service/rules/save';
//ns1:Response[1]/ns1:ruleId[1]


But I want hostA to be passed as another parameter, I need something like:

declare namespace ns1='http://' + ${#Project#SERVER} + '/service/rules/save';
//ns1:Response[1]/ns1:ruleId[1]


Is there any way to build the namespace dynamically?


Thanks!