This library propose is to test the database, api and web of zero-code. This project is based on the selenium-nodejs-starter library.
Eventhos is an open source platform that applies event-driven architecture principles to allow the user to orchestrate their system integrations using a simple user interface instead of complicated publisher and subscriber source codes in applications. You only need webhooks and rest APIs to integrate all your systems.
Full details in the wiki
- All the eventhos artifacts, smtp and mocks. Follow this to start all the artifacts
| Variable | file | description | default value |
|---|---|---|---|
| BROWSER | browser to be used by selenium | chrome | |
| EVENTHOS_WEB_BASE_URL | testOptions.json | The url of the zeo-code web | http://localhost:2112 |
| EVENTHOS_API_BASE_URL | testOptions.json | The url of the zeo-code api | http://localhost:2111 |
| ADMIN_PASSWORD | testOptions.json | The admin user password, by default should be set as an environment variable | |
| DISPLAY | testOptions.json | required for screen process on linux | 0 |
| arguments | browserOptions.json | Browser options | "--log-level=1", "--no-sandbox", "--headless", "--disable-gpu" |
export ADMIN_PASSWORD=$(docker exec -it eventhos-api cat /tmp/credentials.txt | sed -n 4p | xargs)
export BROWSER=chrome
export SERVER_IP=$(hostname -I | awk '{print $1}')
export EVENTHOS_WEB_BASE_URL=http://$SERVER_IP:2110
export EVENTHOS_API_BASE_URL=http://localhost:2109
export MOCK_SERVER_URL=http://$SERVER_IP:9000
export SKIP_SUCCESS_TEST_IN_REPORT=true
npm uninstall chromedriver
npm install chromedriver --detect_chromedriver_version
npm install
npm run testCheck the result here
To run it with a browser in background, add "--headless" in browserOptions.json
When we have failed tests, sometimes is required to run only that files instead all the tests. To do that export this variable before the run:
export FILTERED_FILES="changeActionSecurityType.test.js createUser.test.js"
- Check profile
- User locked
- Special chars in client secret
- search users
- date on log
- apply mask on req, resp on log
- if deleteRole.test.js deleteRole.test2.js are in the same faile, they fails
- silent axios error log
Luis Huertas |
JRichardsz |
Diego Ramos |
