No project description provided
Project description
AOP-on-Robot-Framework
This project aims to improve the readability, reusability, and maintainability of the test script by separating assistive keywords from operative keywords. The concept is based on Claire's and Ingrid's thesis.
Installation
-
Download Python 3.6
- Install
- Path of python36 and python36\Scripts have to set as environmental variables
-
Download Chromedriver version 2.37
- Unzip folder
- Put chromedriver.exe into the path of python location
-
Install requirement libraries using pip:
pip install -r requirements.txt
-
Install development environment RED from Here
-
Import the project in RED, following the step : File->Import->Existing Projects into Workspace->Next->Select the project located place.
Example
We provide twitter_valid_user_login.robot sample test case.
You can run "robot -d ./out --listener aspect/actionListener.py twitter_valid_user_login.robot"
in command line directly.
The command above -d ./out means put all output file (e.g report, log...) in the out folder.
Or following below steps set listener option in RED
-
Window->Preferences->Robot Framework->Launching->Default Launch Configurations->Setting arguments like below
-d ./out --listener aspect/actionListener.py
-
Then you can run the sample test like below
Result
-
The generated report looks like below, the red frame means that assistive keywords (written in twitter_valid_user_login_akw) are weaved into the test script successfully.
-
The project would also create a pickle file (listener.pickle), this file is used for saving the status of objects which contain library path and aspect that avoid rereading files when the next time running test scripts.
Attention
If your aspect keywords are written in python (customized keyword), please make sure the library is being referenced by RED.
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 aop-on-robot-0.0.2.tar.gz
.
File metadata
- Download URL: aop-on-robot-0.0.2.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38171f6a01e60a5ff86e7633cf8fe1ccb3cec964364cea2fc7395897f975aca4 |
|
MD5 | 8e6089b4052cd31ada6c81cea1db6569 |
|
BLAKE2b-256 | 0941533c561467fbb0336a5adbd98397f667ecc80a8d8383ad8d8f56ef47fa4b |
File details
Details for the file aop_on_robot-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: aop_on_robot-0.0.2-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 246878af2ba82b338176b85e04492a1043bb09d0f622e27263a6d2970c96dfe2 |
|
MD5 | 934fcc93fc8d1e3f466f11d75386b1db |
|
BLAKE2b-256 | 552573acc82e3a79870f315b42a9b425cc7aa97ae81dcf2010e6d21d0106379e |