Contributions
Re: Using parameters in JSON Body in REST HTTP POST method
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 isactually 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 ;-)17KViews1like1CommentRe: Using parameters in JSON Body in REST HTTP POST method
Thanks for the reply, I've already read the mentioned link. Let me clarify what I intended to do Since TestSuites use the Requests I added to the project I wanted to use a method-level parameter for the resource-request. My hope was that I can set some default options which I can also select with an expression. This is what the screenshot shows. Since this didnt work I tried using a actual value in the parameter-value without success. So I skipped the idea of a "generic" request and wanted to access the TestCase property which is defined as id and gets its value via a property-transfer According to the documentation I tried a property-expansion in various ways: "ticketId" : "${#TestCase#id}" "ticketId" : "${#Properties#id}" // mentioned in some forum "ticketId" : "${=testRunner.testCase.getProperty('id')}" "ticketId" : "${=testRunner.testCase.getPropertyValue('id')}" // just tried the following since nothing else seemed to work "ticketId" : "${=testRunner.testCase.testSuite.getProperty('id')}" "ticketId" : "${=testRunner.testCase.testSuite.getPropertyValue('id')}" Just to be clear: the property in the testcase is successfully set by the property-transfer, so there is a valid value at runtime.17KViews0likes0Comments