Yog*_*ton 6 xcode ui-testing ios xcode7 xcode-ui-testing
我正在尝试使用Xcode 7在旧项目中添加和运行UI自动化测试.这是我做的:
现在,当我尝试运行录制的测试时,我收到以下错误:
失败:捕获"NSInternalInconsistencyException","没有通过测试配置指定的目标应用程序路径:testBundleURL:file:///xxxxxxxxxxx/PlugIns/PageonceUITests.xctest/ productModuleName :( null)testsToSkip:(null)testsToRun:(null)reportResultsToIDE:no sessionIdentifier:<__ NSConcreteUUID 0x7fc818d181a0> 7045B650-CDAF-4EC9-9738-83F78E1514D8 pathToXcodeReportingSocket:(null)disablePerformanceMetrics:no treatMissingBaselinesAsFailures:no baselineFileURL:(null)targetApplicationPath:(null)targetApplicationBundleID:(null)
此错误似乎是在抱怨添加 UI 测试目标时选择的“要测试的目标”字段。UI 测试目标 -> 常规选项卡下的“目标应用程序”属性是否正确显示选择的主应用程序?一个快乐的配置看起来像这样,
2015-10-04 17:30:50.960 XCTRunner[22941:4703128] Found configuration <XCTestConfiguration: 0x7fbf3050c8b0>
testBundleURL:file:///Users/username/Library/Developer/Xcode/DerivedData/App-fxeyzrynjcscxzaxjvmnormcjhbr/Build/Products/Debug-iphonesimulator/APPUITests-Runner.app/PlugIns/APPUITests.xctest/
productModuleName:APPUITests
testsToSkip:(null)
testsToRun:(null)
reportResultsToIDE:YES
sessionIdentifier:<__NSConcreteUUID 0x7fbf30503430> B324DF9D-769F-4217-901F-24482A719005
pathToXcodeReportingSocket:(null)
disablePerformanceMetrics:no
treatMissingBaselinesAsFailures:no
baselineFileURL:(null)
targetApplicationPath:/Users/username/Library/Developer/Xcode/DerivedData/APP-fxeyzrynjcscxzaxjvmnormcjhbr/Build/Products/Debug-iphonesimulator/AppName.app
targetApplicationBundleID:com.bundle.appBundle.app.dev
reportActivities:no
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3463 次 |
| 最近记录: |