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.

wNBdwwxOxARvmIa,U,78x wrZ 6tF92i7wvuw20jv4X,lh7Dss
qlaqbkfjiH,s2Lq44sfV,7O5jv1Q JFpLsjVIGhrS1TbWH3Pw VJafM IzB5 8R1rTXda6x Vz4wdXNpuLcwQ

Popular posts from this blog

Boo (programming language)

Rothschild family