Selenium 和 Appium 有什么区别?

What is difference between Selenium and Appium?

我看不出 Selenium 和 Appium 之间的确切区别。这两个server和framework是吧?

但是我在github中看到了很多使用appium时的代码,但是示例代码仅包含selenium webdriver元素。请有人告诉我两个工具。所以我们一起使用appium和selenium?

谢谢,

Appium 是 Selenium 测试原生应用程序的外壳(IOS 和 Android)。来自 Appium introduction

...wrapping the vendor-provided frameworks in one API, the WebDriver API. WebDriver (aka "Selenium WebDriver") specifies a client-server protocol (known as the JSON Wire Protocol). ...In other words, Appium & WebDriver clients are not technically "test frameworks" -- they are "automation libraries".

...WebDriver has become the de facto standard for automating web browsers, and is a W3C Working Draft. Why do something totally different for mobile? Instead we have extended the protocol with extra API methods useful for mobile automation.

简而言之,Appium 是一个适用于所有人的移动测试自动化框架(带有工具):iOS 和 Android 的原生、混合和移动网络应用程序。 Appium 是测试自动化框架的绝佳选择,因为它可用于所有这些不同的 app/web 类型。基本上,Appium 源于 Selenium,它在内部使用 JSONWireProtocol 与使用 Selenium 的 WebDriver 的 iOS 和 Android 应用程序进行交互。

Selenium 在与 appium 封装时既可用于移动自动化,也可独立用于 Web 自动化

selenium 和 appium 的基本区别

Appium :

  1. 用于移动应用程序(android & ios)。
  2. 具有特定的驱动程序,例如:AndroidDriver 和 IOSDriver

如果你想在 android 中 运行 低于 17 api 的自动化,你必须使用 selendroid。

硒:

  1. 它用于移动网络应用程序。
  2. Web 应用程序上有 运行 的 Web 驱动程序。

常见事物:

  1. 两者都是开源的。
  2. 两者都可以自定义。
  3. 两者都使用 Json-Wire 协议。

详情参考https://www.quora.com/Which-one-is-better-Selenium-or-Appium-for-app-testing