Open source automation framework
Project description
ExtensiveAutomation
ExtensiveAutomation | Python automation server |
Copyright | Copyright (c) 2010-2019 Denis Machard d.machard@gmail.com |
License | LGPL2.1 |
Homepage | https://www.extensiveautomation.org/ |
Docs | https://extensiveautomation.readthedocs.io/en/latest/ |
Github | https://github.com/ExtensiveAutomation |
Docker Hub | https://hub.docker.com/u/extensiveautomation |
PyPI | https://pypi.org/project/extensiveautomation-server/ |
Google Users | groups.google.com/group/extensive-automation-users |
https://twitter.com/Extensive_Auto | |
Table of contents
Introduction
ExtensiveAutomation is a generic automation framework for integration, regression and end-to-end usages. The framework provided a rich and collaborative workspace environment. The server can run on both Python 2 and Python 3, and also run on Linux and Windows.
Installation
PyPI package
-
Run the following command
pip install extensiveautomation_server
-
Type the following command on your shell to start the server
extensiveautomation --start
-
Now you can use the qt/web client or REST api to interact with the server
- tcp/8081 enable to use the REST api of the server
- tcp/8082 is used by the qt client to have a bidirectionnal link
- tcp/8083 is used by agents to have a bidirectionnal link
-
Checking if the REST api working fine with curl or postman.
curl -X POST http://127.0.0.1:8081/session/login \ -H "Content-Type: application/json" \ -d '{"login": "admin", "password": "password"}'
The swagger of the api is available in the folder
scripts/swagger
:- common_restapi.yaml
- admin_restapi.yaml
- tester_restapi.yaml
The following users are available by default:
- admin
- tester
- monitor
The default password is
password
.
docker image
-
Downloading the image
docker pull extensiveautomation/extensiveautomation-server:20.0.0
-
Start the container without persistance for tests data
docker run -d -p 8081:8081 -p 8082:8082 -p 8083:8083 --name=extensive extensiveautomation
-
Now you can use the qt/web client or REST api to interact with the server
- tcp/8081 enable to use the REST api of the server
- tcp/8082 is used by the qt client to have a bidirectionnal link
- tcp/8083 is used by agents to have a bidirectionnal link
-
Checking if the REST api working fine with curl or postman.
curl -X POST http://127.0.0.1:8081/session/login \ -H "Content-Type: application/json" \ -d '{"login": "admin", "password": "password"}'
The swagger of the api is available in the folder
scripts/swagger
:- common_restapi.yaml
- admin_restapi.yaml
- tester_restapi.yaml
The following users are available by default:
- admin
- tester
- monitor
The default password is
password
.
Source code
-
Clone this repository on your linux server
git clone https://github.com/ExtensiveAutomation/extensiveautomation-server.git
-
As precondition, install the additional python libraries with
pip
command:-
Python3 environment
pip install wrapt pycnic lxml jsonpath_ng
-
Python2 environment, the
libxslt
library must be installedpip install wrapt scandir pycnic lxml jsonpath_ng
-
-
Finally start the server. On linux the server is running as daemon.
cd src/ python extensiveautomation.py --start
REST API is running on port tcp/8081.
The following users are available by default:
- admin
- tester
- monitor
The default password is
password
. -
Checking if the server is running fine.
cd src python extensiveautomation.py --status Extensive Automation is running
-
Checking if the REST api working fine with curl command.
curl -X POST http://127.0.0.1:8081/session/login \ -H "Content-Type: application/json" \ -d '{"login": "admin", "password": "password"}'
The swagger of the api is available in the folder
scripts/swagger
:- common_restapi.yaml
- admin_restapi.yaml
- tester_restapi.yaml
Plugins
Plugins allow to interact with the system to be controlled. But by default the server is provided without plugins. So you need to install them one by one according to your needs.
Adding reverse proxy
Adding a reverse proxy the from of server enables to expose only one tcp port (8080) and to have a tls link between the client and the server. Also, the default behaviour of the QT client and toolbox is to try to connect on the tcp/8080 port (can be modifed).
If you want to install a reverse proxy, please to follow this procedure.
-
Install the example provided
scripts\reverseproxy\extensiveautomation_api.conf
in your apache instance. If you install the reverse proxy on a new server, don't forget to replace the 127.0.0.1 address by the ip of your extensive server.Listen 8080 <VirtualHost *:8080> SSLEngine on SSLCertificateFile /etc/pki/tls/certs/localhost.crt SSLCertificateKeyFile /etc/pki/tls/private/localhost.key LogLevel warn ErrorLog /var/log/extensiveautomation_api_error_ssl_rp.log CustomLog /var/log/extensiveautomation_api_access_ssl_rp.log combined Redirect 307 / /rest/session/login ProxyPass /rest/ http://127.0.0.1:8081/ ProxyPassReverse /rest/ http://127.0.0.1:8081/ ProxyPass /wss/client/ ws://127.0.0.1:8082 disablereuse=on ProxyPassReverse /wss/client/ ws://127.0.0.1:8082 disablereuse=on ProxyPass /wss/agent/ ws://127.0.0.1:8083 disablereuse=on ProxyPassReverse /wss/agent/ ws://127.0.0.1:8083 disablereuse=on </VirtualHost>
With this configuration in apache, the REST API is now running on the port tcp/8080 (tls).
-
Checking if the REST api working fine with curl command.
curl -X POST https://127.0.0.1:8080/rest/session/login --insecure \ -H "Content-Type: application/json" \ -d '{"login": "admin", "password": "password"}'
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
File details
Details for the file extensiveautomation_server-21.0.1.tar.gz
.
File metadata
- Download URL: extensiveautomation_server-21.0.1.tar.gz
- Upload date:
- Size: 390.7 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.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 212cb83bddd9bb912b57406b162cf2b6c04eec10fdc3d23536443cb58f1c41ee |
|
MD5 | 152ae8ea566566bbf12021c003d8dfde |
|
BLAKE2b-256 | eec3ef89f42e1dc8a3e9701b56969c5a0369e8132e1612a4235bb7e7f0722121 |