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
You can find the example code in arjex project.
2. Arjuna - Getting Started
3. Arjuna's Configuration System
- Configuration
- project.conf - Project Level Configuration
- Configuration Builder - Creating Custom Configurations
- Defining and Handling User Options
- Using .conf files with Configuration Builder
- The Magic
C
Function - Environments and Dynamic Configurations
4. Data Driven Testing and Contextual Data References
- 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
6. Basic Web UI Automation
- Getting Started with WebApp
- Gui Element Locators - Using ID, Name, Tag, Class, Link Text, Partial Link Text
- Gui Element Locators - Using XPath
- Gui Element Locators - Using CSS Selectors
- Gui Element Locators - Using Arjuna's Locator Extensions
- Basic Interactions with a Gui Element
- Concise Basic Interactions with a Gui Element
7. Basics of Gui Namespace (GNS) - Externalizing Identifiers
- What is Gui Namespace (GNS)
- Externalizing ID, Name, Tag, Class, Link Text, Partial Link Text
- Externalizing XPath
- Externalizing CSS Selectors
- Externalizing Arjuna's Locator Extensions
8. Advanced Web UI Automation
- Matching Multiple Elements as GuiMultiElement
- Handling Default HTML Select
- Handling Default HTML Radio Group
- Finding Nested Elements
- Alternative and Dynamic Identifiers
- Executing JavaScript
- Alerts, Windows, Frames
- Configuraing Interactions with GuiInteractionConfig
- Handling Custom DropDowns
- Retrieving Source code with GuiSource
9. Advanced Gui Namespace Constructs
- Element Templates - Multi Element, Dropdown and Radio Group
- Creating Your Own intra-GNS identifiers
- Creating Your Own Global Identifiers for use in code as well as GNS files
10. Gui Abstraction - GNS, App, Page, Widget and Gui Elements
- Thinking Procedurally -Creating Reusable Module
- Creating App Class
- App Object Model
- App-Page Object Model
- App-Page-Section Object Model
- Gui and Its Loading Model in Arjuna
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.12.tar.gz
.
File metadata
- Download URL: arjuna-0.9.12.tar.gz
- Upload date:
- Size: 115.5 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 | ea3ef0ff42592abed5e751377a1383cf36f98bd722fa58a47071219eebbf3c64 |
|
MD5 | 3b9fdcfba2f50ad265ea06df0f3c2071 |
|
BLAKE2b-256 | 29ac665ec17fda4317a719c0d74a6c5e8ec6cdb4f048b90c8d9e55cd7ca0b269 |
File details
Details for the file arjuna-0.9.12-py3-none-any.whl
.
File metadata
- Download URL: arjuna-0.9.12-py3-none-any.whl
- Upload date:
- Size: 202.0 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 | a7d4d71e08067710abe8185e0f4154b533d7bf84ef390a91d55efc34d35bfc1d |
|
MD5 | d5d1b7c0b552b4c8f5b3ce27735757d5 |
|
BLAKE2b-256 | 6f40ee6af33de47270340cad5dc8b4aa50b51bfba871fa8d297e9cfc8e44f427 |