Skip to content

Commit

Permalink
PMM-5429 Cleanup and Updating Readme with Selenoid Setup (#235)
Browse files Browse the repository at this point in the history
* PMM-5429 Cleanup, Fixing readme

* PMM-5429 Removing readme

* PMM-5429 Removing Visual tests

* PMM-5429 Fixing comments.

* PMM-5429 Minor fix
  • Loading branch information
puneet0191 authored Mar 9, 2020
1 parent c498164 commit d86a8fc
Show file tree
Hide file tree
Showing 58 changed files with 45 additions and 4,219 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,20 @@
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

## Installation (UI tests version 2.0)
1. Install Nodejs and atleast npm 8.x on your system
## Using Selenoid for running tests in Local
1. Install Node.js and atleast npm 8.x on your system
2. Selenoid and Selenoid UI use port 4444 and 8080 respectively,
make sure they are not being used, otherwise update docker-compose.yml file
3. run npm install in project root.
4. run prepare_ui_test.sh script in the root directory.
`bash -x ./prepare_ui_test.sh`
5. This should start running UI tests in 4 parallel browser sessions inside chrome containers with help of selenoid
6. Check live execution by launching http://localhost:8080 in your browser.

## If you'd like to have more control over the UI test framework parameters, please check out next sections

### Installation (UI tests version 2.0)
1. Install Node.js and atleast npm 8.x on your system
2. Checkout `master` branch for pmm-qa Repo
3. To run tests on your local systems, delete `codecept.json` and rename `local.codecept.json` to `codecept.json`
4. Make sure to update URL of the application in the `webdriver` helper in the configuration file (codecept.json)
Expand All @@ -19,7 +31,7 @@ GUI tests are created for testing frontend of PMM. They include tests for Query

8. Inside the root folder for `pmm-qa` run `npm install` this will install all required packages

## How to use
### How to use
Run all Tests:
```
./node_modules/.bin/codeceptjs run --steps
Expand Down
76 changes: 0 additions & 76 deletions codecept.json.exp

This file was deleted.

115 changes: 0 additions & 115 deletions common/utils.js

This file was deleted.

167 changes: 0 additions & 167 deletions conf_local.js

This file was deleted.

Loading

0 comments on commit d86a8fc

Please sign in to comment.