Forum Discussion

Srivats's avatar
Srivats
Visitor
3 years ago
Solved

How to read test case custom properties value in query parameter in SOUPUI.

In Test Case Custom Properties I have Field "Id" with Value "AGSKH152639RFA".

 

In SOUPUI when whn we are preparing request if we select Style as template then we can read Test case Custom Properties Value by using ${#TestCase#Id}.

 

But when we  select Style as Query In that Case Id is not replaced with stored value it is printing as it is ${#TestCase#Id}.

 

My question is how can we read custom properties value in query parameter?

Note:-

I dont want to do manually like copy the value from custom properties field and paste in query parameter because here every time new id will generate.

here i am reading Id value from another response and stored in testcase custom properties and passing this Id in another request.