Giter Site home page Giter Site logo

pmm-qa's Introduction

PMM-QA

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

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 main 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)
  5. Install latest version of JDK on your system

Follow any one of these:

  1. Install Selenium Standalone server via npm globally using npm install selenium-standalone -g
  2. Run the following selenium-standalone start

OR

  1. Install Selenium Standalone server locally via npm npm install selenium-standalone --save-dev

  2. Run the following ./node_modules/.bin/selenium-standalone install && ./node_modules/.bin/selenium-standalone start

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

How to use

Run all Tests:

./node_modules/.bin/codeceptjs run --steps

Run individual Tests:

./node_modules/.bin/codeceptjs run --steps tests/verifyMysqlDashboards_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

pmm-qa's People

Contributors

beatahandzelova avatar bupychuk avatar denisok avatar dependabot[bot] avatar ivanabrecherova avatar jirictvrtka avatar kartikeya99 avatar lunaticusgreen avatar michal-kralik avatar nailya avatar nazarovvi avatar nikita-b avatar panchal-yash avatar pavelkhripkov avatar petersirotnak avatar pkadej avatar puneet0191 avatar rnovikovp avatar roelvdp avatar saikumar-vs avatar shashanksinha252 avatar vok0 avatar vyarosh avatar yurkovychv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.