Forum Discussion
bernhardn
10 years agoOccasional Contributor
For all of you who use SoapUI non-Pro, I finally came up with a solution:
myURI = testStep.getPropertyValue("Endpoint")+context.expand(testStep.getResourcePath())+mytext.subSequence(0,mytext.size()-1)
with mytext built like this:
mypropnamelist = testStep.getResource().getPropertyNames();
mytext = "?";
for (xx=0;xx<mypropnamelist.size();xx++){
mytext = mytext + mypropnamelist[xx] + "=";
mytext = mytext + context.expand(testStep.getPropertyValue(mypropnamelist[xx])) + "&"
}
Even the sorting of the parameters corresponds to the one used in the teststep (i.e. is not alphabetical).
Enjoy
Bernhard
myURI = testStep.getPropertyValue("Endpoint")+context.expand(testStep.getResourcePath())+mytext.subSequence(0,mytext.size()-1)
with mytext built like this:
mypropnamelist = testStep.getResource().getPropertyNames();
mytext = "?";
for (xx=0;xx<mypropnamelist.size();xx++){
mytext = mytext + mypropnamelist[xx] + "=";
mytext = mytext + context.expand(testStep.getPropertyValue(mypropnamelist[xx])) + "&"
}
Even the sorting of the parameters corresponds to the one used in the teststep (i.e. is not alphabetical).
Enjoy
Bernhard
Related Content
Recent Discussions
- 4 days agoemoya