You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I have set up a KIF on a small simple app which only has a table view with 50 cells.
And I have written two tests like this.
- (void)testSwipeAction
{
// Go find one cell out of the screen.
[tester waitForCellAtIndexPath:[NSIndexPath indexPathForRow:40 inSection:0]
inTableViewWithAccessibilityIdentifier:@"table"];
// Move back to top of the table.
[tester waitForCellAtIndexPath:[NSIndexPath indexPathForRow:1 inSection:0]
inTableViewWithAccessibilityIdentifier:@"table"];
}
- (void)testTapVisibleCell
{
[tester tapViewWithAccessibilityIdentifier:@"Cell 1"];
}
So there are two scenarios when I execute the tests: 1) when the destination simulator is shutdown and 2) when the destination simulator is already booted.
When I run tests via Xcode, in both scenarios, tests worked fine.
However, when I run the tests via BUCK, it would work fine on scenario 2. But on scenario 1, it would hang on the second test method testTapVisibleCell. And the failure I see here is that KIFUITestActor(IdentifierTests) tapViewWithAccessibilityIdentifier: would lead to NSBundle accessibilityBundleWithLastPathComponent: which only exists until iOS 9.0.
What's really weird here is that it only happens when I am running the KIF tests with shutdown simulator (i.e. running test will start the simulator and then run the tests).
Hi,
So I have set up a KIF on a small simple app which only has a table view with 50 cells.
And I have written two tests like this.
So there are two scenarios when I execute the tests: 1) when the destination simulator is shutdown and 2) when the destination simulator is already booted.
testTapVisibleCell
. And the failure I see here is thatKIFUITestActor(IdentifierTests) tapViewWithAccessibilityIdentifier:
would lead toNSBundle accessibilityBundleWithLastPathComponent:
which only exists until iOS 9.0.Below is the trace exception
What's really weird here is that it only happens when I am running the KIF tests with shutdown simulator (i.e. running test will start the simulator and then run the tests).
My Environment
The text was updated successfully, but these errors were encountered: