Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 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.

      Image RemovedImage Added

    • 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“.

      Image RemovedImage Added

    • Add the Variable name >> Save.

      Image RemovedImage Added

    • This will create new custom steps with the stored response variable.

      Image RemovedImage Added

  • 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.

      Image RemovedImage Added

    • Click on the “Body“ and add the stored variable name “TestCaseKey“ as a value and save.

      Image RemovedImage Added

  • 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.

    Image RemovedImage Added