Use Facebook developer tools to create test accounts to test the app for multiple user scenarios.
- [Instructor] Now that our UWP app is complete, functional, and more presentable, let's test everything. So far we've built everything in a single user context. We've been unable to test multiple user scenarios because we only have one Facebook account. Well, we can leverage a Facebook developer tool. Test accounts to test our multi user scenarios. Return to developers.facebook.com and in the top right, find your app. On the far left, you can see Roles. And on the far left again, after expanding Roles, you'll see Test Users.
Click on Test Users, and then in the top right, click Add. For now we can just add one test user. We can leave the rest as default, so Create Test Users. Your test user has an email, and ID, and a name. Let's give it a password that you'll remember to be able to sign into your app. Change the name or password for this test user after clicking Edit. Go ahead and give it a password you'll remember. Let's return to your app in Visual Studio and try signing in with that user.
Remember, we've been caching your credentials. So first you're going to have to sign out by navigating to Logout in the bottom left of your app. Now click Login with Facebook. Return to the developers page and copy the email address for your test user. Paste it as the email and then log in with the new password you just created. You can continue as your test user and make sure you do not see any projects to start with. So far, this user has not created any projects and has not been added as a collaborator to any projects.
Go ahead and create your first project. My First Project. Go ahead and click, and add a task. My First Task. Add your own email, as an email to a collaborator. Now, you can sign out and sign back in with your own Facebook account. If you go to the other projects view, you should see the project that the other user just created and note the test user is the owner of this project, rather than yourself.
Click on that and then add another task. Complete the first task and then sign out and back in again with the test user. Everything should be saved in the Cloud, so you know everything is working. But let's just confirm. If I click on this I can see My First Task is completed and that was completed by myself. And my second task is uncompleted, and that was created by myself. It looks like everything is working.
In the next video, we'll go ahead and get ready to start publishing our application.
- Working with .NET for UWP app development
- Establishing application architecture
- Configuring Azure services
- Configuring the mobile app service backend
- Testing and publishing the service backend
- Using Facebook authentication
- Using XAML
- Client server abstraction API
- Using the UWP community toolkit
- Styling app views
- Creating adaptive views
- Testing an app for multiple user accounts
- Publishing to the Windows Store
- Sideloading app packages