how you have taken otp from mobile , have you install some app in laptop to connect you mobile?
@tinasaxena9348 Жыл бұрын
Hello please gudie how to set up mobile device in katalon for sms?
@arpitmalaiya74253 жыл бұрын
HI mosaj,can you explain in detail how you have done all the things , i didnt get how you have done integration
@mosajg13 жыл бұрын
Pls share your email id
@hemasreevayyala87422 жыл бұрын
Hi Mosaj, How you are able write mobile and web code in the same project?
@armshow73945 жыл бұрын
May I ask some ? How to get form real device ?
@mosajg15 жыл бұрын
Arm Show this video sample is reading OTP from real physical device only .
@mosajg15 жыл бұрын
Arm Show let me know if you are looking for end to end setup or the code?
@mosajg15 жыл бұрын
can please elaboarte ur question. if u r looking for earl device simulation, then my example is for real device only. the device that u see in video is the image of my real device only.
@xunchii5 жыл бұрын
Hi Mosaj, Can have the code for this setup?
@mosajg15 жыл бұрын
import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase import static com.kms.katalon.core.testdata.TestDataFactory.findTestData import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint import com.kms.katalon.core.checkpoint.CheckpointFactory as CheckpointFactory import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as MobileBuiltInKeywords import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile import com.kms.katalon.core.model.FailureHandling as FailureHandling import com.kms.katalon.core.testcase.TestCase as TestCase import com.kms.katalon.core.testcase.TestCaseFactory as TestCaseFactory import com.kms.katalon.core.testdata.TestData as TestData import com.kms.katalon.core.testdata.TestDataFactory as TestDataFactory import com.kms.katalon.core.testobject.ObjectRepository as ObjectRepository import com.kms.katalon.core.testobject.TestObject as TestObject import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WSBuiltInKeywords import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUiBuiltInKeywords import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI import internal.GlobalVariable as GlobalVariable import org.openqa.selenium.Keys as Keys WebUI.openBrowser('') WebUI.maximizeWindow() WebUI.navigateToUrl('internet-banking.dbs.com.sg/IB/Welcome') WebUI.click(findTestObject('MobileOTP/web/a_click here')) WebUI.setText(findTestObject('MobileOTP/web/input_UID'), findTestData('Mobile id pwd').getValue(1, 1)) WebUI.setText(findTestObject('MobileOTP/web/input_PIN'), findTestData('Mobile id pwd').getValue(1, 2)) WebUI.click(findTestObject('MobileOTP/web/button_Login')) WebUI.delay(5) WebUI.click(findTestObject('MobileOTP/web/h4_Request')) WebUI.delay(1) WebUI.click(findTestObject('MobileOTP/web/a_Manage eStatement')) WebUI.delay(5) WebUI.click(findTestObject('MobileOTP/web/a_Login with SMS')) WebUI.click(findTestObject('MobileOTP/web/a_regenerateSMSOTP')) WebUI.delay(75) WebUI.setText(findTestObject('MobileOTP/spy/input_SMSLoginPin'), findTestData('MobileOTP').getValue(1, 5)) WebUI.click(findTestObject('MobileOTP/web/button_Login (1)'))
@mosajg15 жыл бұрын
below is second part of code
@mosajg15 жыл бұрын
import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase import static com.kms.katalon.core.testdata.TestDataFactory.findTestData import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint import com.kms.katalon.core.checkpoint.CheckpointFactory as CheckpointFactory import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as MobileBuiltInKeywords import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile import com.kms.katalon.core.model.FailureHandling as FailureHandling import com.kms.katalon.core.testcase.TestCase as TestCase import com.kms.katalon.core.testcase.TestCaseFactory as TestCaseFactory import com.kms.katalon.core.testdata.TestData as TestData import com.kms.katalon.core.testdata.TestDataFactory as TestDataFactory import com.kms.katalon.core.testobject.ObjectRepository as ObjectRepository import com.kms.katalon.core.testobject.TestObject as TestObject import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WSBuiltInKeywords import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUiBuiltInKeywords import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI import internal.GlobalVariable as GlobalVariable import java.util.regex.Matcher as Matcher import java.util.regex.Pattern as Pattern Mobile.startApplication('D:\\C Drive\\Katalon_Studio_Windows_64-4.8\\com.crazystudio.mms6.apk', false) Mobile.tap(findTestObject('MobileOTP/android.widget.RelativeLayout3'), 0) String message = Mobile.getText(findTestObject('MobileOTP/spy/android.widget.TextView2 - RM0 Enter 257106 (OTP) to access your Online Banking services. 0408 1448.'), 0, FailureHandling.CONTINUE_ON_FAILURE) Pattern p1 = Pattern.compile('RM0 Enter ([^.]*).*.\\(OTP\\) to access your Online Banking services*') Matcher m1 = p1.matcher(message) if (m1.find()) { CustomKeywords.'mobileOTP.otp.otpKey'(m1.group(1)) }
@mosajg15 жыл бұрын
below is CustomKeyword. Now pls follow the video to put this code in custome keyword
hi mosaj. do you have the sample otp.groovy coding? i'm trying to get otp generated from another website. I'm soo new to automation testing
@mosajg14 жыл бұрын
Hi Aimie, my apologies saw ur msg today only. Here is the link for your request. Hope it helps and let me know if this is not what you asked for. kzbin.info/www/bejne/aYaYdnavd9Wko5I
@rajeshnaidu32806 жыл бұрын
Hi Plz send me code for read otp test case
@mosajg16 жыл бұрын
Rajesh Naidu code is at 7:05(with explanation )
@rajeshnaidu32806 жыл бұрын
@@mosajg1 sir I'm facing one issue which is not recorded mobile steps in above android version 5.0 on katalon studio plz help me or give me mail Id
@mosajg16 жыл бұрын
Rajesh Naidu mosajgohar@gmail.com
@mosajg16 жыл бұрын
Drop me ur scenario explanation at mosajgohar@gmail.com