Highlighted
Respected Contributor.
Respected Contributor.
81 views

UFT_Azure RestAPI_Query

Hello,

In UFT one 15.01 version, i have created a service RestAPI test using import WADL from file option.

The API is hosted on Azure.

After importing the API methods, i created activity for get method by dragging it in the test flow.


I can see the input parameters and all. But when i fill everything and send the request then i'm getting status code in the 'Run Step Results' windows as '403-Forbidden'. I have also provide the 'Ocp-Apim-Subscription-Key' and its value by adding request header array under activity property.

Ocp-Apim-Subscription-Key' and its value is same that we use in Azure site while sending the request from there.

 

Please suggest.

 

 

Thanks

Binny

 

 

 

0 Likes
1 Reply
Highlighted
Micro Focus Expert
Micro Focus Expert

Hi, there

Does the server give any explaining reasons for the response message?

Is there any tools have a successful experience, such as Postman? 

in any case, the investigation may require more effort. I think you may open a support ticket to have better assist.


Thanks.

James

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.