Skip to content

(WP) How to test GPS related functionalities

Piotr Bukalski edited this page Mar 11, 2014 · 7 revisions

What are you going to need?

  • installed WP SDK
  • .xap file (MyGuide jenkins)
  • some gps data you will use to tests

Steps you need to follow:

  1. Open %program_files%\Microsoft SDKs\Windows Phone\v8.0\Tools\XAP Deployment
  2. Start XapDeploy.exe
  3. Choose emulator type and application xap file and click Deploy
    XapDeploy
  4. Emulator starts up. App is already on application list. Use >> button to show additional panel
    Emulator
  5. Start our app and click on Location tab to show gps related functions
    Emulator Expanded
  6. Functions:
    Emulator Functions
  7. Standard map tools. Search, zoom in, zoom out.
  8. Button that decides if tool automatically puts new locations to emulator.
  • Active - Automatic mode - tool is working and feeding emulator with locations
  • Inactive - Manual mode - we can manual set location, set up next test data
  1. Push pins tools.
    a. Toggle on/off adding new push pins on the map
    b. Remove all push pins
    c. Save points as xml file (you can later load it once again)
  2. Set interval between location messages sent to phone in automatic mode.
  3. Push pins on the map with are transform to location.
  4. Locations window. Active mainly in manual mode.
    a. Remove location from list
    b. Add new location after chosen one
  5. Test data loading window. Here you can load your own testing data.

Locations xml example:

<?xml version="1.0" encoding="utf-8"?>
<WindowsPhoneEmulator xmlns="http://schemas.microsoft.com/WindowsPhoneEmulator/2009/08/SensorData">
    <SensorData>
        <Header version="1" />
        <GpsData latitude="51.1030358009959" longitude="17.0786407129949" />
        <GpsData latitude="51.1038039647049" longitude="17.07650858335" />
        <GpsData latitude="51.1048574256057" longitude="17.0743065478152" />
        <GpsData latitude="51.1056255590437" longitude="17.0722443240604" />
        <GpsData latitude="51.10617421797" longitude="17.0706714415355" />
    </SensorData>
</WindowsPhoneEmulator>

Links: