Xcode UI Tests are failing because of XCApplicationStateRunningActive on physical device

后端 未结 3 2059
轮回少年
轮回少年 2021-02-05 12:40

In my app I\'m adding some UI tests. With one test method everything works perfectly, but when I added second method, the test is failing because of the following error:

<
相关标签:
3条回答
  • 2021-02-05 12:57

    Updating to 7.3 beta resolved this issue for me. It definitely seems to be related to the teardown functionality.

    0 讨论(0)
  • 2021-02-05 13:04

    I have submitted a bug report and have been asked to test on Xcode 7.3 beta 3. It is fixed! You can check my radar 24524204‌ that is now closed as resolved.

    0 讨论(0)
  • 2021-02-05 13:09

    This sounds like the app isn't being torn down correctly after the first test is completed. Try explicitly killing the app in your tear down method.

    - (void)tearDown {
        [[[XCUIApplication alloc] init] terminate];
        [super tearDown];
    }
    
    0 讨论(0)
提交回复
热议问题