All Projects → serhatbolsu → Robotframework Appiumlibrary

serhatbolsu / Robotframework Appiumlibrary

Licence: apache-2.0
AppiumLibrary is an appium testing library for RobotFramework

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Robotframework Appiumlibrary

Autolink
AutoLink是一个开源Web IDE自动化测试集成解决方案
Stars: ✭ 129 (-50.19%)
Mutual labels:  robotframework, appium
appium-tests
Tool to run Titanium mobile tests in Appium
Stars: ✭ 15 (-94.21%)
Mutual labels:  test-automation, appium
Autoline
建议你使用更新的AutoLink平台
Stars: ✭ 227 (-12.36%)
Mutual labels:  robotframework, appium
Cerberus Source
User-friendly automated testing framework.
Stars: ✭ 172 (-33.59%)
Mutual labels:  test-automation, appium
robotframework-excel
Robot-framework auto-test excel
Stars: ✭ 15 (-94.21%)
Mutual labels:  test-automation, robotframework
Winappdriver
Windows Application Driver
Stars: ✭ 2,577 (+894.98%)
Mutual labels:  test-automation, appium
SHAFT ENGINE
SHAFT is an MIT licensed test automation engine. Powered by best-in-class frameworks like Selenium WebDriver, Appium & RestAssured it provides a wizard-like syntax to increase productivity, and built-in wrappers to eliminate boilerplate code and to ensure your tests are extra stable and your results are extra reliable.
Stars: ✭ 170 (-34.36%)
Mutual labels:  test-automation, appium
Carina
Carina automation framework: Web, Mobile, API, DB
Stars: ✭ 549 (+111.97%)
Mutual labels:  test-automation, appium
MasterAppiumFramework
Automation Testing | Mobile | Java | OOPS | Appium | TestNG | Maven | ExtentReport | Java mail API | Logging (Log4J2) | Design Patterns (Page Object Model, Singleton) | Page Factories | Jenkins | Data-Driven Testing using JSON file | Expected Data using XML file
Stars: ✭ 27 (-89.58%)
Mutual labels:  test-automation, appium
robotframework-zoomba
Extended Robot Framework libraries to make testing GUI, REST/SOAP API, Mobile, and Windows Desktop easier.
Stars: ✭ 121 (-53.28%)
Mutual labels:  appium, robotframework
Unium
Automation for Unity games
Stars: ✭ 132 (-49.03%)
Mutual labels:  test-automation, appium
robot-framework-docker
Docker image to run robot framework acceptance testing in a docker container
Stars: ✭ 24 (-90.73%)
Mutual labels:  test-automation, robotframework
Coteafs Appium
📱 Wrapper Appium Framework in Java which supports Automation of Mobile and Tablet apps.
Stars: ✭ 93 (-64.09%)
Mutual labels:  test-automation, appium
Test Each
🤖 Repeat tests. Repeat tests. Repeat tests.
Stars: ✭ 89 (-65.64%)
Mutual labels:  library, test-automation
Mobileautomationframework
Single code base framework to test android and iOS app using appium (v6.1.0), maven, testng,java. Option to start appium server programmatically.
Stars: ✭ 66 (-74.52%)
Mutual labels:  test-automation, appium
PythonLibCore
Tools to ease creating larger test libraries for Robot Framework using Python
Stars: ✭ 46 (-82.24%)
Mutual labels:  test-automation, robotframework
carina
Carina automation framework: Web, Mobile, API, DB etc testing...
Stars: ✭ 652 (+151.74%)
Mutual labels:  test-automation, appium
MAQS
Magenic's automation quick start
Stars: ✭ 46 (-82.24%)
Mutual labels:  test-automation, appium
page-modeller
⚙️ Browser DevTools extension for modelling web pages for automation.
Stars: ✭ 66 (-74.52%)
Mutual labels:  test-automation, robotframework
sonic-agent
🎉Agent of Sonic cloud real machine testing platform. Sonic云真机测试平台Agent端。
Stars: ✭ 191 (-26.25%)
Mutual labels:  appium

Appium library for RobotFramework

Introduction

AppiumLibrary_ is an appium testing library for Robot Framework. Library can be downloaded from PyPI.

It uses Appium <http://appium.io/>_ to communicate with Android and iOS application similar to how Selenium WebDriver talks to web browser.

It is fully supported under Python 2.7. Python 3.6+ support is still experimental

.. image:: https://img.shields.io/pypi/v/robotframework-appiumlibrary.svg :target: https://pypi.python.org/pypi/robotframework-appiumlibrary/ :alt: Latest PyPI version

.. image:: https://img.shields.io/pypi/dm/robotframework-appiumlibrary.svg :target: https://pypi.python.org/pypi/robotframework-appiumlibrary/ :alt: Number of PyPI downloads

.. contents::

Keyword Documentation

See Keyword Documentation_ for available keywords and more information about the library in general.

Installation

The recommended installation method is using pip <http://pip-installer.org>__::

pip install --upgrade robotframework-appiumlibrary

See Robot Framework installation instructions_ for detailed information about installing Python and Robot Framework itself.

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.

Usage

To write tests with Robot Framework and AppiumLibrary, AppiumLibrary must be imported into your RF test suite. See Robot Framework User Guide <https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html>_ for more information.

As it uses Appium make sure your Appium server is up and running. For how to use Appium please refer to Appium Documentation <http://appium.io/docs/en/about-appium/getting-started/>_

When using Robot Framework, it is generally recommended to write tests easy to read/modify. The keywords provided in AppiumLibrary are pretty low level. It is thus typically a good idea to write tests using Robot Framework's higher level keywords that utilize AppiumLibrary keywords internally. This is illustrated by the following example where AppiumLibrary keywords like Input Text are primarily used by higher level keywords like Input Search Query.

.. code:: robotframework

*** Settings ***
Documentation  Simple example using AppiumLibrary
Library  AppiumLibrary

*** Variables ***
${ANDROID_AUTOMATION_NAME}    UIAutomator2
${ANDROID_APP}                ${CURDIR}/demoapp/ApiDemos-debug.apk
${ANDROID_PLATFORM_NAME}      Android
${ANDROID_PLATFORM_VERSION}   %{ANDROID_PLATFORM_VERSION=11}

*** Test Cases ***
Should send keys to search box and then check the value
  Open Test Application
  Input Search Query  Hello World!
  Submit Search
  Search Query Should Be Matching  Hello World!


*** Keywords ***
Open Test Application
  Open Application  http://127.0.0.1:4723/wd/hub  automationName=${ANDROID_AUTOMATION_NAME}
  ...  platformName=${ANDROID_PLATFORM_NAME}  platformVersion=${ANDROID_PLATFORM_VERSION}
  ...  app=${ANDROID_APP}  appPackage=io.appium.android.apis  appActivity=.app.SearchInvoke

Input Search Query
  [Arguments]  ${query}
  Input Text  txt_query_prefill  ${query}

Submit Search
  Click Element  btn_start_search

Search Query Should Be Matching
  [Arguments]  ${text}
  Wait Until Page Contains Element  android:id/search_src_text
  Element Text Should Be  android:id/search_src_text  ${text}

Create a file with the content above (name it: test_file.robot) and execute::

robot test_file.robot

The above example is single file test case, more examples can be found in a sample project_ that illustrates using Robot Framework and AppiumLibrary. Check the sample project that you can find examples of mobile web & ios & android.

Contributing

Fork the project, make a change, and send a pull request!

Project Contributors

  • Serhat Bolsu <https://github.com/serhatbolsu>_
  • William Zhang <https://github.com/jollychang>_
  • Xie Lieping <https://github.com/frankbp>_
  • Jari Nurminen <https://github.com/yahman72>_

AppiumLibrary is modeled after (and forked from) appiumandroidlibrary <https://github.com/frankbp/robotframework-appiumandroidlibrary>_, but re-implemented to use appium 1.X technologies.

.. _AppiumLibrary: https://github.com/serhatbolsu/robotframework-appiumlibrary .. _Robot Framework: https://robotframework.org .. _Keyword Documentation: http://serhatbolsu.github.io/robotframework-appiumlibrary/AppiumLibrary.html .. _PyPI: https://pypi.org/project/robotframework-appiumlibrary/ .. _Robot Framework installation instructions: https://github.com/robotframework/robotframework/blob/master/INSTALL.rst .. _Appium Driver Setup Guide: http://appium.io/docs/en/about-appium/getting-started/?lang=en .. _sample project: https://github.com/serhatbolsu/robotframework-appium-sample

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].