的PhoneGap /科尔多瓦应用的自动化测试 [英] Automated testing of PhoneGap/Cordova apps

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

问题描述

如果我想执行的PhoneGap应用程序的自动化测试(目前只有iOS上),有什么可以怎么做(如果有的话)?

If I want to perform automated testing of a PhoneGap app (for now, only on iOS), what options do I have (if any)?

硒本来是我的第一个电话,但<一href=\"http://stackoverflow.com/questions/11847344/can-you-use-selenium-with-a-phonegap-application\">Can您使用Selenium与PhoneGap的应用程序吗?表明这是不可能的。它看起来像有一个iPhone司机iOS上运行的硒,但没有指示如何与PhoneGap的交互。旧的PhoneGap维基似乎暗示,它是可能的,但并没有真正说如何。

Selenium would have been my first call, but Can you use Selenium with a phonegap application? suggests that's not possible. It looks like there's an iPhone driver to run Selenium on iOS, but no indication how to make that interact with PhoneGap. The old PhoneGap wiki seems to imply that it's possible but doesn't really say how.

我也看了一下用茉莉花与茉莉花jQuery插件同样的事情,但它需要复制应用程序HTML(并保持的开销两者之间的同步等)。

I had also looked at using Jasmine with the Jasmine-jQuery plugin for much the same thing but it requires duplicating the app HTML (and the overhead of keeping the two in sync etc).

推荐答案

使用硒/ webdriver的与PhoneGap的/科尔多瓦Android是目前不可能的。我们确实有在一个点上具有一定版本的webdriver的这个工作,但我一直在遇到麻烦的webdriver客户定制网页视图,如CordovaWebView,这科尔多瓦/ PhoneGap的Andr​​oid是基于工作的当前版本。我们仍在试图弄清楚如何获得新的code与自定义Web意见很好地工作,因为没有文档,这个至今。

Using Selenium/WebDriver with PhoneGap/Cordova Android is currently not possible. We did have this working at one point with a certain version of WebDriver, but I have been having trouble getting the current version of the WebDriver client working with custom WebViews such as the CordovaWebView, which Cordova/PhoneGap Android is based on. We are still trying to figure out how to get the new code to work nicely with custom web views, since there's no documentation for this so far.

所以,可悲的是,这一个答案是还没有,但我们正在努力。

So, sadly, the answer for this one is "not yet, but we're trying".

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

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