Hi Team,
Can any one help how to automate Multi-factor auth (MFA) based application with Katalon Studio, and I need to pass auth code which was sent to my mobile. Please advise.
Thanks,
Shabana
Hi Team,
Can any one help how to automate Multi-factor auth (MFA) based application with Katalon Studio, and I need to pass auth code which was sent to my mobile. Please advise.
Thanks,
Shabana
Hi,
Thank you for sharing your demand. Please refer to this: Automating Application-based MFA with Katalon Studio - #6 by Rocky_N
Thanks Elly for your response.
The one you have shared is related to getting code from gmail inbox, can you please share how to pass auth code which was sent to my mobile/ or how to get otp from pingid app in my mobile , so that I can enter that code to login the application.
Regards,
Shabana
Hi,
Thank you for clarifying it. I might suggest the following steps:
This will be the example:
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
// Start the PingID app
Mobile.startApplication('com.pingidentity.pingid', false)
// Wait for the OTP input field to appear on the screen (adjust the xpath or id as per your app)
Mobile.verifyElementPresent(findTestObject('Object Repository/PingID App/OTP_Input_Field'), 30)
// Get the OTP from the input field
String otp = Mobile.getText(findTestObject('Object Repository/PingID App/OTP_Input_Field'))
// Print the OTP (you can pass it to your application or use it as needed)
println("OTP: " + otp)
Hi,
Thanks for the above.
For mobile device setup(emulator), I have installed node.js and android studio, and did the pingId installed in mobile. Started the emulator in android studio. Then If I run the test it is failing at starting step itself which is Mobile.startApplication(‘com.pingidentity.pingid’, false).
Note: Tried running the test using android simulator and also in chrome , both are not working.Failing at same step
When I run the test using android simulator, errror which I’m getting:
ERROR c.k.k.core.keyword.internal.KeywordMain - Unable to start app at: ‘com.pingidentity.pingid’ (Root cause: com.kms.katalon.core.appium.exception.AppiumStartException: Fail to start Appium server in 30 seconds
When I run test using chrom,
ERROR c.k.k.core.keyword.internal.KeywordMain - Unable to start app at: ‘com.pingidentity.pingid’ (Root cause: java.lang.IllegalArgumentException: The mobile device is missing. Please select the mobile device to be executed and try again.
Please help how to get the otp from pingID, the first step.
Thanks,
Shabana
Hi,
This relates to Appium you are using. Please check:
Window
> Katalon Studio Preferences
> Katalon
> Mobile
> Appium
and make sure the correct Appium executable path is specified.Project Settings
> Desired Capabilities
and make sure you have specified the correct appPackage
and appActivity
for the “com.pingidentity.pingid” app.adb devices
command in the command prompt/terminal and checking if your device is listed.Try to restart KS if needed. Hope this can help!