Creating a new test case

Mesmer allows you to create new test cases by operating your app, running on an actual device or emulator provisioned to your account, visible in the Mesmer console. Mesmer will record the actions you take to replay later when the test executes.

To create a new test case, choose the “Create a New Test” option from the “Test Cases” menu at the top of the console.

This will take you to a new screen where you will see a view of your app loading on a physical or virtual device.

After you’re done creating the test case using the instructions below, click the “Save Test” button in the upper right of the console.

Assign a title

When you determine how to describe this test case, click the region of the screen where you see “Untitled Use Case”, and type a descriptive title.

Tagging

You can tag the new test case as described in the section about working with test case tags. Tags can be added later, after the test case is created.

Choosing a test device

To choose a device or emulator that has been provisioned for your account, click the device selector dropdown next to the title of the test.

Available devices will be shown as “Provisioned” in the display. Others might be in use “In use” by others, or “Broken”. Selecting a device will stop any device currently in use, then launch your app on the new device for use.

Broken devices that don’t automatically recover might require you to contact Mesmer to fix.

Operating the app

Click the device screen to start interacting with your app. Mesmer will record your taps and gestures, and save them with the test case. You can also type using your keyboard to enter text.

When you begin to interact with your app, a palette of gestures and controls will appear at the left of the console.

Working with gestures

Touch gestures are selected by clicking the “Gestures” button in the palette. Gesture options will expand to the right.

  • Tap: A single tap on the screen at the location of the cursor, activated by your mouse click.

  • Long press: A long press, then release, on the screen at the location of the cursor, activated by your mouse click.

  • Swipe: A “fling” in one of the four cardinal directions. To activate:

    1. Click the starting point of the swipe where a finger would first touch the screen.

    2. Move your mouse in the direction of the fling. The marker at the origin will point in the direction of the motion of the finger.

    3. Click again to commit the direction.

All flings currently have the same acceleration and velocity. You might have to issue multiple flings to get the effect you want, such as scrolling through many items in a list.

Locking the screen

To lock the screen, click the lock button from gesture palette. To unlock the screen, click the button again.

Rebooting the device

In case the device enters a bad state, it might be helpful to reboot it in order to start from a fresh state. Use the reboot button to reboot the device. If you have problems with a device that can’t be resolved by a reboot, contact Mesmer for support.

Viewing device logs

You can view the device logs during the test recording by clicking the “Device logs” button on the right. This will expand the drawer just like viewing device logs in the App Map.