App Development

Mobile Testing - Screen Recording Tips & Tricks

WillowTree default article featured image

The ability to write high-quality bug reports is an essential skill of software testing professionals everywhere. Apart from descriptive summary, precise steps to reproduce an expected behavior, test environment, priority and frequency; attachments such as images, videos, and log files all act as excellent supplementary materials in a good bug report.

For desktop applications, screen recording software tools like Jing are often used, but screen recording tools for mobile applications are not widely known about. Here are some tips and tricks to create great screen recordings for devices running Android and iOS:

iOS: On Mac running OS X Yosemite, you can use the QuickTime Player to record the screen of your iOS device running iOS 8 or above.

Steps:

  1. Connect the iPhone/iPad to the computer through the 8-pin Lightning to USB cable. Note : this will not work with older iOS devices that usethe 30-pin connector.
  2. Open the QuickTime Player on your Mac running OS X Yosemite and choose “New Movie Recording” from the File menu.
  3. Click the arrow near the red record button and choose iPhone or iPad as the source camera. You can also select your device name in the Microphone section to record any audio coming out of your iOS device. blog img1 20150109-217x350@2x
  4. Click Play to record screen actions.
  5. Once you are done recording the iOS screen, you can use the File -> Export menu in the QuickTime Player to save the movie in .mov format at 720p or 1080p resolution that can be uploaded to YouTube without conversion.

If your Mac is running an older version of OS X and/or iPhone/iPad is running a version older than iOS 8, you can use screen mirroring software like Reflector to record.

Steps:

  1. Download Reflector.
  2. Make sure MAC and iPhone/iPad is on same wifi network.
  3. Start AirPlay on mobile device.
  4. Select your MAC from the list.
  5. To Record, go to Device > Start Recording.

Some limitations using this method:

  1. It only works with devices listed here: h ttp://www.airsquirrels.com/reflector/compatible-devices/
  2. Audio is not recorded with Video file.

Android:

Screen recording functionality is available for Android devices running Android 4.4 (API level 19) and above. Use the following steps to take advantage of this feature:

Steps:

  1. Ensure you have latest version of  Android Development Tools (ADT).
  2. On Android device, enable Developer Options.
  3. Enable ‘Show touches’ option to capture visual feedback. blog img2 20150109-269x477
  4. Connect your mobile device via  a USB cable to your computer.
  5. Open Terminal (MAC) / command line (Windows).
  6. If ADB is not included in your PATH, type following:
cd <location to adt bundle/sdk/platform tools>
  1. Type following commands on Terminal:
adb shell 
screenrecord --verbose /sdcard/demo.mp4
  1. Perform action on your device, press Ctrl+C to stop.
  2. Type following commands on Terminal:
exit
adb pull /sdcard/demo.mp4
  1. File is available at <location to adt bundle/sdk/platform tools>

Some limitations using this method:

  1. As mentioned above, this functionality is available for devices running Android 4.4 and above only.
  2. Maximum video length is 3 minutes.
  3. Audio is not recorded with a Video file.
  4. Rotation of the screen during recording is not supported. If the screen does rotate during recording, some of the screen is cut off in the recording.

You can find more information about screenrecord shell command at http://developer.android.com/tools/help/adb.html#screenrecord   

Quickstart-Guide-to-Kotlin-Multiplatform

A Quick Start Guide to Kotlin Multiplatform

Kotlin Multiplatform, though still experimental, is a great up-and-coming solution...

Read the article