I wanted to test an API which needs OTP to proceed further.. i am using another API to fetch the OTP, but it wouldnt be returned in the response, inturn it will be sent to the mobile..
My question is that , how to fetch the OTP from phone message and continue the test. challenge is that i cant disable security or use any API for this as it will be sent to the phone number
If you really need to get SMS from the real phone you would need to use phone automation framework like Appium.
There is Appium Java Client which you can use in JSR223 Test Elements with Groovy language in order to control your mobile device and read the SMS with the OTP
But this approach would be extremely slow and the maximum throughput will be set to Appium execution speed.
So you could rather think of using SMS Gateway and a library like jSMPP or use an online SMS receiving service providing API and "normal" JMeter Post-Processors.
Related
I have a smart speaker with buit-in Google Assistant which I want to automatically make announcements at specific times. The times are determined by a program I wrote running in the cloud which can send HTTP POST requests at those times (e.g. to trigger a Telegram bot or anything else with a usable API).
Is there a way to send POST requests directly to my smart speaker with a message to announce? Or would I need some intermediary app/service to integrate with Google Assistant?
I can use FCM console to send messages to all users or certain users at a certain time.
Now I want the app send a message to specified users when their in-game energy is full. How to realize it with FCM? And can I know the messages' sends, opens, conversions?
Sending a message to a user can only be done from a trusted environment, such as the Firebase console, or a place where you can trust that the code running is yours (such as your development machine, a server that you control, or something like Cloud Functions/Cloud Run).
For examples of how to send a message by calling FCM's API, see the documentation on building send requests, and this sample use-case of notifying the user when something interesting happens using Cloud Functions.
I have been researching for many days on how to send sms using Twilio in React-Native. I haven't found a single example that works! I thought this should be simple but apparently not.
Any suggestions?
Twilio developer evangelist here.
While not ReactNative, I wrote a post about how to send SMS messages in React. The idea for ReactNative will be the same though. You don't want to make requests to the Twilio API directly from your application, you'd need to store your credentials in the app somehow and a malicious user could decompile it and abuse your account.
Instead you want to build a server application that sends the messages and make requests to that from your ReactNative application.
Let me know if that helps at all.
I want to send Sms on one number every time when the user clicks the button in my application.I don't want to use any Sms Gateway.The Message can be send with the Phone mobile carrier network.I Could not find it any docs.
Can Any body help me with the docs and the sample code.
Help is appreicated.
You can try the following, which is outside of MobileFirst Platform:
Use the sms:// protocol and launch the system messaging application and send it
Use available 3rd party Cordova plugins
This may require to take care of the whitelisting in Cordova to allow it.
I Wonder if is there any possibility of testing the Mobile Chat based application through automation scripts. Lets say we have whatsapp, FB, Skype chat based apps. How people will be doing testing for these apps apart from manual?
I can automate on one side of mobile through some automation tools selendroid, see test and some other like open application, search a contact ,and send text message. But how on the other side of mobile will be automated ? like as soon as it receives message it replies with same message.
Even how push notification automation testing is done?
I can see some apps which do auto reply for sms , but thats not works for testing.
Kindly suggest your thoughts on this.
I have automated the chat apps for mobile on iOS and Android. Automating both sides is possible.
For ex- you have a scenario that you want to login to your chat app account and send a message to another user.
You have to use two devices. Connect them to your system give them different names. Like you mentioned seetest.Two devices can be connected to it at a time.
Lets say device1 and device2.
Pseudo script -
Device1 activate
Launch chat app in device1 - login
Device2 activate
Launch chat app in device2 - login
Device1 activate -select a user(which logged in from device2)- send message
Device2 - check the notification object or the object which will display this message and compare the property say "text" with the message sent from device2.
You can guide the script using the functions from the mobile automation tool to run your script step on a device with particular name or identifier.