The steps below guarantee the successful launch of autotests for your phone and application.
But I do not exclude that some steps may be superfluous, maybe I myself installed something in surplus :)
- Install the application server on the phone WebDriverAgent
- Add a valid distribution certificate
- Select the WebDriverAgentRunner scheme -> Real Device -> Build (⌘B)
- Connect the phone and run the tests. Open Product -> Test (⌘U)
$ brew install node
$ npm install -g [email protected]
$ npm install npm@latest -g
$ brew install ideviceinstaller
$ brew install carthage
$ npm install -g ios-deploy
$ appium-doctor
All components must be successfully installed and marked with a green mark, except for Android components.
- Build the project in Java / Python or other languages that support Appium / iOS (do not forget to install the libraries: apache, selenium, appium)
- In the project add information about the connected phone (name, udid, version, platform) and the path to the assembled application that will be tested.
- On the phone, a test (active session) must be started. WebDriverAgent
- In the console execute: appium --session-override
- Build and run the project
- Done, enjoy autoscrolls and autoclicking :)
Resource | Website |
---|---|
WebDriverAgent - official repository | plugins/googledrive/README.md |
WebDriverAgent - article instruction | Getting Started with Automated iOS Testing |
Good video tutorial | How to inspect iOS element using Xcode |