Hi all, Iām pretty new to mobile app testing and there are some expected behaviors, of the app under test, that depend on the users phone number and country. Iām in the USA and am wondering if anyone has ideas on how to get phone numbers to test? I canāt outsource this or use a cloud test solution. Only thing that comes to mind is maybe I can get numbers from google voice if I use a vpn to set different locations. Iām not super familiar with this so wondered if anyone has opinions on this as an approach or experience with ways to deal this kind of testing? Thanks so much for reading this.
There are some services (some of them free ones but with some limitations and issues), I suggest you do your own research because I donāt remember which ones I used and I canāt recommend anything in particular but I assume something like that https://onlinesim.io/
Maybe something from this thread can help you. Especial to last 2 comments
You can use any temporary online SMS numbers platforms online. There are many different ones which provide a number from different countries.
They are often used for creating sock puppets in OSINT Recon.
- https://smstome.com/
- https://onlinesim.io/ (as mentioned above)
- SMS Verification | Receive SMS Online | Telesign
- ā¦
Not sure you always want to test with external parties, but you could purchase a license with paid phone number companies which allows you to create phone numbers from across the globe.
Iām also now, wondering why a tester would want to test in this way, this is exactly what component tests are for. A properly architected product will expose a way to internally test the behaviour without having a real phone, and thatās the correct road to go down and then feed the component with the use cases you have see other folk share above. End-2-end tests are very expensive, avoid where possible.
Hi Conrad, Thanks for your input. There is some component testing being done by the developer. As I mentioned Iām new w/mobile so I am primarily black box testing while learning enough to test at that level. Also in the middle of the process is a liveliness check and document scan intake. That part is connected to a live database that I have no access to. Our current testing has decent coverage. I was just hoping to expand a little and I donāt think a few end to end tests, to get a full user experience, are out of line. I do agree with you that the closer to the code the better.
Itās super hard to work out as a tester where to invest your automation and manual testing energy, and with any embedded platform that is very much harder than with browsers and desktops. So yeah, I fully understand the pain.
I am lately suspecting that a lot of mobile testers also test on other platforms, so we never really have mobile specific hangouts where we trade tips; and I think thatās helpful in a way, that we are multi-skill and not focusing on just one platform. Iām also of the opinion, that desktop automation will get harder and harder as desktop security starts to tighten on us, another topic altogether.
Finding Test Phone Numbers for Mobile App Testing
Testing mobile apps across different countries means dealing with phone numbers from around the globe. The Ministry of Testing community got together to tackle this head-on, sharing some useful approaches for testing features like SMS verification and location-based services.
What Are Test Phone Numbers?
Test phone numbers are specialized phone numbers used to verify application behavior without engaging real phone services. While most phone-related testing should happen at the component level, test numbers become valuable for end-to-end verification and edge cases that canāt be fully mocked.
Types of Test Phone Numbers
There are a few different types of test phone numbers that can be important for software testing:
- Mock numbers for unit testing basic validation and formatting rules
- Temporary numbers for testing SMS and verification flows without real costs
- International numbers for testing country-specific formatting and behavior
- Invalid numbers for testing error handling
Why Is Testing Phone Numbers Important?
Phone number validation is crucial for many modern applicationsāfrom user registration and authentication to payment processing and communication features. Proper testing ensures your app can handle different phone formats, verify user identity safely, and maintain security standards.
For example, consider a mobile banking app with two-factor authentication. A common issue might arise where an SMS gateway accepts a phone format during testing but rejects it in production. The best way to catch this issue before it impacts users is by testing with mobile numbers.
Where To Find Test Phone Numbers
When component testing isnāt enough, several services provide test phone numbers:
- smstome.com - Offers temporary numbers from multiple countries
- onlinesim.io - Provides both free and paid verification services
- receivesms.org - Good for basic SMS testing needs
- virtual-temporary-number.com - Includes international number support
Should You Use Test Phone Numbers?
This depends on (you guessed it) your testing needs and app architecture.
As one experienced QA engineer noted in our community: āA properly architected product will expose a way to internally test the behaviour without having a real phone.ā This approach is faster, more reliable, and less expensive than end-to-end testing with real numbers.
However, that doesnāt mean you should completely avoid test phone numbers. They serve an important role in final integration testing and validating production-like scenarios. The key is balanceācomponent tests for the bulk of your testing, test phone numbers for critical end-to-end verification needs.
Temporary phone numbers work great for that exact purpose so itās one of the best solutions you can get actually, there are services like https://anonymsms.com/ which provide those numbers for free or to rent one
These days thereās nothing easier than getting temporary phone numbers worldwide for whatever purpose you need to use them. Here is my favorite provider https://temporarynumber.com check it out