Export (0) Print
Expand All

Testing Applications by Using Input Simulator

You can test and debug a Microsoft Surface application from Microsoft Visual C# 2010 Express Edition (or Microsoft Visual Studio 2010) like you would test and debug any other application. To test your application with Surface input, you can use the Input Simulator tool. You will not be able to test how your application appears in Surface Shell using Input Simulator. To make sure that your application will be integrated correctly with Surface Shell, make sure your application follows the guidelines in Application Requirements.

Testing your Surface application

Use the following procedure to test your Surface application with the same kinds of input that are available on a device made for Surface.

To test your application

  1. Run the executable (.exe) file, or open your project in Visual C# 2010 Express Edition (or Visual Studio 2010) and press F5.

  2. You can start Input Simulator at any time. When Input Simulator starts, it displays a message on the monitor that will accept simulated input. Move your application window to the monitor that accepts simulated input.

  3. Use the tools in the Input Simulator window to select a touch input type and place a touch on your application window. For more information, see Using Input Simulator.

    Alternatively, you can use the Surface Stress Tool to automatically test your application. Surface Stress uses the Input Simulator to simulate touch input.

When you test and debug your application, you do not have to register your application with Surface Shell.

When to Test your Application on a Device Made for Surface

You should test your Surface application for the following items on a device made for Surface instead of on a separate workstation:

  • Using tagged objects   If your application uses tagged objects, test their performance on a device made for Surface under various external lighting conditions. Also test how your application responds when you place a tag over different areas of the display surface. The Input Simulator tool gives you an idea of how your application will respond to tags under perfect conditions, so testing on a device made for Surface is essential.

  • Tracking content   If your application has elements that can be dragged, test their performance on a device made for Surface.

  • Simulating jitters   Input Simulator does not simulate a jitter from a finger input that you can achieve when you rapidly move your finger short distances on a Surface screen. To get results for jitters, test your application on a device made for Surface.

  • Integration with Surface Shell   Input Simulator does not simulate Surface Shell. To test how your application loads from Launcher or how it appears with the access points superimposed over the corners of your application window, test your application on a device made for Surface.

Did you find this information useful? Please send us your suggestions and comments.

© Microsoft Corporation. All rights reserved.
© 2014 Microsoft