自动启动后,TeamCity无法运行iOS Appium测试 [英] TeamCity fails to run iOS appium tests when auto-launched

查看:142
本文介绍了自动启动后,TeamCity无法运行iOS Appium测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在cucumber套件中使用 appium .jetbrains.com/teamcity/"rel =" nofollow> TeamCity 8 在运行Mavericks的Apple MacMini上.问题在于,在登录时(通过Automator)从TeamCity运行时,appium似乎无法与iOS Simulator交互.

We are using appium in our cucumber suite within TeamCity 8 on an Apple MacMini running Mavericks. The problem is that appium seems to fail to interact with the iOS Simulator when it is ran from TeamCity at login (via Automator).

我发现唯一有效的组合是在交互式会话中从Terminal运行以下命令:

The only combination that I have found to work is to run the following from the Terminal in an interactive session:

sh /Applications/buildagent/bin/agent.sh start

sh /Applications/buildagent/bin/agent.sh start

  • ssh会话运行agent.sh start
  • 使用Automator创建一个在登录时启动的shell脚本(macmini设置为自动登录)
  • running agent.sh start from an ssh session
  • creating a shell script with Automator that launches at login (the macmini is set to login automatically)

我的理论是,它与Preferences -> Security & Privacy -> Accessibility有关.从终端启动时,它唯一起作用的方法是将终端添加到此允许的应用程序列表中.我不确定我需要添加什么才能使其在登录时自动运行.

My theory is that it has something to do with Preferences -> Security & Privacy -> Accessibility. The only way that it works when launching from Terminal is if Terminal is added to this list of allowed applications. I'm not sure what I need to add to this list in order for this to work automatically at login.

任何帮助将不胜感激.

推荐答案

如果没有交互式会话,许多iOS测试将无法运行.例如,无法使用iOS模拟器进行单元测试.

Many iOS tests will not run without an interactive session. For example, unit tests using the iOS simulator will not work.

通过交互式会话,我的意思是TeamCity代理必须从桌面而不是通过SSH会话启动.否则,任何东西都无法与模拟器通信.

By interactive session, I mean the TeamCity agent must be started from the desktop, not via an SSH session. Otherwise nothing can communicate with the Simulator.

这篇关于自动启动后,TeamCity无法运行iOS Appium测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆