Automating UI test with Google Auth

依然范特西╮ 提交于 2019-12-06 09:24:49

问题


I am running automated tests (using Protractor and PhantomJS) on a Web UI tool that uses Google authentication (you have to log in with a Google account). I am running into issues because my CI server is located a few thousand miles away, and Google blocks those login attempts. Even after I confirm the device, Google will force two-factor auth on those attempts (even though I have two-factor turned off in that account). Which means every time I run an automated test I'm going to have to check my phone for messages and then figure out how to feed the verification code into my automated process!!!

So I'm looking for a way to pre-authorize or get an auth token from an auth API that I can use in my requests, instead of having to fight against the standard Google web auth flow. Is there a way?

来源:https://stackoverflow.com/questions/37956067/automating-ui-test-with-google-auth

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