Skip to content

Running the tests

james-goddard-magentys edited this page Jun 29, 2017 · 7 revisions

The tests can be built with the following maven command

mvn clean install -DbrowserProfile=chrome -Denv=myEnv -Dcucumber.options="--tags @myTag"

Where:
-DbrowserProfile is the browser profile you want to run the tests with
-Denv is the name of the environment profile defined in env.conf
-Dcucumber.options allows you to specify tags you want to be included in the run using "--tags @myTag"

Other Parameters

  • -DhubUrl : Specifies the remote grid url and will instantiate a remote webdriver based on the browserProfile capabilties
  • -DwebDriverConfig : When external webdriver configuration is injected to the project this should give the path to this file
  • -Pparallel : Runs the tests in multiple sessions in parallel