Test Automation for OAuth2 protected RESTful APIs.
API Testing is recognised as being more suitable for test automation and continuous testing than GUI testing [wiki]and OAuth2/OpenID Connect are fundamental for securing APIs. So there is always need to write test automation for APIs which are secured.
Testing of OAuth2/OpenID protected Restful APIs involves getting access token, then use token to call API resources and finally determine whether APIs return the correct response.
Testing secured APIs using Postman is pretty easy, It can be done by selecting…