QiyTestTool (QTT) is a python web server which allows you to access one or more Qiy Nodes.
This python module requires:
- python 3.6
- mod-wsgi-httpd. If needed install it with
pip install mod_wsgi-httpd
- QiyNodeLib, see installation instructions
- Clone this repository, say in your home directory.
- Install the dependencies by enter the following command:
cd ~/QiyTestTool
python3 -m pip install -r requirements.txt
By default, QTT checks the directory ~/QiyTestTool/data for Qiy Node Credentials, but this can be changed using the QIY_CREDENTIALS environment variable in ~/QiyTestTool/.env
The Qiy Node Credential of a consists of two files:
1. <node name>_<target environment id>_node_repository.json, for example: 'mgd_dev2_de_node_repository.json'.
2. <node name>_<target environment id>.pem, for example: 'mgd_dev2_de.json'
Please contact freek.driesenaar@digital-me.nl for more information.
Enter the following commands to start the server:
cd ~/QiyTestTool
export FLASK_APP=wsgi.py
python3 -m flask run
Now start a webbrowser and open the webpage https://127.0.0.1/5000
When using the standard urllib package, QTT will not reuse a session with Server-Sent Events. This can be (temporarily) repaired as follows:
- Applying this change: psf/requests#4248 (comment)
- Set the environment variable 'QTT_URLLIB_FIXED' to 'TRUE'