Forum Discussion

Lschoend's avatar
Lschoend
Occasional Contributor
6 years ago
Solved

Need to pass REST parameters from a file

I have a REST API that has three parameters in the URL.

  1. http://myservice.it.com:8080/data/inventory/generateItemInventory?item=&bin=&itemCount=&itemSize=

I have defined the three parameters at the Resource level. I have a GET method that does not contain the parameters. My test case has three steps:

Load Parameter Properties and I have specified the file containing the properties

Set Item request which references the resource and method. Each parameter is a Query style at the Resource level

Property Transfer which transfers the response to a custom Project property

 

What's happening is that while the Load Parameter Properties step is working (the values are being set from the file) the Set Item request is failing because it says the parameters are missing. I don;t understand why the parameter values are not neing passed to the request?

 

Any help appreciated!

 

Thanks,Linda