I am creating the user cases for developers to set automated testing for Sign Up. But I am facing an issue at the moment. I need to test Sign Up with a new phone and email. So every time the test runs the phone and email have to be new. How can I set this without manually delete the phone and email from Firebase and Database, please? Thank you.

You can add to your emails a timestamp that never will be the same in each execution.

Something like:

youruser+1541682885@domain.com

If you use a gmail account, you can also retrieve the email from inbox using this approach.

And you can also use timestamp converted to integer for phone numbers.

Hope it helps

  • Thank you. Regarding the phone number I need to delete it since I need to use Firebase White List Phone Numbers so I don't get blocked. How can I delete automatically the phone number after each signup test? API endpoint? – PaulaMachado Nov 9 at 9:46

You can use regular expression keeping the format in which you want your email and random number generator of 10 digit.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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