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.
Release files for aop-on-robot 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aop-on-robot-0.0.2.tar.gz | 7.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aop_on_robot-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.2 kB
Release files / aop-on-robot-0.0.2.tar.gz
| Download URL | aop-on-robot-0.0.2.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
38171f6a01e60a5ff86e7633cf8fe1ccb3cec964364cea2fc7395897f975aca4
|
|
BLAKE2b-256 checksum How to use checksums |
0941533c561467fbb0336a5adbd98397f667ecc80a8d8383ad8d8f56ef47fa4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / aop_on_robot-0.0.2-py3-none-any.whl
| Download URL | aop_on_robot-0.0.2-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
246878af2ba82b338176b85e04492a1043bb09d0f622e27263a6d2970c96dfe2
|
|
BLAKE2b-256 checksum How to use checksums |
552573acc82e3a79870f315b42a9b425cc7aa97ae81dcf2010e6d21d0106379e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|