Share via


Exercise 3: Testing the Windows Phone 7 Application

In this exercise, you will test the Windows Phone 7 application.

Task 1 – Testing the Application’ View Functionality in Windows Phone 7 Emulator

In this task, you will test the Windows Phone 7 application using the Windows Phone 7 emulator.

  1. In the WP7.AccBas.WS solution, select Windows Phone 7 Emulator in the deployment location dropdown list
  2. In the WP7.AccBas.WSsolution, press F5.
  3. The Windows Phone application starts in the emulator and displays the items from the Maintenance Announcements SharePoint list.

    Figure 6

    Application displaying announcements from the SharePoint list

  4. Click on one of the maintenance announcements in the list to select it.
  5. The Windows Phone application displays the details for the selected maintenance announcement from the SharePoint list.

    Figure 7

    Application displaying announcement details

  6. Click the emulator’s back button to return to the list of announcements.

Task 2 -Testing the Application’s Add Functionality in Windows Phone 7 Emulator

In this task, you will test the Windows Phone 7 application by adding a new announcement.

  1. In the WP7.AccBas.WSsolution, press F5, if the application is not running.
  2. The Windows Phone application starts in the emulator and displays the items from the Maintenance Announcements SharePoint list.

    Figure 8

    Application displaying announcements from the SharePoint list

  3. Click the add icon located at the bottom of the screen.
  4. Enter an announcement Title and Body.

    Figure 9

    Creating a new SharePoint announcement

  5. Click the Save icon located in the bottom of the screen. The application will use the Web Service calls to save the new Maintenance Announcement to the SharePoint list.

    Figure 10

    Application displaying the new SharePoint announcement

  6. Use Internet Explorer to navigate to the Maintenance Announcement list and verify the list item appears in the list.

    Figure 11

    SharePoint list displaying the new announcement