iOS UI Automation Testing in Travis CI

╄→гoц情女王★ 提交于 2019-12-24 15:33:23

问题


I have one small project which I want to test with travis (just to have that green batch on Github) which is https://github.com/SocialbitGmbH/SwiftAddressBook .

It requires access to ABAddressbook which can only be given by dismissing an alert when asking for access. So I´m trying to run an UI Automation script to achieve this, which succeeds locally but fails on the remote server with the message

Instruments Usage Error : Specified target process is invalid: Example/DerivedData/SwiftAddressBookExample/Build/Products/Debug-iphonesimulator/SwiftAddressBookExample.app

I repeat, the current configuration succeeds locally!

As you can see, I´ve tried countless variations on my .yml file to figure out how it could work (often I´ve rewritten git history, which is why there are many unreachable commits with some other variations). I´d appreciate any help or suggestions (which I have not tried already)

EDIT:

It seems to work more reliable when the simulator had been launched at least once. But even then, there is some non-deterministic possibility of failure

EDIT: I´ve found another way to achieve what I want, but that issue would still be interesting to have solved.

来源:https://stackoverflow.com/questions/29197619/ios-ui-automation-testing-in-travis-ci

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!