[
https://issues.apache.org/jira/browse/CB-11232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15280307#comment-15280307
]
ASF GitHub Bot commented on CB-11232:
-------------------------------------
Github user alsorokin commented on the pull request:
https://github.com/apache/cordova-medic/pull/103#issuecomment-218501201
Some background on this:
Tests were failing because Appium callback couldn't reach the Appium server
from app side due to whitelist restrictions, therefore any `executeAsync` would
fail.
The fix is to include `<access origin="*" />` to `config.xml` file before
test run.
Also, as a small improvement I've fixed `tapElementByXPath` function to
work with fractional numbers. This also was a cause of test failures.
> Appium tests fail because 'Selenium error: session is terminated'
> -----------------------------------------------------------------
>
> Key: CB-11232
> URL: https://issues.apache.org/jira/browse/CB-11232
> Project: Apache Cordova
> Issue Type: Test
> Components: mobile-spec
> Environment: Mac OSX
> Reporter: Omar Mefire
> Assignee: Alexander Sorokin
> Labels: found-by-ci, ios, triaged
>
> Logs:
> https://ci.apache.org/builders/cordova-ios/builds/2529/steps/running-appium-tests/logs/stdio
> ======
> {noformat}
> [MEDIC LOG Mon, 09 May 2016 18:15:04 GMT] Uncaught exception! Killing server
> and exiting in 2 seconds...
> [MEDIC LOG Mon, 09 May 2016 18:15:04 GMT] Uncaught exception! Killing server
> and exiting in 2 seconds...
> [MEDIC LOG Mon, 09 May 2016 18:15:05 GMT] Appium process exited.
> [MEDIC LOG Mon, 09 May 2016 18:15:06 GMT] FATAL: Error: [currentContext()]
> Error response status: 6, Selenium error: A session is either terminated or
> not started
> at exports.newError
> (/Users/buildbot/slaves/apache/cordova-ios/cordova-medic/node_modules/wd/lib/utils.js:139:13)
> at
> /Users/buildbot/slaves/apache/cordova-ios/cordova-medic/node_modules/wd/lib/callbacks.js:75:19
> at
> /Users/buildbot/slaves/apache/cordova-ios/cordova-medic/node_modules/wd/lib/webdriver.js:174:5
> at Request._callback
> (/Users/buildbot/slaves/apache/cordova-ios/cordova-medic/node_modules/wd/lib/http-utils.js:87:7)
> at Request.self.callback
> (/Users/buildbot/slaves/apache/cordova-ios/cordova-medic/node_modules/request/request.js:368:22)
> at Request.emit (events.js:110:17)
> at Request.<anonymous>
> (/Users/buildbot/slaves/apache/cordova-ios/cordova-medic/node_modules/request/request.js:1219:14)
> at Request.emit (events.js:129:20)
> at IncomingMessage.<anonymous>
> (/Users/buildbot/slaves/apache/cordova-ios/cordova-medic/node_modules/request/request.js:1167:12)
> at IncomingMessage.emit (events.js:129:20)
> program finished with exit code 1
> elapsedTime=3700.311833
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]