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.
- In the WP7.AccBas.WS solution, select Windows Phone 7 Emulator in the deployment location dropdown list
- In the WP7.AccBas.WSsolution, press F5.
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
- Click on one of the maintenance announcements in the list to select it.
The Windows Phone application displays the details for the selected maintenance announcement from the SharePoint list.
Figure 7
Application displaying announcement details
- 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.
- In the WP7.AccBas.WSsolution, press F5, if the application is not running.
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
- Click the add icon located at the bottom of the screen.
Enter an announcement Title and Body.
Figure 9
Creating a new SharePoint announcement
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
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