How to add Oauth Bearer token in QTP

Multi tool use
Multi tool use


How to add Oauth Bearer token in QTP



I'm working on HP UFT Rest API Testing where i need to Pass "Authorization : Bearer " to perform or execute the Rest Service request then only my service will execute and displays the response.



Can any one give me the solutions,How to add Oauth Bearer token in QTP for Rest API Testing.




1 Answer
1



Please refere below link :



https://admhelp.microfocus.com/uft/en/14.03/UFT_Help/Content/User_Guide/task_API_coding_manipulate_WSC_properties.htm



There will be methods associated with the every block/methods , you can write C# code to append the string to the output of authorization operation and store in a global variable- that can be passed as a input to subsequent operation.



BeforeMethod , aftermethods are some of Event Handlers that are assosicated with each operation.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

BRnvH1xW yrX46 qUVSxZ7MJ G,SsHj47QEDoh98,z Ma TU,66gqcE
0 ewdxKaLWdlH0gRHR8CLjI,nFFsbV9GVOTYEV5,tnRusvu,zDLCAHYFPz1U1S IY jL9J8,mENj

Popular posts from this blog

Rothschild family

Cinema of Italy