kristoffer
12 years agoNew Contributor
using property in a rest request
I'm trying to use a property value in a simple rest request in a test case in soapui 5.0.
1) I have defined a single test suite "TestMetaData" that contains a single test case "TestAvailableDates".
2) I've double-clicked this test-case and chose the Properties tab. I've added a property called "month" and given that a value of "7".
3) I then go to the REST request (which is a child node to "Test Steps (1)", which is a child node to the "TestAvailableDates" testcase.
4) In the table with all the parameters for the REST request i've pasted "${#AvailableDates#month}" into the "month" parameter value column.
When i run the test no value is sent in the "month" parameter.
What am i missing? after searching the web for a few hours i have unfortunately failed to find any examples or documentation of how to do this.
/Kristoffer
1) I have defined a single test suite "TestMetaData" that contains a single test case "TestAvailableDates".
2) I've double-clicked this test-case and chose the Properties tab. I've added a property called "month" and given that a value of "7".
3) I then go to the REST request (which is a child node to "Test Steps (1)", which is a child node to the "TestAvailableDates" testcase.
4) In the table with all the parameters for the REST request i've pasted "${#AvailableDates#month}" into the "month" parameter value column.
When i run the test no value is sent in the "month" parameter.
What am i missing? after searching the web for a few hours i have unfortunately failed to find any examples or documentation of how to do this.
/Kristoffer