Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xcgspring/AXUI
AXUI is short for "Auto eXecute UI", is an UI automation framework, target to minimize the gap between tools and testers
https://github.com/xcgspring/AXUI
Last synced: 16 days ago
JSON representation
AXUI is short for "Auto eXecute UI", is an UI automation framework, target to minimize the gap between tools and testers
- Host: GitHub
- URL: https://github.com/xcgspring/AXUI
- Owner: xcgspring
- License: apache-2.0
- Created: 2014-07-29T12:45:58.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-05-30T00:10:12.000Z (over 5 years ago)
- Last Synced: 2024-10-02T10:08:45.643Z (about 1 month ago)
- Language: Python
- Size: 2.82 MB
- Stars: 77
- Watchers: 7
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
====
AXUI
====.. image:: https://readthedocs.org/projects/axui/badge/?version=latest
:target: https://readthedocs.org/projects/axui/?badge=latest
:alt: Documentation Status.. image:: https://landscape.io/github/xcgspring/AXUI/master/landscape.svg?style=flat
:target: https://landscape.io/github/xcgspring/AXUI/master
:alt: Code Health
.. image:: https://img.shields.io/pypi/v/AXUI.svg
:target: https://pypi.python.org/pypi/AXUI/
:alt: Latest AXUI version.. image:: https://img.shields.io/pypi/dm/AXUI.svg
:target: https://pypi.python.org/pypi/AXUI/
:alt: Number of PyPI downloads
AXUI is short for "Auto eXecute UI", is an UI automation framework, target to minimize the gap between tools and testers.
AXUI provides testers a powerful, unified, easy to use interface for common met platforms, like windows desktop, web, Android, IOS...AXUI features
==============1. AXUI provide a plug-in mechanism for automation guy to extend support for different UI
2. AXUI provide built-in drivers for:- `windows native UIAutomation Client API `_ for windows desktop UI
- `selenium project `_ for web UI
- `appium project `_ for Android and IOS UI
3. AXUI provide an unified, easy to use python interface for use in test scripts
4. AXUI separate UI logic from test scripts, make test scripts more readable and easier to maintain
5. AXUI provide mechanism to handle auto met UI automation issues, like UI response timeAn overview of AXUI structure
=============================.. image:: http://axui.readthedocs.org/en/latest/_images/AXUI_structure.PNG
:target: http://axui.readthedocs.org/en/latest/_images/AXUI_structure.PNG
:alt: AXUI structurecode demonstrations
==============================This code is in ``example/selenium``, it's a simple example to demonstrate how AXUI separate UI logic from test script.
Though this example give us a impression that AXUI add extra complexities but doesn't improve code readability.
Image that an app contains a lot of UI Elements, and the search identifiers split into multiple test scripts, then AXUI can gather all UI identifiers into one appmap, and make your scripts clean to read and maintain.*Original*::
import selenium.webdriver as webdriver
browser = webdriver.Chrome(executable_path = r"chromedriver.exe")
browser.get(r"http://www.bing.com")searchEdit = browser.find_element_by_id("sb_form_q")
goButton = browser.find_element_by_id("sb_form_go")searchEdit.send_keys("AXUI")
goButton.click()*AXUI AppMap*::
*AXUI Code*::
import AXUI
config_file = "selenium.cfg"
app_map = "www.bing.com.xml"AXUI.Config(config_file)
appmap = AXUI.AppMap(app_map)appmap.browser.start(browser_name="CHROME", executable_path = r"chromedriver.exe")
appmap.browser.searchEdit.Keyboard.input("AXUI")
appmap.browser.goButton.Mouse.left_click()More details, please check `AXUI documents `_
To have quick experience about AXUI, please check `AXUI samples `_