0
剛剛完成整合KIF到我的項目 - 但我有麻煩來運行測試...故障運行iOS的KIF自動化測試
當我運行我的單元測試,樣品XCTest例如運行良好,但單獨的kif測試從不執行。此外,他們出現在測試導航器中,但是當我明確告訴他們執行時,他們簡單不會。
我KIF測試是這樣的:
- (void)beforeEach
{
NSLog(@"starting");
}
- (void)afterEach
{
NSLog(@"ending");
}
- (void)testSuccessfulLogin
{
[tester enterText:@"[email protected]" intoViewWithAccessibilityLabel:@"Login User Name"];
[tester enterText:@"thisismypassword" intoViewWithAccessibilityLabel:@"Login Password"];
[tester tapViewWithAccessibilityLabel:@"Log In"];
[tester waitForTappableViewWithAccessibilityLabel:@"Welcome"];
}
和子KIFTestCase
我很樂意提供更多的信息,但我不知道該說些什麼......沒有任何人有任何運行KIF測試的經驗?
謝謝!
您看到的錯誤消息是什麼?您的應用可訪問嗎? – SuperMan
這可能不是測試,但你如何運行測試。你能解釋一下嗎? – SilentNot