Friday, January 28, 2022

Switching jdk versions on mac, easily!

I have struggled many times to switch between different JDK versions quickly. There always seemed to be many steps required to be done.

Ever since I started using openjdk, and then focussing on doing my machine setup via a script (as opposed to doing each step manually), I came across this very simple way of switching the jdk.

https://github.com/AdoptOpenJDK/homebrew-openjdk#switch-between-different-jdk-versions 

Setting up common software on a new Mac

Have you ever felt it overwhelming to install all the software you commonly need on a new Mac?

I do!

To help in the machine setup, I have a simple script that I execute to get the software installed in a easy and consistent way. You can take a look at it as well here- https://bit.ly/setupMachine

Let me know if you have any other apps that should be added to the script!

Wednesday, January 19, 2022

Using fakesms service in Functional Test Automation

How do you automate OTP related test scenarios? Do you use a fake SMS service? Does it have restapi to query the SMS messages? geography support? 

To clarify - this needs to be done as part of my functional test automation, where,

  • the test could be running against a browser, where the browser does not have access to the phone, or,
  • the test could be running against a real mobile device (without SIM), so no way to receive the SMS, or,
  • the test could be running against an emulator (no SIM), so no way to receive the SMS
Scenarios include: login, payment, SMS content 

Hence I am thinking about using a fakesms service which has API access capabilities to retrieve the SMS. This will help when running automation on browser or devices / emulators without SIM.

Note:
  • There is no access to DB or API to query the OTP. 
  • I don't mind using a paid service

 

Thanks in advance for your help!