cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sgrebnov <>
Subject [GitHub] cordova-plugin-contacts pull request: CB-10399 Added Appium tests
Date Wed, 16 Mar 2016 20:14:05 GMT
Github user sgrebnov commented on the pull request:
    @dblotsky  We don't have manual tests - we have buttons demonstrating api calls (for both
api classes - with and without user interaction), there are no validation logic there.
    There are two options how we can proceed IMO (i'm fine with both of them):
    1. Made them as real tests (as you mentioned above so you can run them w/o appium). I
actually support idea to be able to run tests manually if needed. Where do you think should
be validation logic in this case (appium side or client app side)? Should we create separate
button for each option/combination for Camera tests for example, or use switches/etc. Also
manual api code writes  results to divs/dom elements so we will have to bring extra complexity
to tests to find/parse results from dom elements before validation.
    2. Don't use those buttons at all (same reason why unit tests don't rely on calling buttons)
- calling single cordova function from appium and getting callback result is simple. This
may lead to more clean/readable code and tests definitions and simplify tests maintenance.
    Agree regarding `fn.toString()`, but there is a special function for this - you can execute
function in browser context from appium.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message