All Projects → luisxiaomai → robotframework-anywherelibrary

luisxiaomai / robotframework-anywherelibrary

Licence: MIT license
AnywhereLibrary is a cross platform(desktop browser,Android,iOS) testing library for Robot Framework that leverages the [Selenium 2(WebDriver)] libraries internally to control a web browser and [appium] as mobile test automation framework for use with native and hybrid app.

Programming Languages

python
139335 projects - #7 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to robotframework-anywherelibrary

appium-mac2-driver
Next-gen Appium macOS driver, backed by Apple XCTest
Stars: ✭ 55 (-11.29%)
Mutual labels:  webdriver, appium
Autonomx
Autonomx provides a complete testing platform for UI (Web, iOS, Android, Win) and API testing. It provides a feature rich and viable testing solution for end to end testing. It's designed to be fast, scalable, reliable and adaptable to any requirements for ever growing projects.
Stars: ✭ 14 (-77.42%)
Mutual labels:  webdriver, appium
page-modeller
⚙️ Browser DevTools extension for modelling web pages for automation.
Stars: ✭ 66 (+6.45%)
Mutual labels:  webdriver, robot-framework
sahagin-java
Sahagin generates highly readable Selenium/Appium test report from your test code.
Stars: ✭ 26 (-58.06%)
Mutual labels:  webdriver, appium
Autolink
AutoLink是一个开源Web IDE自动化测试集成解决方案
Stars: ✭ 129 (+108.06%)
Mutual labels:  webdriver, appium
Selion
Enabling Test Automation in Java
Stars: ✭ 252 (+306.45%)
Mutual labels:  webdriver, appium
easyium-python
easyium is an easy-to-use wrapper for selenium&appium and it can make you more focus on business not the element.
Stars: ✭ 13 (-79.03%)
Mutual labels:  webdriver, appium
Java.appium
Mobile test automation using Appium in Java
Stars: ✭ 59 (-4.84%)
Mutual labels:  webdriver, appium
robotframework-zoomba
Extended Robot Framework libraries to make testing GUI, REST/SOAP API, Mobile, and Windows Desktop easier.
Stars: ✭ 121 (+95.16%)
Mutual labels:  robot-framework, appium
Appium
📱 Automation for iOS, Android, and Windows Apps.
Stars: ✭ 14,469 (+23237.1%)
Mutual labels:  webdriver, appium
seletest
Seletest is a web and mobile automation testing framework
Stars: ✭ 19 (-69.35%)
Mutual labels:  webdriver, appium
spydriver
🕵️ Lightweight utility to intercept WebDriver and WebElement method calls.
Stars: ✭ 24 (-61.29%)
Mutual labels:  webdriver
basic-selenium-project
an example selenium test project
Stars: ✭ 55 (-11.29%)
Mutual labels:  webdriver
robotframework-vim
Some vim scripts for use with the Robot framework.
Stars: ✭ 89 (+43.55%)
Mutual labels:  robot-framework
quasar-testing
Testing Harness App Extensions for the Quasar Framework 1.0+
Stars: ✭ 142 (+129.03%)
Mutual labels:  webdriver
karate
Test Automation Made Simple
Stars: ✭ 6,384 (+10196.77%)
Mutual labels:  webdriver
carina
Carina automation framework: Web, Mobile, API, DB etc testing...
Stars: ✭ 652 (+951.61%)
Mutual labels:  appium
python-appium-framework
Complete Python Appium framework in 360 degree
Stars: ✭ 43 (-30.65%)
Mutual labels:  appium
robotframework-pageobjectlibrary
Lightweight keyword library for implementing the PageObject pattern in Robot Framework
Stars: ✭ 76 (+22.58%)
Mutual labels:  robot-framework
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 (-56.45%)
Mutual labels:  appium

AnywhereLibrary for robotframework

PyPI version Build status codecov Join the chat at https://gitter.im/anywherelibrary/Lobby GitHub license

Introduction

AnywhereLibrary is a cross platform (desktop browser, Android, iOS) testing library for Robot Framework that leverages the Selenium 2 (WebDriver) libraries internally to control a web browser and Appium as mobile test automation framework for use with native and hybrid apps.

This library is especially suitable for handling SPA (single-page apps) with responsive design patterns. With this you only need to generate a set of scripts to cover all platforms (desktop browser, Android, iOS).

On the other hand, not any UI test automation framework is made for your real business. If this library isn't suitable for your business, it's highly recommended that you fork this repository as a prototype for UI test automation. Customize your own AnywhereLibrary in accordance to your actual business requirements.

Installation

python3 setup.py install

Directory Layout

doc/

Keyword documentation.

sample-code/

A sample test case which can run in desktop browser, sample Android and iOS webview apps with different platform parameter inputs.

src/base

Python source code.

src/cfg

Configuration file which stores all parameters for initializing the driver.

Usage

To write tests with Robot Framework and AnywhereLibrary, AnywhereLibrary must be imported into your RF test suite. See Robot Framework User Guide for more information.

As it uses Appium for its mobile solution, please make sure your Appium server is up and running. For how to use Appium, please refer to the Appium Documentation.

Before Running the Test Case

You must use the Initial Driver keyword with platform value as the parameter input; after the test case you must use Tear Down Driver keyword to tear down the related driver. Also you need to do some modifications in configuration.xml file in /AnywhereLibrary/cfg.

Locating elements

All keywords in AnywhereLibrary that need to find an element on the page take an argument, locator. AnywhereLibrary supports a subset of the WebDriver locator strategies. Currently available locator strategies are:

find by "class" (i.e., ui component type)
find by "xpath" (i.e., an abstract representation of a path to an element, with certain constraints)

Supported strategies are:

Strategy Example Description
xpath Click //div[@id='my_element']
xpath Click xpath=//div[@id='my_element']
class Click class=android.widget.Button
... Coming soon... Coming soon...

Running Sample Cases

pybot --variable platform:chrome webviewTest.txt
pybot --variable platform:firefox webviewTest.txt
pybot --variable platform:iphone webviewTest.txt

Documentation

Keywords at a Glance:

  • Initial Driver
  • Tear Down Driver
  • Click
  • Type
  • Element Find
  • Get Text
  • Get Value
  • Verify Text
  • Verify Value
  • Is Element Present
  • Page Should Contain Element
  • Page Should Not Contains Element
  • Wait For Element Present
  • Wait No Such Element Present
  • Switch To Native
  • Switch To Webview
  • Capture Page Screenshot
  • Execute Javascript
  • mobile gestures
    • Coming Soon...

More details about keyword documentation could be found at Keyword Documentation

Plan

  • Add more keywords.

FAQ

TODO

License

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].