Quantcast
Channel: LoadRunner Practitioners Forum topics
Viewing all articles
Browse latest Browse all 3978

Capturing OAuth2 Token in a Vugen Script

$
0
0

Hi Experts,

I want to capture a token authetincation (OAuth2 Token) and  after that I want to pass authentication to a REST_API call by a web_custom_request. 

 And the way I'm do it doesn't work, i tried to capture the authentication using below

Web_Set_User("UserName","Password");

Web_add_header("Client Identifier","Value");

Web_add_header("Client Secret","Value");

 web_custom_request("OAUTH2", 
        "URL=https://xxxxxxxxxxxxxxxxxxxxx", 
        "Method=POST",  
        "Resource=0", 
        "RecContentType=application/json", 
        "EncType=application/xml", 
        "Mode=HTML",       
        LAST);

 

I tested the same values in SOAPUI application and I can get a response back from authentication.

Please advise.

Thanks

Sathish Ramasubbu


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>