Ios KIF无法强制应用程序进入后台
当应用程序推送到后台并恢复应用程序时,我遇到问题。 当应用程序推到后台时,它无法强制地面恢复我的应用程序 这是我的密码:Ios KIF无法强制应用程序进入后台,ios,xcode-ui-testing,kif,Ios,Xcode Ui Testing,Kif,当应用程序推送到后台并恢复应用程序时,我遇到问题。 当应用程序推到后台时,它无法强制地面恢复我的应用程序 这是我的密码: - (void)testResumingEditProfile { self.methodName = NSStringFromSelector(_cmd); user = [TestUser sharedInstance].defaultNextUser; user.username = @"347"; [tester doLogin
- (void)testResumingEditProfile {
self.methodName = NSStringFromSelector(_cmd);
user = [TestUser sharedInstance].defaultNextUser;
user.username = @"347";
[tester doLoginSuccessfully:user];
app = [UITestApp sharedInstance];
screen = [tester navigateToOverviewPage];
employee = [[TestEmployee alloc] init].profileEmployee;
[self openEditProfile];
[tester catpureScreen:[self getCaptureScreenName:@"afterOpenEditProfile"]];
[system deactivateAppForDuration:5]; //Code to deactive and resume app
[tester catpureScreen:[self getCaptureScreenName:@"afterResumeEditProfile"]];
[tester waitForView:@"text-first-name" in:screen];
[tester waitForView:@"text-last-name" in:screen];
[tester tap:@"label-show-detail" in:screen];
[tester catpureScreen:[self getCaptureScreenName:@"afterOpenDetail"]];
[system deactivateAppForDuration:5]; //Code to deactive and resume app
[tester catpureScreen:[self getCaptureScreenName:@"afterResumeEditProfileDetail"]];
[tester waitForView:@"label-personal-infomation" in:screen];
[tester waitForView:@"label-contact-infomation" in:screen];
}
请找个人帮我解决这个问题。谢谢。很遗憾,此功能不受支持。不过,还有一些变通办法。看到这个github问题了吗