mercredi 2 janvier 2019

What should be the java code for rest-assured api for getting the access token

I want to get access token from the given REST-API call. I have tested this in postman and it is working fine which needs data to be entered in all 3 tabs( Authorization, Header and body and need to fire post method). Please find the attached screenshots for better clarity. Please guide me how to automate this with java and jayaway restassured library or any other solution.

Postman screenshot- Authorization tab

Postman Screenshot - Header tab

Postman screenshot- Body tab

Note: Username and password is different in Authorization and in different in Body tab

Aucun commentaire:

Enregistrer un commentaire