Giter Club home page Giter Club logo

robotframework-appium-sample's Introduction

Appium Testing Sample with Robot Framework and AppiumLibrary

AppiumLibrary is an appium testing library for Robot Framework. In this sample usage of the library, you can find ios and android test suites that are ready to execute. Also you can find how the reports look like.

Contents:

Downloading demo package

To get the demo, you can either download the repository from GitHub or checkout the source code directly.

Reports are available also online in generated results.

Overview

In this sample framework, you will find test cases for iOS and Android. Test cases are written for sample applications under demoapp folder.

  • Test suite for iOS and Android Locators
  • Test suite for iOS and Android Mobile Web Testing
  • Test suite for iOS and Android Basic Interactions
  • Test suite for iOS and Android Selectors

Generated results

After running tests you will get report and log in HTML format. Example files are also visible online in case you are not interested in running the demo yourself:

Running Sample

Preconditions

Install Robot Framework and AppiumLibrary

The simplest way is using pip package manager:

pip install -r requirements.txt

Device Setup

After installing the library, you still need to setup an simulator/emulator or real device to use in tests. iOS and Android have separate paths to follow, and those steps better explained in Appium Driver Setup Guide. Please follow the Driver-Specific Setup according to platform.

Running tests

Test cases are located in the tests folder. They can be executed using the robot command:

robot  tests/*.test.robot

You can also run an iOS or Android case file/test:

robot tests/android_basic_interactions.test.robot
robot --test "Should find elements by ID" tests

TODO

There are much more to improve, here is the list of things to come

  • Circle.ci build pipeline
  • SauceLabs Execution Support
  • More coverage from library methods

robotframework-appium-sample's People

Contributors

serhatbolsu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

robotframework-appium-sample's Issues

ios_selectors.test.robot test failing for iPad Pro (12.9-inch) (4th generation)

Hi serhatbolsu,

Nice work with this example to setup Mobile test automation up and running with Robotframework.
It worked smoothly without any issue. Just a minor issue observed while running test
ios_selectors.test.robot test failing for iPad Pro (12.9-inch) (4th generation)
Should find elements by nspredicate | FAIL |
ValueError: Element locator 'nsp=visible = 1' did not match any elements.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.