Loading...

How to Perform Multi-touch Actions in Mobile App

Multi-touch action often appears in gaming applications. This tutorial shows you how to perform a multi-touch action at four different points simultaneously. We will use the MultiTouch Tester app to demonstrate automation testing on this typical behavior. Please download:

  • The app; or
  • The direct apk file

Go to the capabilities section and select the desired device, here we will select the Android device.

After you select the device, there will be a options screen and you need to reset the components to the device and application you are using.

Click on the value of the caps row, then you can reset components such as: udid is your device id, appPackage and appActivity are components of the application and you can use the commands in the screen. Figure cmd to get them:

To get the id of your device, we just need to connect the phone and type the command: adb devices, the id that appears under the List of devices attached is your device id

To get appPacage and appActivity of the app, you need to turn on the app, go to cmd and type: adb shell, then vb line will appear then type the command: dumpsys window windows | grep -E 'mCurrentFocus' to get appPackage and appActivity as shown in the picture. First is the appPackage, and the last is appActivity.

To run the tets case you also need to enable Appium via the Appium icon on the toolbar of akaAT

In Manual Mode:

  1. Create a new test case called “MultiTouchTC”. Select Add Step to choose “ Start Mobile Application” at Mobile.

  2. Add “Tap” to akaAT, fill out the UI Object that we need to tap, and time out

  3. Add “Tap And Hold” with UI Object and duration and time out. Duration is the time that you want to hold, here is 3 seconds.

  4. Add “Long Press” with available UI Object and time out.

  5. Close application.

Blog Posts

Image

Getting Started

Go to akaAT Download page to get the latest version of akaAT Studio. A suitable version for your system will be automatically detected and recommended for download...

Continue Reading...

Image

Define Test and Variables

In this chapter, we’ll first define the steps of the data-driven test. Then, we’ll define the required variables for this scenario. You’ll also find out how to manage variables in akaAT Studio...

Continue Reading...

Image

Multi-touch Actions in Mobile App

Multi-touch action often appears in gaming applications. This tutorial shows you how to perform a multi-touch action...

Continue Reading...

Image

Web Handling

What are Locators?
Locators are basically the HTML attributes of a web element. They help identify unique web elements on a page and command testing frameworks...

Continue Reading...

Image

Pop-up Handling

When performing automation testing, you may sometimes deal with pop-up dialog issue that needs to be handled differently from normal test objects. This tutorial shows you how to deal with pop-up controls....

Continue Reading...

Image

Alert Handling

What is an alert?
An alert is a JavaScript function which is used to notify users on a Web page. It displays a dialog with a specified message and OK/Cancel buttons...

Continue Reading...

Image

Textbox Handling

This tutorial illustrates how to handle Textbox, Checkbox, Radio buttons using akaAT Studio. The reference source code is provided at the end of the tutorial...

Continue Reading...

Image

iFrame Issue Handling

A very common type of control used in website is the HTML iframe. And this control needs to be handled in a specific manner when testing. This article shows you how to handle iframes...

Continue Reading...

Image

Dropdown Handling

A drop-down list (abbreviated drop-down; also known as a drop-down menu) is a graphical control element, similar to a list box, that allows the user to choose one value from a list...

Continue Reading...

Image

Static and Dynamic Test Objects Handling.

Test Objects are one of the most crucial parts of building a successful automation project. Some of them are static (do not change at all) and some of them are dynamic (they are dependent on some dynamically changing parameters)...

Continue Reading...