Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

My app contains Sign in from Google function that uses Oauth. To test it I'd want to create test accounts at Google. But Google doesn't allow me to create ordinary accounts without entering captcha so I can't create ordinary accounts for testing.

Can I create test accounts in Google to test Oauth in my application?

share|improve this question
add comment

2 Answers 2

up vote 0 down vote accepted

I usually create a single test account and use it over and over again rather than create a new account each time the test is run. I don't know of any way to create a Google account using automated test scripts.

The alternative would be to build a backdoor into your application login. Something that creates a test account on your site without using Google login that can be used by your test scripts but which is not available to users on your site.

share|improve this answer
add comment

In Google using GMail, you can use dots to make multiple email accounts that all reroute to your main email account. Here are the directions from Google's Help Reference.

https://support.google.com/mail/answer/8158?hl=en

share|improve this answer
    
In my application I just click Sign in from Google button to Sign in like you do to sign in to StackExchange sites. I don't enter email address so I can't make use of your answer –  Andrey Botalov Mar 20 '13 at 18:59
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.