自动测试的科尔多瓦/ PhoneGap的web视图Android上 [英] Automatic Testing for Cordova/Phonegap Webview on Android

查看:230
本文介绍了自动测试的科尔多瓦/ PhoneGap的web视图Android上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我正在寻找一个解决方案来自动测试Android应用,Android原生的应用程序以及混合科尔多瓦/ PhoneGap的应用程序。

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

这是谷歌的用户界面的Automator看起来pretty的罚款,但不能处理WebViews,这使得它无法使用我。 然后我发现了有前途的自动化框架 Appium 基于硒,这也应该能够处理混合的应用程序,但我无法得到它的与WebViews工作,这似乎不能完全实现然而,当也有几个职位证明。

The UI Automator from Google looks pretty fine, but can not deal with WebViews, which makes it unusable for me. Then I found the promising automation framework Appium based on Selenium, which should also be able to deal with hybrid apps, but I couldn't get it to work with WebViews, it seems to not be implemented fully yet, as also several posts prove.

在试图Appium我发现了一个暗示的 Selendroid ,这也应该适用于混合的应用程序,但它似乎pretty的多车和不断崩溃我的整个计算机的所有的时间。

After trying Appium I found a hint for Selendroid, that also should work for hybrid apps, but it seems pretty much buggy and keeps crashing my whole computer all the time.

那么,有谁知道这里进行测试Android应用与WebViews一个可行的解决方案?我工作在Windows 7非常感谢您事先的任何帮助。

So, does anyone here know a working solution for testing Android Apps with WebViews? I'm working on Windows 7. Thanks a lot in advance for any help.

推荐答案

在我们需要知道你喜欢什么样的测试,以推动第一例。我想你想运行在UI功能测试?那是什么我能想到的阅读你的问题后。

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:

  • unit tests -> do it in xCode. http://www.apple.com
  • functionality tests -> http://appium.io/
  • unit tests -> JUnit, http://developer.android.com/tools/testing/testing_android.html
  • functionality tests -> http://selendroid.io/
  • 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
  • 在这里,我们是。有没有自动取款机。但是......镜头是一个位置:

根据appium Gappium使用JSON编写你的测试。我得到的线程权利,这是testet使用Web / iOS的这一刻。安卓/ Win中似乎没有被集成为这一刻:

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

其可以使用纹波和硒进行检测的混合应用程序。请记住,一些本地的功能/插件(在混合应用程序嘿嘿本地函数... =)不能进行测试或者需要一个未知的方式来嘲笑。那是在镜头的这一刻。

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.

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

这篇关于自动测试的科尔多瓦/ PhoneGap的web视图Android上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆