Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aop-on-robot-0.0.2.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

aop_on_robot-0.0.2-py3-none-any.whl (8.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page