Forum Discussion
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.
Related Content
- 7 years ago