EarlGrey 启动 APP 但屏幕是空白的
EarlGrey launches the APP but the screen is blank
尝试在我的应用程序上启动 EarlGrey 测试,但在启动画面打开后我得到的只是空屏幕。
我们使用了 2 个不同的 windows 作为启动画面和主应用程序,第一个看起来像是 EarlGrey 堆栈。有没有办法在 EarlGrey 中切换屏幕?
我在测试输出中的内容:
2016-03-03 15:00:25.721 XING[23504:165847] Could not kickstart com.apple.AXInspector [268435460 - port: 31499]
2016-03-03 15:00:49.001 XING[23504:165847] Application window hierarchy (ordered by window level, from front to back):
图例:
[Window 1] = [最前面的 Window]
[AX] = [辅助功能]
========== Window 1 ==========
UITextEffectsWindow:0x7fbe3bf10e50; AX=N; AX.frame={{0, 0}, {375, 667}}; AX.activationPoint={187.5, 333.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {375, 667}}; alpha=1>
UIInputSetContainerView:0x7fbe3bc2cff0; AX=N; AX.frame={{0, 0}, {375, 667}}; AX.activationPoint={187.5, 333.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {375, 667}}; opaque; alpha=1>
UIInputSetHostView:0x7fbe3bc24550; AX=N; AX.frame={{0, 667}, {375, 0}}; AX.activationPoint={187.5, 667}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 667}, {375, 0}}; opaque; alpha=1>
========== Window 2 ==========
UIWindow:0x7fbe3be22b80; AX=N; AX.frame={{0, 0}, {375, 667}}; AX.activationPoint={187.5, 333.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {375, 667}}; opaque; alpha=1>
|--UIView:0x7fbe3d55d970; AX=N; AX.frame={{0, 0}, {375, 667}}; AX.activationPoint={187.5, 333.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {375, 667}}; opaque; alpha=1>
感谢您的回答。我发现了一个问题,我们 APP 中的所有单元测试都有一个特定的设置。禁用那些有助于正确启动应用程序。
尝试在我的应用程序上启动 EarlGrey 测试,但在启动画面打开后我得到的只是空屏幕。
我们使用了 2 个不同的 windows 作为启动画面和主应用程序,第一个看起来像是 EarlGrey 堆栈。有没有办法在 EarlGrey 中切换屏幕?
我在测试输出中的内容:
2016-03-03 15:00:25.721 XING[23504:165847] Could not kickstart com.apple.AXInspector [268435460 - port: 31499] 2016-03-03 15:00:49.001 XING[23504:165847] Application window hierarchy (ordered by window level, from front to back):
图例: [Window 1] = [最前面的 Window] [AX] = [辅助功能]
========== Window 1 ==========
UITextEffectsWindow:0x7fbe3bf10e50; AX=N; AX.frame={{0, 0}, {375, 667}}; AX.activationPoint={187.5, 333.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {375, 667}}; alpha=1> UIInputSetContainerView:0x7fbe3bc2cff0; AX=N; AX.frame={{0, 0}, {375, 667}}; AX.activationPoint={187.5, 333.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {375, 667}}; opaque; alpha=1> UIInputSetHostView:0x7fbe3bc24550; AX=N; AX.frame={{0, 667}, {375, 0}}; AX.activationPoint={187.5, 667}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 667}, {375, 0}}; opaque; alpha=1>
========== Window 2 ==========
UIWindow:0x7fbe3be22b80; AX=N; AX.frame={{0, 0}, {375, 667}}; AX.activationPoint={187.5, 333.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {375, 667}}; opaque; alpha=1> |--UIView:0x7fbe3d55d970; AX=N; AX.frame={{0, 0}, {375, 667}}; AX.activationPoint={187.5, 333.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {375, 667}}; opaque; alpha=1>
感谢您的回答。我发现了一个问题,我们 APP 中的所有单元测试都有一个特定的设置。禁用那些有助于正确启动应用程序。