Git Product home page Git Product logo

primefaces-integration-tests's Introduction

License Actions Status Stackoverflow

PrimeFaces Integration Tests

To provide an integration and regression test suite for PrimeFaces.

Prerequisites

This project uses selenium webdriver for web browser automation. Currently, a native installation of Firefox and/or Chrome is required. Additionally, the selenium driver corresponding to the browser(s) must also be installed. These can be downloaded from the following locations:

Build & Run

  • Build by source: mvn clean package
  • Run "integration tests" with the verify phase: mvn verify
  • Run a single test with mvn verify -Dit.test=org.primefaces.extensions.integrationtests.datepicker.DatePicker001Test

Firefox (default)

The default configuration of the project runs tests with a visible Firefox browser. This requires geckodriver in order to allow selenium to control the browser. This is a binary file that can be downloaded via the link above, and can be placed in the base directory of the project where it will be accessed by selenium for running the tests. The default location for the binary is the base directory of the project with an assumed file name of geckodriver for Linux/MacOS and geckodriver.exe for Windows, but a non-default path can be specified via a system property:

mvn verify -Dwebdriver.firefoxDriverBinary=$HOME/.selenium/drivers/firefox/geckodriver

The tests will be run by default in a visible browser UI, but can be run in headless mode by activating the headless-mode maven profile:

mvn verify -Pheadless-mode

Chrome

Google Chrome may also be used to run the tests by activating the "chrome" maven profile. This can be done on the commandline with the -P maven parameter:

mvn verify -Pchrome

Using chrome to run the tests requires the "chromedriver" binary which can be downloaded via the link above, and can be placed in the base directory of the project. Selenium will access the binary from the base directory with an assumed file name of chromedriver for Linux/MacOS and geckodriver.exe for Windows, but a non-default path can be specified via a system property:

  mvn verify -Dwebdriver.chromeDriverBinary=$HOME/.selenium/drivers/chrome/chromedriver -Pchrome

When using chrome, the headless-mode maven profile may be activated to run chrome in headless mode:

 mvn verify -Pchrome,headless-mode

primefaces-integration-tests's People

Contributors

christophs78 avatar melloware avatar phillipross avatar dependabot[bot] avatar tandraschko avatar

Watchers

 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.