bernhardbuhl 99b2d91083 Updates KFZ, RS, Wohnen | 3 years ago | |
---|---|---|
.. | ||
app | 3 years ago | |
docs | 3 years ago | |
examples | 3 years ago | |
htmlcov | 3 years ago | |
migrations | 3 years ago | |
tests | 3 years ago | |
.coverage | 3 years ago | |
.dockerignore | 3 years ago | |
Dockerfile | 3 years ago | |
Readme.md | 3 years ago | |
app.py | 3 years ago | |
config.py | 3 years ago | |
db_supports.json | 3 years ago | |
db_update.py | 3 years ago | |
requirements.txt | 3 years ago | |
run_tests.sh | 3 years ago | |
runservice.sh | 3 years ago | |
test_2.html | 3 years ago | |
test_login.html | 3 years ago | |
testrun.db | 3 years ago | |
testrun.json | 3 years ago | |
waitforpsql.sh | 3 years ago |
baangt UI Web-Service provides Web GUI for definition baangt tests. The main features of the service:
You may use the following environmental variables to configure the baangt UI Web-Service:
Variable | Default Value | Description |
---|---|---|
SECRET_KEY | secret!key | The secret key of the app |
DATABASE_URL | sqlite:///testrun.db | Database URL |
BAANGT_API_HOST | 127.0.0.1:8000 | The host that runs baangt Execution API |
BAANGT_DATAFILE_HOST | 127.0.0.1:5050 | The host that runs baangt Data Files |
Before starting the baangt UI Web-Service application you need to define DATABASE_URL and run Before starting the baangt Data Files application you need to:
requirements.txt
flask db upgrade
to create required by the baangt UI Web-Service data tablespython db_update.py
to populate baangt UI Web-Service database with the default supporting instancespip install -r requirements.txt
export DATABASE_URL=[your_database_url]
flask db upgrade
python db_update.py
It is easily to customize the baangt supporting entities (namely, classnames
, testcases
, browsers
, activities
, locators
). You may just edit file db_supports.json
and run the update script:
python db_update.py
To benefit subclasses that was installed in baangt Execution API service, add them to db_supports.json
and update the database. For instance, to introduce subclass myTestCaseSequence.py
from https://gogs.earthsquad.global/athos/baangt-subclassingDemo.git add it to db_supports.json
first:
{
"classnames": {
"plugin.baangt-subclassingDemo.myTestCaseSequence": "Demo subclass cloned from https://gogs.earthsquad.global/athos/baangt-subclassingDemo",
...
},
...
}
then update the database:
python db_ipdate.py
IMPORTANT!
Ensure, you install the new subclasses in baangt Execution API.
Please use a Python WSGI Server to run the baangt UI Web-Service application.
The application name is app
For example, to run the service with gunicorn use:
gunicorn -b :8000 --access-logfile access.log --error-logfile error.log app:app