Automated tests for Percona Monitoring and Management GUI tests are created for testing frontend of PMM. They include tests for Query Analytics and for Grafana dashboards
- Install Nodejs and atleast npm 8.x on your system
- Checkout
master
branch for pmm-qa Repo - To run tests on your local systems, delete
codecept.json
and renamelocal.codecept.json
tocodecept.json
- Make sure to update URL of the application in the
webdriver
helper in the configuration file (codecept.json) - Install latest version of JDK on your system
Follow any one of these:
- Install Selenium Standalone server via npm globally using
npm install selenium-standalone -g
- Run the following
selenium-standalone start
OR
-
Install Selenium Standalone server locally via npm
npm install selenium-standalone --save-dev
-
Run the following
./node_modules/.bin/selenium-standalone install && ./node_modules/.bin/selenium-standalone start
-
Inside the root folder for
pmm-qa
runnpm install
this will install all required packages
Run all Tests:
./node_modules/.bin/codeceptjs run --steps
Run individual Tests:
./node_modules/.bin/codeceptjs run --steps tests/verifyCompareSystemParametersDashboard_test.js
We have implemented the tests to run in parallel chunks of 3, which will basically launch 3 browsers and execute different tests,
to make any change to that, modify the configuration file codecept.json