Skip to content Skip to sidebar Skip to footer

Appinitializer Always Launches Android For Cross Platform Tests

I'm writing a UI Test that is supposed to be cross platform between Android and IOS. When I run my App Initializer on a Mac, the 'platform' Xamarin object always resolves as androi

Solution 1:

Ensure that you are running your tests for the desired OS, from the Unit Tests (XS) or Test Explorer (VS) window

  • Xamarin Studio >> View >> Pads >> Unit Tests
  • Visual Studio >> Tests >> Test Explorer

I beleive platform will default to Android if you use the Play / Run button, while the UITest project is selected as the Startup Project, or if you use Run All (starting with Android since it appears before iOS)

(wow, that image is huge, sorry)image

Post a Comment for "Appinitializer Always Launches Android For Cross Platform Tests"