Need to mock google OAuth2 service

烈酒焚心 提交于 2020-01-01 21:54:13

问题


Need to virtualize google OAuth2 for testing a web app that uses OAuth for user sign in, Any ideas ?

Currently using Java/TestNG/Selenium, I tried with Hoverfly but I am still analyzing request/response pairs to figure out how to make simulation succeed.

(I have a web application under test (black box) where I need to automate tests of some activities made by a google-signed-in user, so first step is to login with google account, I currently do this with (selenium) actual google account but sometimes script gets blocked with google verification.)

This issue could have been solved long time ago simply if google adds [disable login challenges] option in account settings but I don't think they are doing that any time soon.

Update 2018-09-01

solved without mocking https://stackoverflow.com/a/52126066/1356559

来源:https://stackoverflow.com/questions/51962057/need-to-mock-google-oauth2-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!