Unable to make API call using input parameters
I have created one API service test using UFT one verion 15.01 by importing the WADL from file. After import i can see all the parameters under custom input/checkpoints section, but i'm unable to send the request by filling that section, rather i need to go to HTTP input/checkpoints section and to send the request by making below string and putting in the URL field.
So basically i am appending the input parameter with the request URL along with their values and then making the connection.
i'm using get method in above scenario.
Also, i'm unable to receive the response under, HTTP->Response body section, i had uploaded request JSON in that section, after which it was starting showing the response parameters, but the response data is not coming into those fields.
All i am getting is response in 'Response body' field under 'Run Step Results' section.
Now, i wanted to check, if is this only the way to send and get the response from RestAPI ? because without sending the request and receiving the response in the fields it will be a very cumbersome process to design the framework around it.
Need to your suggestions. Thanks
You are saying UFT cannot send the request after importing the WADL, could you describe the behavior when running the API test? What error happened?
UFT has a demo server called Flight API, you can open it first, import a WADL by using the url provided by the Flight API, then drag a method into the design panel. Try running the test and see the result.
About the response body region in the Body tab of the properties, it will not show the response body from the current run. You can run the test first, then click the Load from Replay button to load the response body format to the response body region. Then you can make another step link to the response body item.
So if you want to get the current run response body, you need get it from the report.