Follow these basic steps to get familiar with the Record & Playback features for Mobile Tests:
- Click on the New Test Case button on the main toolbar. Provide a name for your test case and click OK. An empty test case will be created.
- Click on Record Mobile from the main toolbar.
The Mobile Recorder dialog is displayed. Specify the information at Configuration section:
Field Description Device Name The smartphone to capture objects from. All of your connected devices should be displayed in this list. Application Type Katalon Studio supports native (local) mobile devices and cloud-based Kobiton devices. Application File The absolute path to your mobile application file (.apk file for Android or .ipa file for iOS).
Click Start when you're done with the settings.
The specified mobile application will be deployed and opened on the real device.
- The Device View dialog is displayed to show the current screenshot of your real device.
All the mobile objects from that screenshot are analyzed and organized in a hierarchical view which could be found at All Objects section of the Mobile Recorder dialog.
Click on any object from the hierarchical view and it is highlighted in Device View accordingly.
After selecting the element, you can specify the actions to be executed at Possible Actions section.
Unicode for Android
When you use 'Set Text' action and input Unicode text such as 'Téa Za', the actual text 'Tea Za' will be set instead. The reason is Appium does not support Unicode for Android. Adding a property to your Default Execution can solve your problem.
On the menu bar, go to Project > Execution > Default > Mobile > Android, then select your device and add a property as below:
- Name: unicodeKeyboard
- Type: Boolean
- Value: true
- All of the define actions above will be recorded by Katalon Studio as displayed at Recorded Actions section.
The recorded steps and related data are shown below for the actions of going to Google and searching two keywords on the browser.
- You can Stop and Start another application if needed. When you are done with recording, click OK to save recorded actions into Katalon Studio.
- You will be prompted to save captured objects into Object Repository of Katalon Studio. Click OK to continue.
- Recorded objects and actions are saved in the test case as shown below.
- Select the mobile platform from the Run button on the main Toolbar to execute the script.
- Specify the device for execution from the drop-down list and click OK.
- Katalon Studio will execute the mobile test with recorded steps accordingly.