Arjuna is a Python based test automation framework developed by Rahul Verma (www.rahulverma.net).
Project description
Arjuna
Arjuna is a Python based test automation framework developed by Rahul Verma (www.rahulverma.net). Rahul has implemented smaller variants of features in Arjuna across frameworks and organizations, or given advise around it. However Arjuna being a generic library has the most complete implementation of his ideas, away from project specific contexts and constraints.
Arjuna uses pytest as its recommended test engine. Arjuna also provides its markup for some common use cases on top of pytest. If you like, you can make use of Arjuna with any other test engine or custom frameworks as well.
You'd need Python 3.5+ to make use of Arjuna.
Note: On Linux, the built-in Python3 build has issues with the Python's built-in enum module which is heavily used in Arjuna. One alternative is to install ActiveState Python on linux. Advanced users can go for installing a custom Python build.
Tutorial
1. Arjuna Installation
- Download and install latest Python (3.5+) from https://python.org
- If you are insterested to learn python Following are links for tutorials and docs.
- Confirm the python version installed by running the command
python --version
. If expected version in not shown, fix this by looking into PATH variables and/or to see whether you have multiple versions of Python installed. - Install Arjuna using the following command
pip install arjuna
2. Arjuna - Getting Started
You can find the example code used on this section in arjuna_start project.
3. Arjuna's Configuration System
You can find the example code used on this section in arjuna_config project.
- Configuration
- project.conf - Project Level Configuration
- Configuration Builder - Creating Custom Configurations
- Defining and Handling User Options
- Using .conf files with Configuration Builder
- The
C
Magic Function - Environments and Dynamic Configurations
4. Data Driven Testing and Contextual Data References
You can find the example code used on this section in arjuna_data project.
- Data Driven Testing
- Driving with Single or Multiple Data Records
- Driving with Data Functions
- Driving with Data Classes
- Driving with Data Files
- Driving with Multiple Data Sources
- Contextual Data References and the Magic
R
Function - Excel Data References
5. Localization of Strings
You can find the example code used on this section in arjuna_l10 project.
6. Basic Web UI Automation
You can find the example code used on this section in arjuna_webui_basics project.
- Getting Started with WebApp
- GuiElement - Identification and Interactions
- Creating Reusable Module
- GuiMultiElement
- Dropdown and RadioGroup
7. Advanced Web UI Automation
- Finding Nested Elements
- Alternative and Dynamic Identifiers
- Executing JavaScript
- Alerts, Windows, Frames
- Configuraing Interactions with GuiInteractionConfig
- Handling Custom DropDowns
- Retrieving Source code with GuiSource
8. Gui Abstraction - GNS, App, Page, Widget and Gui Elements
The following tutorial sub-sections have multiple example projects corresponding to them. Please refer the pages for respective example projects.
- Gui Namespace (GNS) - Externalized Identifiers
- Creating App Class
- Gui and Its Loading Model in Arjuna
- App Object Model
- App-Page Object Model
- App-Page-Section Object Model
Reference
- Command Line Options
Miscellaneous
- Using Arjuna With Your Test Framework
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file arjuna-0.9.8.tar.gz
.
File metadata
- Download URL: arjuna-0.9.8.tar.gz
- Upload date:
- Size: 112.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d7b33e4f38e6764a4d23d27c11508296f5b0747060f2f78f6d23d841ed2a79c |
|
MD5 | 90a627c2b4b47cd0a968c488a0958446 |
|
BLAKE2b-256 | 5c243f80520e2334ba18be5abf40eadae1143db3c26b3ce7a6c8f7ac2e5658be |
File details
Details for the file arjuna-0.9.8-py3-none-any.whl
.
File metadata
- Download URL: arjuna-0.9.8-py3-none-any.whl
- Upload date:
- Size: 197.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef3e8dfc0e22dd70b7fc4804f83031fad28a9d7749fce3712aca7d962310996d |
|
MD5 | 9e60a925f321f0bf888245590b96e2fb |
|
BLAKE2b-256 | 1ea7c57a1e3f37faa00222152dd358a0b9ada70a335f74c5ccbd1f78d50a4d2f |