[
https://issues.apache.org/jira/browse/CB-3232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15752606#comment-15752606
]
ASF GitHub Bot commented on CB-3232:
------------------------------------
GitHub user filmaj opened a pull request:
https://github.com/apache/cordova-plugin-contacts/pull/144
[Appium] Add support for iOS' XCUITest automation library
Please review @alsorokin !
### Platforms affected
iOS.
### What does this PR do?
When running UI automation tests in iOS, if you are running Xcode 8 or
newer (which you must have to run tests on iOS 10), you _must_ leverage Apple's
new UI automation framework, XCUITest. The current tests are written assuming
the older iOS UI automation framework, UIAutomation.
These changes move the appium test code so it is compatible with both:
- 9.3 and earlier iOS automation framework, UIAutomation
- 10.0+ iOS automation framework, XCUITest
The main changes include:
- leverages finding elements in native iOS land using the name selector,
which also happens to be faster than XPath selectors. This was required as the
test case for Unicode-based elements with XPath-based selection did _not_ work
under XCUITest.
- Appium has a handy capability called "autoAcceptDialogs" which [by
default we
use](https://github.com/apache/cordova-paramedic/blob/master/lib/appium/helpers/wdHelper.js#L80).
This feature allowed us to not have to worry about automating dismissing the
native permission dialogs around certain native API device accesses (such as,
in this plugin's case, contacts or Address Book access). However, this
capability is no longer supported under XCUITest. Thus, the code changes
included here also offer a transitionary method of explicitly automating
dismissing this dialog. It is robust enough to be able to work with both a
functioning `autoAcceptDialogs` capability, or not. Comments are included to
give hints on when the functionality could be simplified (once we move to iOS
10+ only).
### What testing has been done on this change?
Tested and working on local Xcode 8.1 + Appium 1.6.3 environment, on the
following simulators:
- iOS 9.3 iPhone 6S Plus
- iOS 10.0 iPhone 6S Plus
- iOs 10.1 iPhone 6S Plus
### Checklist
- [ ] [Reported an issue](http://cordova.apache.org/contribute/issues.html)
in the JIRA database
- [ ] Commit message follows the format: "CB-3232: (android) Fix bug with
resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform
affected.
- [ ] Added automated test coverage as appropriate for this change.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/filmaj/cordova-plugin-contacts
xcuitest-support
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-plugin-contacts/pull/144.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #144
----
commit 2de7bfea3fc49774b1472f7a2af9af0cbc3aca10
Author: filmaj <[email protected]>
Date: 2016-12-15T21:12:01Z
[Appium] Add forward-compatibility support for XCUITest automation in iOS.
Is backwards-compatible with UIAutomation-based test runs. Leverages finding
elements in native iOS land using the name selector, which also happens to be
faster than XPath selectors.
----
> "cordova platform add blackberry" fails on 2.7.1-rc.1
> -----------------------------------------------------
>
> Key: CB-3232
> URL: https://issues.apache.org/jira/browse/CB-3232
> Project: Apache Cordova
> Issue Type: Bug
> Components: BlackBerry, CLI
> Affects Versions: 2.7.0
> Reporter: Michael Brooks
> Assignee: Michael Brooks
> Fix For: 2.7.0
>
>
> The following error is thrown when running {{$ cordova platform add
> blackberry}}:
> {code}
> [Error: An error occured during creation of blackberry sub-project. Creating
> BlackBerry project...
> Updating config.xml ...
> sed:
> /Users/mwbrooks/Dropbox/Development/sandbox/myapp/platforms/blackberry/www/config.xml:
> No such file or directory
> Cleaning up ...
> Remember to update the project.properties file inside your application
> directory!
> ]
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]