硒是值得的测试在移动设备上? [英] Is Selenium testing worthwhile on mobile devices?

查看:196
本文介绍了硒是值得的测试在移动设备上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们一直在准备做我们的使用Selenium的Web应用程序的UI测试。我们现在有第二个想法。从我可以告诉,该webdrivers为Android和iOS设备不使用,用户将使用实际的浏览器。相反,他们使用web视图,其可以是或可以不是类似于实际的浏览器。我已经看到了Android版,特别各种报告,似乎表明的WebView行为不同于内置的浏览器和Chrome浏览器,这是现在某些设备上的默认。

We've been planning to do UI testing of our web application using Selenium. We're now having second thoughts. From what I can tell, the webdrivers for Android and iOS devices don't use the actual browser that a user would use. Instead they use a WebView, which may or may not be similar to the actual browser. I've seen various reports for Android in particular that seem to indicate that the WebView behaves differently than the built in browser and from Chrome, which is now the default on some devices.

你是否觉得使用Selenium测试实际的硬件设备上是值得的?是不是比使用仿真器或多或少准确?你发现了什么是使用自动化测试,让你舒服,你的web应用程序将正常工作在所有您所支持的硬件平台的最有效方法是什么?

Do you find that using Selenium to test on the actual hardware device is worthwhile? Is it more or less accurate than using emulators? What have you found is the most effective way to use automated testing to make you comfortable that your web application will work correctly on all of the hardware platforms that you support?

在我们的例子中,我们需要支持近期主流浏览器版本在PC,Mac,平板电脑和电话。硒是运作良好的PC测试,但我关心的平板电脑和手机的测试。我们正在考虑是否要推出我们自己的,或者使用类似uitest.js,我们实际上可以在实际设备浏览器中运行。

In our case, we need to support recent versions of major browsers on PCs, Macs, tablets, and phones. Selenium is working well for the PC testing, but I'm concerned about the tablet and phone testing. We're considering whether we should roll our own or use something like uitest.js that we can actually run on the actual device browsers.

推荐答案

虽然两者存在于硒webdriver的源$ C ​​$ C库今天iPhone的驱动程序和Android驱动程序使用WebView控件来浏览网页,这两个项目都在很大程度上是德precated。这种去precation是明确的,在iPhone的驱动程序的情况下,和默契在Android驱动程序的情况下。

While both the iPhone driver and Android driver that exist in the Selenium WebDriver source code repository today use a WebView control to browse the web, both projects have been largely deprecated. This deprecation is explicit in the case of the iPhone driver, and tacit in the case of the Android driver.

这些驱动程序已被取代其他项目,如 IOS驱动,的Selendroid Appium 。这些项目是基于webdriver的项目,使用相同的客户端API和通信使用相同 JSON的过基于HTTP的电线协议的,但是能够自动在移动平台原生和混合应用。他们通常可以自动应用无论是在设备或模拟器。在每一个我所提到的三个项目的情况下,他们正在积极地维护和发展工作正在进行中。

Those drivers have been supplanted by other projects like ios-driver, Selendroid, and Appium. These projects are based on the WebDriver project, using the same client API and communicate using the same JSON-over-HTTP-based wire protocol, but are capable of automating native and hybrid applications on mobile platforms. They can usually automate the application either on the device or in an emulator. In the case of each of the three projects I've mentioned, they are actively maintained and development is ongoing.

这篇关于硒是值得的测试在移动设备上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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