在命令行上构建xcode时,KIF自动化测试的结果不同?

时间:2013-02-03 11:18:48

标签: iphone ios automated-tests kif

我已经在我的iPhone项目中安装并运行了KIF,并且当我通过XCode运行时,我已经创建了一系列完美传递的测试。当我在命令行上使用xcodebuild构建相同的项目和目标时,从UIPickerView中选择项目的一些测试会以下列方式失败:

2013-02-02 18:46:55.950 SmartRoamAcceptanceTests[31224:c07] PASS (0.84s): Tap view with accessibility label "Choose Country"
2013-02-02 18:46:55.978 SmartRoamAcceptanceTests[31224:c07] FAIL (0.03s): Select the "United States (+1)" item from the picker
2013-02-02 18:46:55.979 SmartRoamAcceptanceTests[31224:c07] FAILING ERROR: Error Domain=KIFTest Code=0 "Failed to find picker view value with title "United States (+1)"" UserInfo=0xd01c160 {NSLocalizedDescription=Failed to find picker view value with title "United States (+1)"}

如果从XCode IDE构建,这些测试可以很好地工作。可能有什么不同?

0 个答案:

没有答案