Prior to running your UITests within Xamarin Studio, you will need to add your iOS or Android apps to the Test Apps node of the Unit Tests pane, or alternatively specifying a path to your app within the AppInitializer
class. If you don't do this, your tests will continue to fail until you add these projects to your solution.
In this section, we will look at how to go about adding your apps to the Test Apps node within the Unit Tests pane. Let's look at how we can achieve this with the following steps:
TrackMyWalks.UITests
project, select the View menu option, then choose the Pads sub-menu item, and then the Unit Tests option, as shown in the following screenshot:
TrackMyWalks.UITests
solution, click OK and dismiss the dialog.Once you have successfully added your projects to the TrackMyWalks.UITests
solution project, our next step is to run our app and see the results:
When your app starts to run, the UITest framework will automatically deploy your app to the iOS or Android simulator, and then run the app and process through each of the steps that you have specified within your test methods. The results from each of the tests will appear within the Test Results pane within Xamarin Studio.
3.16.212.217