【发布时间】:2012-10-04 21:27:12
【问题描述】:
我正在尝试将 Instruments UIAutomation 与 Jenkins 的 CI 结合起来。
在 Jenkins 项目的配置中,我定义了一个调用脚本:
sh buildAndTest.sh
它所做的就是调用 uitest
#!/bin/sh
make uitest
uitest 在 Makefile 中定义,它调用 Instruments:
/usr/bin/instruments -t pathToTemplate/MyTemplate.tracetemplate pathToSimulator/Library/Application\ Support/iPhone\ Simulator/5.1/Applications/a_very_long_name/Main.app
此代码在终端中以及当我调用“make uitest”时有效。 Jenkins执行脚本时不起作用,控制台输出:
仪器使用错误:(空) 制作:* [uitest] 错误 254 构建步骤“执行 shell”将构建标记为失败 完成:失败
任何想法如何整合这两者?
【问题讨论】:
标签: xcode jenkins instruments ios-ui-automation