Forum Discussion
omatzura
17 years agoSuper Contributor
Hi chas!
there are two ways:
1) the "REST way":
- define corresponding parameters in the parameters table and set their type to "TEMPLATE"
- in the path create placeholders using {} syntax, ie /metadata/device/{deviceId}/image/{imageId}
- set the values of the parameters either statically or with standard soapUI property-expansion, ie ${#TestCase#someTestCaseProperty}
2) the "soapUI way":
- upgrade to 2.5.1
- use property-expansions in the path like in your last example, ie /metadata/device/${#TestSuite#deviceId}/image/${#TestSuite#imageId}
-> These were not properly replaced in 2.5, 2.5.1 should fix the error message..
The primary reason to choose nr 1 over nr 2 is that the generated WADL will contain correct parameter definitions (if you open the interface window and look at the "WADL Content" tab)
regards!
/Ole
eviware.com
there are two ways:
1) the "REST way":
- define corresponding parameters in the parameters table and set their type to "TEMPLATE"
- in the path create placeholders using {
- set the values of the parameters either statically or with standard soapUI property-expansion, ie ${#TestCase#someTestCaseProperty}
2) the "soapUI way":
- upgrade to 2.5.1
- use property-expansions in the path like in your last example, ie /metadata/device/${#TestSuite#deviceId}/image/${#TestSuite#imageId}
-> These were not properly replaced in 2.5, 2.5.1 should fix the error message..
The primary reason to choose nr 1 over nr 2 is that the generated WADL will contain correct parameter definitions (if you open the interface window and look at the "WADL Content" tab)
regards!
/Ole
eviware.com