EarlGrey:由于下面的闲置资源很忙,因此无法执行阻止

时间:2017-08-18 10:00:54

标签: ios swift automated-tests earlgrey

我运行了以下命令,它说无法执行阻止,因为下面的空闲资源很忙。

EarlGrey.select(elementWithMatcher: grey_accessibilityLabel("First Label")).atIndex(0).perform(grey_tap())

EarlGrey.select(elementWithMatcher: grey_accessibilityLabel("Second Label")).perform(grey_tap())

第二个标签位于顶部的导航栏上。点击该按钮屏幕即可滑动。

错误追踪:

Exception Details: Error Trace: [
  {
    "Description" : "Failed to execute block because idling resources below are busy.",
    "Description Glossary" :     {
      "UIWebView Pre-Load Tracker" : "UIWebView Pre-Load Tracker"
    },
    "Domain" : "com.google.earlgrey.GREYUIThreadExecutorErrorDomain",
    "Code" : "0",
    "File Name" : "GREYUIThreadExecutor.m",
    "Function Name" : "-[GREYUIThreadExecutor executeSyncWithTimeout:block:error:]",
    "Line" : "235",
    "TestCase Class" : "EarlgreyAutomation.FeedAutomation",
    "TestCase Method" : "testUserShouldWatchFlightAndSeeItsList"
  },
  {
    "Description" : "Failed to execute assertion within 30 seconds.",
    "Domain" : "com.google.earlgrey.ElementInteractionErrorDomain",
    "Code" : "4",
    "File Name" : "GREYElementInteraction.m",
    "Function Name" : "-[GREYElementInteraction assert:error:]",
    "Line" : "418",
    "TestCase Class" : "EarlgreyAutomation.FeedAutomation",
    "TestCase Method" : "testUserShouldWatchFlightAndSeeItsList"
  }
]

我尝试通过将kGREYConfigKeyDelayedPerformMaxTrackableDuration的值更改为 threshold - 1 但没有进展来解决此问题。

0 个答案:

没有答案