...
First, the user would need to store the variable value of the POST.rest.testcases API call.
Click on the edit button under the Actions tab.
Step A: Click on the Send button >> In the response, expand the Body> data> 0 as shown in the screenshot.
Step B: Here we will be storing the “entityKey” value as a variable as it is a unique value of the Test Case and can be used to search the Test Case.
Step C: Click on the more option of the “entityKey“ >> Select “Store to“.
Add the Variable name >> Save.
This will create new custom steps with the stored response variable.
Now, we will be using this store variable value in the next API call POST.rest.search
Click on the edit button under the Actions tab.
Click on the “Body“ and add the stored variable name “TestCaseKey“ as a value and save.
Since we have created a custom step, we have to convert the steps into the code and export it to the project and run it through the terminal using the “mvn“ command.