c# - Windows 上的 Xamarin UI 测试 iOS

标签 c# ios visual-studio xamarin xamarin.uitest

我需要在 iOS 下测试我的 Xamarin 应用程序的 UI。我使用 Xamarin.UITest |为此,Visual Studio (windows 10) 上的 CrossPlatform。昨天我找到了 Android 的解决方案,现在需要它用于 iOS 模拟器。我的 PC 连接到 mac,我可以在模拟器的本地机器上启动应用程序。但是我无法开始 UI 测试:

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 模拟器工作正常,为什么我无法启动 UI.Test? 谢谢!

最佳答案

关于c# - Windows 上的 Xamarin UI 测试 iOS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49571658/

相关文章:

c# - 如何将不受支持的模式添加到 AutomationElement? AutomationPeers 会更改被测应用程序吗?

c# - 字典中具有派生类型参数的函数,以类型为键

ios - 当用户未登录 iCloud 时,我可以在使用 CloudKit 的应用程序中使用订阅吗?

visual-studio - : app does not see func from my dll如何处理

c - 2008 年和 2010 年 Visual C 优化差异

c# - 关于使用枚举作为参数和 if/else 条件的问题

c# - Azure 计划 Web 作业设置

ios - 避免快速重复代码

ios - Objective-C 用不同的 UIView 替换当前的 UIView

asp.net - 如何在 ASP.NET 中将 configSource 与 configBuilders 一起使用?