Testing Windows Mobile Applications – Overview

March 03 10:00 2011 Print This Article

About Interaction Between TestComplete and PDAs

TestComplete allows you to test Windows Mobile applications running on Pocket PCs, PDAs and Windows Mobile Emulators. This functionality is provided by the PDA Support plug-in and a number of helper plug-ins included in TestComplete’s Enterprise edition. To exchange data between the desktop computer and the handheld device, TestComplete uses a small component placed on the device and the synchronization software – either Microsoft ActiveSync (on operating systems prior to Windows Vista) or Windows Mobile Device Center (on Windows Vista and later). The scheme below illustrates the interaction between TestComplete on the desktop computer and the Windows Mobile-based device connected to the computer:

Interaction between TestComplete and PDA

For more information on how to set up the required software and components, see Preparing Desktop and PDA Computers for Testing.

About Windows Mobile Application Testing

TestComplete provides various capabilities for testing Windows Mobile applications —

  • Record and play back user actions on the deviceTestComplete can record various actions performed on a Windows Mobile-based device and then play them back as if a user was using the device:
    • Pressing of device buttons
    • Touch screen actions: tap, tap-and-hold, drag
    • Text entry
    • Handwritten text entry

    To capture and replay button presses and touch screen actions, you use keyword tests or scripts. To record and play back handwriting input, you use WinCE low-level procedures. See Simulating User Actions on PDAs.

    Note during test recording TestComplete captured both actions performed on the device and those performed on the desktop computer. Depending on the Synchronize recorded events option, device actions can be recorded separately from the desktop computer actions or they can recorded as a single test in the same order they were performed. The mixed mode can be useful, for example, when testing data synchronization software.

  • Retrieve data from application objectsYou capture and verify data from Windows Mobile application objects, such as displayed text or selected item. See Working With WinCE Controls.
  • Capture device screen imagesTestComplete can capture images of the tested handheld device’s screen and individual application windows as part of automated tests. These images can be captured using region checkpoints or Test Visualizer.When the images are captured by Test Visualizer during the test recoding, they are saved to the device in the BMP format. After you stop recording the test, these images will be imported to the desktop computer to the Visualizer subfolder of the folder containing your test and will be saved in the PNG format.
    Captured images may take quite a lot of space on the device. So, you may want to disable this functionality. To learn how to do this, see Enabling and Disabling Visualizer.

    You can also capture the device’s entire screen image, using the Picture Method (Desktop Objects) method; to capture window and control images use the Picture Method method.

  • Soft reset the deviceYou can soft reset the handheld device as part of your automated tests using the PDA.Restart method.
  • Launch the tested application on the deviceTestComplete’s WinCE Tested Applications project item lets you manage the tested Windows Mobile applications on the device and provides a quick way to remotely launch the application, both as part of automated tests or from TestComplete GUI. This project item also lets you specify launch parameters for the tested application as well as to deploy the application’s executable from the desktop computer to the device.
    WinCETestedApps Editor

    For more information, see Managing WinCE Tested Applications.

  • Autorun the tested application when the recording startsYou can command TestComplete to automatically run some WinCE tested applications every time the recording starts. For this purpose, select the Autorun check boxes for the target tested applications. These check boxes are shown in the Autorun column of the WinCETestedApp editor.
    Note: The correct work of this setting requires that the Synchronize recorded events project option be enabled.
  • Access Today Screen itemsYou can access and test Windows Mobile Today Screen items like the day’s tasks, e-mails and appointments via the PDA.Today property. See Testing Today Screen Items.
  • Get device system informationThe PDA object provides various system information about the tested handheld device and lets you get the device name and the current user name, get CPU name(s) and count, track CPU and memory usage and so on.
  • Get operating system informationThe PDA.OSInfo object allows you to obtain various information about the Windows Mobile operating system on the device, such as the OS name and edition, available .NET Compact Framework version and so on.
  • Manage the clipboard contentsUsing the PDA.Clipboard property you can get and set the clipboard contents on the tested handheld device.

In addition, TestComplete allows you to perform many other times at design time:

  • Remotely control the deviceTestComplete’s PDA Controller panel displays the handheld device’s screen and lets you remotely control the device, including using your desktop computer’s mouse. For examples, clicks on the device screen image in the PDA Controller are transferred to the device and performed there as if you tapped the device’s touch screen itself. The PDA controller also allows you to “press” the device buttons and to soft reset the device. This way, you can completely manage the tested device without having to switch between the desktop computer and the device.Actions performed on the device itself are also reflected in the PDA Controller.
    PDA Controller panel

    For more information on using the PDA Controller panel, see PDA Controller.

  • Manage the device’s file systemTestComplete’s PDA File Manager panel allows you to explore and manage the file system on the device; create, rename and delete files and folders, copy and move files and folders between the device and the desktop computer, view file size and attributes and so on. See PDA File Manager.
  • View and modify the device’s registryTestComplete’s PDA Registry Editor provides access to the connected device’s registry and lets you view and modify the registry data. See PDA Registry Editor.
  • Explore running applications on the deviceTestComplete’s Object Browser panel lets you explore all processes running on the handheld device as well as their windows and controls. Unlike the desktop computer, which is represented in the Object Browser by the Sys object, the device’s system is represented by the PDA object.
    A Pocket PC in the Object Browser

Source: http://smartbear.com/

Related Posts:

  • No Related Posts

About Article Author

view more articles
Nataliia Vasylyna
Nataliia Vasylyna

View More Articles