EarlGrey推出APP但屏幕空白

时间:2016-03-03 14:02:16

标签: ios testing earlgrey

尝试在我的APP上启动EarlGrey测试,但在启动闪屏后,我得到的只是空屏幕。

我们使用2个不同的窗口用于启动画面和主APP,它看起来像EarlGrey堆叠在第一个。有没有办法在EarlGrey中切换屏幕?

我在测试输出中的内容:

  

2016-03-03 15:00:25.721 XING [23504:165847]无法启动com.apple.AXInspector [268435460 - port:31499]   2016-03-03 15:00:49.001 XING [23504:165847]应用程序窗口层次结构(按窗口级别排序,从前到后):

注: [窗口1] = [最前面的窗口] [AX] = [辅助功能]

==========窗口1 ==========

  

UITextEffectsWindow:0x7fbe3bf10e50; AX = N; AX.frame = {{0,0},{375,667}}; AX.activationPoint = {187.5,333.5}; AX.traits =' UIAccessibilityTraitNone&#39 ;; AX.focused =' N&#39 ;; frame = {{0,0},{375,667}};阿尔法= 1>     UIInputSetContainerView:0x7fbe3bc2cff0; AX = N; AX.frame = {{0,0},{375,667}}; AX.activationPoint = {187.5,333.5}; AX.traits =' UIAccessibilityTraitNone&#39 ;; AX.focused =' N&#39 ;; frame = {{0,0},{375,667}};不透明;阿尔法= 1>     UIInputSetHostView:0x7fbe3bc24550; AX = N; AX.frame = {{0,667},{375,0}}; AX.activationPoint = {187.5,667}; AX.traits =' UIAccessibilityTraitNone&#39 ;; AX.focused =' N&#39 ;; frame = {{0,667},{375,0}};不透明;阿尔法= 1>

==========窗口2 ==========

  

的UIWindow:0x7fbe3be22b80; AX = N; AX.frame = {{0,0},{375,667}}; AX.activationPoint = {187.5,333.5}; AX.traits =' UIAccessibilityTraitNone&#39 ;; AX.focused =' N&#39 ;; frame = {{0,0},{375,667}};不透明;阿尔法= 1>     | --UIView:0x7fbe3d55d970; AX = N; AX.frame = {{0,0},{375,667}}; AX.activationPoint = {187.5,333.5}; AX.traits =' UIAccessibilityTraitNone&#39 ;; AX.focused =' N&#39 ;; frame = {{0,0},{375,667}};不透明;阿尔法= 1>

1 个答案:

答案 0 :(得分:-1)

感谢您的回答。我找到了一个问题,我们APP中的所有UnitTests都有一个特定的设置。禁用这些有助于正确启动APP。