test users integration testing.
when develop facebook oauth enabled stuff can programmatically create test users , use them real users of application. behave in same way of real users, difference sandboxed.
does google offer that?
they moving services oauth2 , i'd write full integration test "real" users.
currently manually run integration tests , authorize application when requested, approach not ci , automated test.
the alternative see create real account used in tests , use credentials interacting selenium.
other alternatives?
you correct google don't offer test user api in same way facebook do. think have 2 options:
use "real" google users stated. can cause issues if google blocks these accounts or adds checks test if real users not (phone verification). a-b testing can break test scripts.
use mock third party instead of google service. test generic oauth integration code isn't robust testing against real google service. method can more stable control mock service.
Comments
Post a Comment