Pages

Friday, 13 August 2021

程序测试的自动化工具appium

Automation for iOS, Android, and Windows Apps.

NPM version Dependency Status devDependency Status

Monthly Downloads

FOSSA Status

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.

Please refer to Appium Platform Support for more details.

Why Appium?

  1. You don't have to recompile your app or modify it in any way, due to the 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 12+.

Get Started

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

There is also a 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.

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

Contributing

Please take a look at our contribution documentation for instructions on how to build, test, and run Appium from the 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.

from https://github.com/appium/appium

-------------------------------------------------------

 Is native app automation missing from your tool belt? 


Forget recompiling

 Philosophy

Appium is built on the idea that testing native apps shouldn't require including an SDK or recompiling your app. And that you should be able to use your preferred test practices, frameworks, and tools. Appium is an open source project and has made design and tool decisions to encourage a vibrant contributing community.

Use your favorite tool

Use your favorite tools

Appium aims to automate any mobile app from any language and any test framework, with full access to back-end APIs and DBs from test code. Write tests with your favorite dev tools using all the above programming languages, and probably more (with the Selenium WebDriver API and language-specific client libraries).

Requirements

Requirements

iOS

Mac OSX
XCode w/ Command Line Tools

Android

Mac OSX or Windows or Linux
Android SDK ≥ 16

Easy setup process, run a test now.

> brew install node      # get node.js
> npm install -g appium  # get appium
> npm install wd         # get appium client
> appium &               # start appium
> node your-appium-test.js

See the Appium example tests.


from https://appium.io/

--------------------------------

https://github.com/appium/appium-desktop/releases/tag/v1.21.0

--------------------------------------------------------------------------



No comments:

Post a Comment