Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WebDriverAgent] During testing video , Enqueue Failure #14557

Closed
Alex-Xcl opened this issue Jul 15, 2020 · 2 comments
Closed

[WebDriverAgent] During testing video , Enqueue Failure #14557

Alex-Xcl opened this issue Jul 15, 2020 · 2 comments
Labels
ThirdParty upstream problems XCUITest regarding xcuitest driver

Comments

@Alex-Xcl
Copy link

The problem

Use WebDriverAgent from Appium@1.17.1 ,xcode 11.5 and ios 13.5.1

During the test of video activity interface, the application will crash. The webriveragent prints the following information:
image

@Alex-Xcl
Copy link
Author

Supplement WedDriverAgent full output:
2020-07-15 10:25:50.806816+0800 WebDriverAgentRunner-Runner[801:321398] Running tests...
Test Suite 'All tests' started at 2020-07-15 10:25:54.925
Test Suite 'WebDriverAgentRunner.xctest' started at 2020-07-15 10:25:54.926
Test Suite 'UITestingUITests' started at 2020-07-15 10:25:54.926
2020-07-15 10:25:54.956222+0800 WebDriverAgentRunner-Runner[801:321398] [User Defaults] Couldn't write values for keys (
KeyboardAutocorrection
) in CFPrefsPlistSource<0x282a69880> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2020-07-15 10:25:54.963492+0800 WebDriverAgentRunner-Runner[801:321398] [User Defaults] Couldn't write values for keys (
KeyboardPrediction
) in CFPrefsPlistSource<0x282a69880> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2020-07-15 10:25:54.964016+0800 WebDriverAgentRunner-Runner[801:321398] [User Defaults] Couldn't write values for keys (
KeyboardShowPredictionBar
) in CFPrefsPlistSource<0x282a69880> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2020-07-15 10:25:54.966163+0800 WebDriverAgentRunner-Runner[801:321398] [User Defaults] Couldn't write values for keys (
DidShowGestureKeyboardIntroduction
) in CFPrefsPlistSource<0x282a69880> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
Test Case '-[UITestingUITests testRunner]' started.
t = 0.00s Start Test at 2020-07-15 10:25:54.967
t = 0.00s Set Up
2020-07-15 10:25:54.975104+0800 WebDriverAgentRunner-Runner[801:321398] Built at Jul 15 2020 10:25:12
2020-07-15 10:25:54.990342+0800 WebDriverAgentRunner-Runner[801:321398] ServerURLHere->http://192.168.2.2:8100<-ServerURLHere
2020-07-15 10:25:54.990877+0800 WebDriverAgentRunner-Runner[801:321580] Using singleton test manager
t = 22.95s Open com.dm10086.hdm
t = 22.96s Launch com.dm10086.hdm
t = 23.08s Setting up automation session
2020-07-15 10:26:19.776880+0800 WebDriverAgentRunner-Runner[801:321398] Getting the most recent active application (out of 1 total items)
t = 24.81s Find the Application 'com.dm10086.hdm'
t = 24.81s Requesting snapshot of accessibility hierarchy for app with pid 805
t = 34.88s Open com.dm10086.hdm
t = 34.88s Activate com.dm10086.hdm
t = 34.91s Wait for com.dm10086.hdm to become Running Foreground
2020-07-15 10:26:29.911126+0800 WebDriverAgentRunner-Runner[801:321398] Getting the most recent active application (out of 1 total items)
t = 34.94s Find the Application 'com.dm10086.hdm'
t = 34.95s Requesting snapshot of accessibility hierarchy for app with pid 805
2020-07-15 10:26:35.707499+0800 WebDriverAgentRunner-Runner[801:321398] Getting the most recent active application (out of 1 total items)
t = 40.74s Get all elements bound by accessibility element for: Elements matching predicate 'wdName == "允许" AND (1 == 1 OR identifier == 0 OR frame == 0 OR value == 0 OR title == 0 OR label == 0 OR elementType == 0 OR enabled == 0 OR placeholderValue == 0 OR selected == 0)'
t = 40.75s Requesting snapshot of accessibility hierarchy for app with pid 805
t = 40.88s Find: Descendants matching type Any
t = 40.89s Find: Elements matching predicate 'wdName == "允许" AND (1 == 1 OR identifier == 0 OR frame == 0 OR value == 0 OR title == 0 OR label == 0 OR elementType == 0 OR enabled == 0 OR placeholderValue == 0 OR selected == 0)'
2020-07-15 10:26:35.897061+0800 WebDriverAgentRunner-Runner[801:321398] Getting the most recent active application (out of 1 total items)
t = 40.93s Get all elements bound by accessibility element for: Elements matching predicate 'wdValue == "第 1 页(共 4 页)" AND (1 == 1 OR identifier == 0 OR frame == 0 OR value == 0 OR title == 0 OR label == 0 OR elementType == 0 OR enabled == 0 OR placeholderValue == 0 OR selected == 0)'
t = 40.93s Requesting snapshot of accessibility hierarchy for app with pid 805
t = 46.30s Requesting snapshot of accessibility hierarchy for app with pid 805
t = 47.32s Requesting snapshot of accessibility hierarchy for app with pid 805
2020-07-15 10:26:42.360031+0800 WebDriverAgentRunner-Runner[801:321398] Enqueue Failure: Failed to resolve query: Error getting main window kAXErrorServerNotFound /Applications/Appium1.17.1.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgentRunner/UITestingUITests.m 38 1
2020-07-15 10:26:42.371107+0800 WebDriverAgentRunner-Runner[801:321398] Getting the most recent active application (out of 1 total items)

@mykola-mokhnach
Copy link
Collaborator

The error is coming from XCTest. Unfortunately there is nothing we can do there. Please report it to Apple.

@mykola-mokhnach mykola-mokhnach added ThirdParty upstream problems XCUITest regarding xcuitest driver labels Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ThirdParty upstream problems XCUITest regarding xcuitest driver
Projects
None yet
Development

No branches or pull requests

2 participants