I am using Selenium with Java to test a web application. The app requires a user to receive a One-Time Passcode (OTP) to authenticate they are who they say they are and to authorize several critical transactions.
I have the automation code for the web application itself, but I need something methodology for the OTP, which is sent via SMS/text to a mobile device.
I know I need some API/Web service that will emulate a phone, allow me to query it and return the message sent to it.
I have looked at Twilio and a few other such services, but they require you to start the process with them. Such as by sending an SMS to request an OTP, and then they will send back an OTP back for you to consume. But the app has its own OTP generator, so Twilio and such will not work for me.
Anyone have any suggestions or examples I can borrow?