Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Appium Mobile Automation and CI pipeline with B...

Appium Mobile Automation and CI pipeline with Bitrise

Rajiv Manivannan

March 31, 2023
Tweet

More Decks by Rajiv Manivannan

Other Decks in Programming

Transcript

  1. • Appium is an open source test automation framework for

    use with native, hybrid and mobile web apps. • It drives iOS and Android apps using the WebDriver protocol. • It o ff ers the fl exibility to write automated tests using any testing framework and di ff erent languages including Java, JavaScript, Ruby, Python etc., • Appium is built on the idea that testing native apps shouldn't require including an SDK or recompiling your app. Appium
  2. • UI Automator is a testing framework provided by Google

    for automated testing of Android applications. • XCUITest s a testing framework provided by Apple for automated testing of iOS applications. What is UI Automator & XCUITest ?
  3. • Appium drivers are responsible for translating the commands and

    instructions given by the Appium server into actions that can be performed on the mobile device or emulator. • To use a driver, testers need to create an instance of the driver and provide the desired capabilities, such as the device name, platform version, and app location. • Once the driver is initialised, testers can use its methods to interact with the mobile app and automate the testing process. Appium Drivers Appium Drivers
  4. • Appium plugins are extensions that can be added to

    the Appium framework to extend its functionality or to modify Appium’s behaviour. Appium Plugins Plugin Description Execute Driver Run entire batches of commands in a single call to the Appium server Images Image matching and comparison features OCR Find elements via OCR text AltUnity Target Unity games and apps for automation with a new context, via the AltUnityTester framework Appium Plugin
  5. Setup and Tools Requirements • macOS, Linux or Windows operating

    system • Node.js 14+ • NPM (Node Package Manager) 8+ Install and run > brew install node # get node.js > npm install -g appium@next # get appium 2.0 > appium driver list # get appium driver list > appium plugin list # get appium plugin list >appium # To run appium server Appium Server GUI is visual tool to con fi gure the simple and advances server con fi guration and to start and stop the server. Appium Inspector Tool is used for identifying the UI elements of the application under test.
  6. • Xpath • Id To get the properties of the

    UI elements Appium supported Locaters • accessibilityId • classname