Forum Discussion
Partial solution, after more try-and-error
rupert_anderson gave me the right hint...thx. I checked what kind of object I am working with and I figured out that the "Properties" in my test-case is actually a Step-object.
${Properties#id}
works, where Properties is the Step-name. Carefull about the #, in order to reference a step, no leading # has to be used.
I do like SOAP-UIs capabilities, but the usability is kind of...difficult...how about a fresh JavaFX-Frontend ;-)
- rupert_anderson10 years agoValued Contributor
Hi,
Ok, glad you're getting somewhere.
Have been a bit busy, but was going to also suggest that you try just adding a simple context based property and then referencing that e.g.
In a Groovy TestStep preceeding your Resquest TestStep, add a context property like
context["testProp"]="hello1"
Then in the Request TestStep, resoolve this with ${testProp} - this should definately work.
Then other types of property references e.g. from wider scopes like TestCase, TestSuite, Project etc all should work fine, Just a question of getting the scope syntax right. BTW the pro version of SoapUI has a nice little feauture for forming the correct reference for you in a point and click way, not that I have SoapUI pro anymore! The open-source version takes a bit more practice.
The property expansion / scripting part of SoapUI is one of its best features in my opinion, but the syntax can take a little practice though as you say! :-)
Glad you got something working anyway,
Cheers,
Rupert
Related Content
- 7 years ago
Recent Discussions
- 2 days ago