【问题标题】:how to give path to ipa file in xamrin ui test如何在xamarin ui测试中给出ipa文件的路径
【发布时间】:2017-04-20 02:09:47
【问题描述】:

我正在使用 Xamrin.ui 测试来测试 ios IPA 文件。 我没有它的代码。在 xamrinui 测试中在哪里给出 ipa 文件的路径? 我尝试搜索博客,但我无法找到如何进行设置

【问题讨论】:

    标签: c# ios xamarin xamarin.ios xamarin-studio


    【解决方案1】:

    如果您有 .app 捆绑包,请使用 iOSAppConfigurator.AppBundle 分配应用的本地路径:

        [SetUp]
        public void BeforeEachTest()
        {
            app = ConfigureApp.iOS.AppBundle("/your/local/Path/bundle.app").StartApp();
        }
    

    如果您的设备上安装了支持 Calabash 的 .ipa,则可以使用 iOSAppConfigurator.InstalledApp 定义应用的捆绑包 ID:

        [SetUp]
        public void BeforeEachTest()
        {
            app = ConfigureApp.iOS.InstalledApp("com.sushihangover.MyGreatApp").StartApp();
        }
    

    回复:AppBundle / InstalledApp

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-06-26
      • 2018-08-12
      • 2015-05-14
      • 2023-03-28
      • 2020-08-25
      • 1970-01-01
      • 2017-10-31
      相关资源
      最近更新 更多