Automatic Testing for Cordova/Phonegap Webview on Android

前端 未结 3 1957
野趣味
野趣味 2021-02-02 03:34

I\'m currently looking for a solution to test Android Apps automatically, native Android apps as well as hybrid Cordova/Phonegap apps.

The UI Automator from Google looks

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-02 04:09

    In first case we need to know what kind of tests you like to drive. I think you like to run functional tests on the UI? Thats what i can think about after reading your question.

    So lets split this by the given environment:

    native iOS

    • unit tests -> do it in xCode. http://www.apple.com
    • functionality tests -> http://appium.io/

    native Android

    • unit tests -> JUnit, http://developer.android.com/tools/testing/testing_android.html
    • functionality tests -> http://selendroid.io/

    native Web like phonegap/cordova Apps

    • unit tests -> jsUnit, http://jsunit.berlios.de/
    • QA Testing and Checkstyle -> jsHint/jsLint, http://www.jshint.com/ & http://www.jslint.com/
    • functionality tests -> http://docs.seleniumhq.org/ & https://npmjs.org/package/ripple-
    • functionality tests (E2E) -> https://angular.github.io/protractor/#/ or https://github.com/jasmine/jasmine
    • Here is a article about JavaScript QA / QS

    native X - The out of the Box solution for all Platforms

    • Here we are. There is none atm. But .. footage is that one here:

    Gappium based on appium uses json for writing your tests. As i get the thread right, it was testet with Web/iOS for this moment. Android/Win seems not be integrated for this moment:

    https://github.com/appium/io.appium.gappium.sampleapp

    Note for phonegap & apache cordova functional tests:

    Its possible to use ripple and selenium for testing hybrid apps. Keep in mind that some native function/plugins (hehe native functions on hybrid apps ... =) cant be tested or need to be mocked on a unknown way. Thats the footage for this moment.

    enter image description here

    Maybe usefull for you Continous Integration Server:

    https://github.com/linslin/PHPUnit-selenium-HTMLGallery

提交回复
热议问题