Forum Discussion

shaileshra's avatar
shaileshra
Occasional Contributor
8 years ago

How can i parameterize REST resource with Data Source.

I want to parameterize the below two resources (please see the screenshot)  . I know we can use data source for using different params. How can i achieve it in this case.

I want to supply data from excel to below to encircled fields, please let me know how can it be achieved .

 

  • You need to change that information in your method by specifying those two as TEMPLATE type parameters.

    Then those will appear in your test case as parameters such as {param}

    Now chose value from your data source by right click and get data.
  • nmrao's avatar
    nmrao
    Champion Level 3
    You need to change that information in your method by specifying those two as TEMPLATE type parameters.

    Then those will appear in your test case as parameters such as {param}

    Now chose value from your data source by right click and get data.