Сергей
Сергей

Reputation: 908

Xamarin UI Test iOS on Windows

I need testing UI of my Xamarin application under iOS. I use the Xamarin.UITest | CrossPlatform on Visual Studio (windows 10) for this. Yesterday i found the solution of Android and now need it for iOS simulator. My PC is connected to mac, and I can start application on local machine in simulator. But I can't start UI test :

public class AppInitializer
{
    public static IApp StartApp(Platform platform)
    {
        if (platform == Platform.Android)
        {
            return ConfigureApp
                .Android
                .ApkFile(@"D:\..MyApp.apk")
                .StartApp();
        }

        return ConfigureApp
            .iOS
            .AppBundle(@"D:\..MyApp.iOS")
            .StartApp();
    }
}

Message: SetUp : System.Exception : iOS tests are not supported on Windows.

enter image description here

iOS Simulator Work correct, why I can't start UI.Test ? Thanks!

Upvotes: 0

Views: 1307

Answers (1)

Michał Żołnieruk
Michał Żołnieruk

Reputation: 2105

At the moment it's not possible to run UITest for iOS app on Windows, you need to do it on your macOS machine.

Source: https://developer.xamarin.com/guides/testcloud/uitest/working-with/testing-on-devices/ios/

You can vote on this feature here: https://xamarin.uservoice.com/forums/144858-xamarin-platform-suggestions/suggestions/6805940-enable-running-xamarin-uitest-on-ios-device-from-v

Upvotes: 3

Related Questions