-
Notifications
You must be signed in to change notification settings - Fork 17
(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:
- Open %program_files%\Microsoft SDKs\Windows Phone\v8.0\Tools\XAP Deployment
- Start XapDeploy.exe
- Choose emulator type and application xap file and click Deploy
- Emulator starts up. App is already on application list. Use >> button to show additional panel
- Start our app and click on Location tab to show gps related functions
- Functions:
- Standard map tools. Search, zoom in, zoom out.
- 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
- 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) - Set interval between location messages sent to phone in automatic mode.
- Push pins on the map with are transform to location.
- Locations window. Active mainly in manual mode.
a. Remove location from list
b. Add new location after chosen one - 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: