Exercise 3: Testing the Windows Phone 7 Application
In this exercise, you will test the Windows Phone 7 application.
Task 1 – Testing the Application’ Authorization 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.Security.FBA solution, select Windows Phone 7 Emulator in the deployment location dropdown list.
- In the WP7.Security.FBA solution, press F5.
The Windows Phone application starts in the emulator and displays the items from the Maintenance Announcements SharePoint list.
Figure 4
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 5
Application displaying announcement details
- Click the emulator’s back button to return to the list of announcements.
- In the WP7.Security.FBA in Visual Studio press Shift-F5 to stop debugging.
Task 2 -Testing the Application’s Failed Authorization Functionality in Windows Phone 7 Emulator
In this task, you will test the Windows Phone 7 application with an incorrect user name.
- In the WP7.Security.FBA project, in the Utilities folder, open the Constants.cs file.
- Change the value for the USER_NAME to a username that does not have permissions on the SharePoint web site. For this task the user name does not have to exist on the server or in SharePoint.
- In the WP7.Security.FBA solution, press F5.
The Windows Phone application starts in the emulator and displays the failed log in message.
Figure 6
Application displaying failed login message