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.
Appium是一个开源、跨平台的测试自动化工具,用于本地、混合和移动web和桌面应用程序。支持模拟器(iOS、Android)和真实设备(iOS, Android, Windows, Mac)上的原生应用、混合应用和移动web应用、以及桌面app.
直接跳过这部分?点击getting started
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:
- iOS
- The XCUITest Driver
- (DEPRECATED) The UIAutomation Driver
- Android
- The Espresso Driver
- The UiAutomator2 Driver
- (DEPRECATED) The UiAutomator Driver
- The Windows Driver (for Windows Desktop apps)
- The Mac Driver (for Mac Desktop apps)
Appium支持跨各种平台的应用程序自动化,如iOS、Android和Windows。每个平台都由一个或多个“驱动程序”支持,这些“驱动程序”知道如何自动化特定的平台。选择一个驱动程序,以下是驱动程序如何工作和如何设置的具体信息:
- You don’t have to recompile your app or modify it in any way, due to use of standard automation APIs on all platforms.
- 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.
- You can use any testing framework.
- 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.
选择WebDriver协议意味着将赌注押在一个单一的、免费的、开放的测试协议上,这个协议已经成为一个网络标准。不要把自己锁在私有栈中。
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!
例如,如果你使用苹果的XCUITest库而不使用Appium,你只能使用Obj-C/Swift编写测试,并且只能通过Xcode运行测试。类似地,对于谷歌的UiAutomator或Espresso,你只能用Java/Kotlin编写测试。Appium为真正的跨平台本地应用程序自动化提供了可能性,适用于移动设备和其他设备。
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.
如果你是Appium的新手,或者想要一个关于它的更全面的描述,请阅读我们对Appium概念的介绍。
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+.
为了能够在特定平台运行测试,需要设置环境。上面的每个驱动程序都记录了它们特定品牌的自动化的需求。至少,您需要能够运行Node.js 10+。
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!
查看入门指南,开始使用Appium。
还有示例代码,其中包含许多用各种不同语言进行测试的示例!
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.
update-appium-io.yml creates a PR by CI job. in the appium.io repository with the documentation update.
Once the PR has been merged, the latest documentation will be in appium.io
对于更友好地呈现出来的文档,请访问appium.io。你也可以在Appium的GitHub Repo上找到完整的Appium文档页面列表。
update-appium-io.yml 通过CI job创建了一个PR,以在appium.io仓库中记录文档更新。
一旦PR被合并,最新的文档将被放在appium.io仓库中。
Please take a look at our contribution documentation for instructions on how to build, test and run Appium from source.
请查看我们的贡献文档,了解如何从源代码构建、测试和运行
Interested in where Appium is heading in the future? Check out the Roadmap.
对Appium未来的发展方向感兴趣吗?查看Roadmap。
Announcements and debates often take place on the Discussion Group, be sure to sign up!
讨论组经常会有公告和辩论,请务必注册!
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.
我们编写了故障排除指南。如果你有什么问题,请先看看这里。它包含了检查许多常见错误的说明,以及在遇到问题时如何与社区取得联系。