Appium

适用于 iOS、Android 和 Windows Apps 的自动化。「 Automation for iOS, Android, and Windows Apps.」

Github星跟蹤圖

Appium

Appium 是一个开源、跨平台的测试自动化工具,用于本地、混合和移动 web 和桌面应用程序。我们支持模拟器(iOS)、模拟器(Android)和真实设备(iOS, Android, Windows, Mac)。

想直接进入行动?查看我们的入门文档

支持的平台

Appium 支持各种平台的应用程序自动化,如 iOS、Android 和 Windows。每个平台都由一个或多个“drivers”支持,这些驱动程序知道如何自动化特定的平台。请选择下面的驱动程序以获得有关该驱动程序如何工作以及如何设置它的具体信息:

为什么选择Appium?

  1. 由于在所有平台上都使用了标准的自动化api,所以你不需要重新编译你的应用或者以任何方式修改它
  2. 您可以使用您最喜欢的开发工具,使用任何与 WebDriver 兼容的语言来编写测试,如 Java、Objective-C、JavaScript(Node)、PHP、Python、Ruby、c#、Clojure,或者使用带有 Selenium WebDriver API 和 特定于语言的客户端库的 Perl。
  3. 你可以使用任何测试框架。
  4. Appium 内置的移动 web 和混合应用程序支持。在同一个脚本中,你可以在本地应用自动化和 webview 自动化之间无缝切换,所有这些都使用 WebDriver 模型,这已经是 web 自动化的标准

投资于 WebDriver 协议意味着你将赌注押在一个单一的、免费的、开放的测试协议上,这个协议已经成为一个网络标准。不要把自己锁在私有栈中。

例如,如果你使用 Apple 的 XCUITest 库而不使用 Appium,你只能使用 Obj-C/Swift 编写测试,并且只能通过 Xcode 运行测试。类似地,对于谷歌的 UiAutomator 或 Espresso,您只能用 Java/Kotlin 编写测试。Appium 为移动及其他领域打开了真正的跨平台本机应用程序自动化的可能性。 终于!

如果你是 Appium 的新手,或者想要一个关于它的更全面的描述,请阅读我们对 Appium 概念的介绍

要求

需要为要在其上运行测试的特定平台设置环境。上面的每个驱动程序都记录了它们特定品牌的自动化的需求。至少,您需要能够运行Node.js 10+。

开始使用

查看我们的入门指南,开始使用 Appium。

还有示例代码,其中包含用各种不同语言编写的许多测试示例

文档

对于精美渲染的文档,请访问 appium.io。你也可以在 Appium 的GitHub Repo 中找到完整的 Appium 文档页面列表。

update-appium-io.yml 通过 CI 作业 创建 PR。 在 appium.io 存储库中,包含文档更新。

一旦PR被合并,最新的文档将在 appium.io 中。

贡献

请看我们的贡献文档,了解如何从源代码构建、测试和运行 Appium。

路线图

对Appium未来的发展感兴趣吗? 查看路线图

项目历史,学分和灵感

用户论坛

公告和辩论经常在讨论组中进行,请务必注册!

故障排除

我们编写了故障排除指南。如果你有什么问题,请先看看这里。它包含了检查许多常见错误的说明,以及在遇到问题时如何与社区联系。

许可

FOSSA Status


(The first version translated by vz on 2020.07.18)

主要指標

概覽
名稱與所有者appium/appium
主編程語言JavaScript
編程語言JavaScript (語言數: 7)
平台Android, iOS, Mac, Windows
許可證Apache License 2.0
所有者活动
創建於2013-01-09 22:49:50
推送於2025-04-20 06:44:26
最后一次提交2025-04-20 06:41:51
發布數1843
最新版本名稱appium@2.17.1 (發布於 2025-03-17 11:24:00)
第一版名稱next-release (發布於 )
用户参与
星數19.7k
關注者數879
派生數6.2k
提交數11.5k
已啟用問題?
問題數13848
打開的問題數113
拉請求數5738
打開的拉請求數11
關閉的拉請求數741
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?

Appium

NPM version
Dependency Status
devDependency Status

Monthly Downloads

FOSSA Status
Greenkeeper badge

Appium is an open source, cross-platform test automation tool for native,
hybrid and mobile web and desktop apps. We support simulators (iOS), emulators
(Android), and real devices (iOS, Android, Windows, Mac).

Want to skip straight to the action? Check out our getting
started
doc.

Supported Platforms

Appium supports app automation across a variety of platforms, like iOS,
Android, and Windows. Each platform is supported by one or more "drivers",
which know how to automate that particular platform. Choose a driver below for
specific information about how that driver works and how to set it up:

Why Appium?

  1. You don't have to recompile your app or modify it in any way, due
    to use of standard automation APIs on all platforms.
  2. You can write tests with your favorite dev tools using any
    WebDriver-compatible
    language such as Java, Objective-C, JavaScript (Node), PHP, Python, Ruby,
    C#, Clojure, or Perl with the Selenium WebDriver API and language-specific
    client libraries
    .
  3. You can use any testing framework.
  4. Appium has built-in mobile web and hybrid app support. Within the same
    script you can switch seamlessly between native app automation and webview
    automation, all using the WebDriver model that's already the standard for
    web automation.

Investing in the
WebDriver protocol means
you are betting on a single, free and open protocol for testing that has become
a web standard. Don't lock yourself into a proprietary stack.

For example, if you use Apple's XCUITest library without Appium you can only
write tests using Obj-C/Swift, and you can only run tests through Xcode.
Similarly, with Google's UiAutomator or Espresso you can only write tests in
Java/Kotlin. Appium opens up the possibility of true cross-platform native app
automation, for mobile and beyond. Finally!

If you're new to Appium, or want a more comprehensive description of what this is all
about, please read our Introduction to Appium
Concepts
.

Requirements

Your environment needs to be set up for the particular platforms that you want
to run tests on. Each of the drivers above documents the requirements for their
particular brand of automation. At a minimum, you will need to be able to run
Node.js 10+.

Get Started

Check out our Getting Started guide
to get going with Appium.

There is also sample code that contains many examples of tests in a variety
of different languages
!

Documentation

For prettily-rendered docs, please visit appium.io. You can
always find the full list of Appium doc pages at Appium's GitHub
Repo
as well.

Contributing

Please take a look at our contribution documentation
for instructions on how to build, test and run Appium from source.

Roadmap

Interested in where Appium is heading in the future? Check out the Roadmap

Project History, Credits & Inspiration

User Forums

Announcements and debates often take place on the Discussion
Group
, be sure to sign up!

Troubleshooting

We put together a troubleshooting
guide
. Please have a look
here first if you run into any problems. It contains instructions for checking
a lot of common errors and how to get in touch with the community if you're
stumped.

License

FOSSA Status