Run the test using maven command

Now you are almost all set!

One last thing, you need to update the feature file regarding the php version check in the background process. The demo website is using the version 7.0.16. So you need to update the version in DemoWebShopping.feature and DemoWebTermConditions.feature.

    Given the web server is running under PHP "7.0.16"
    And the user is authenticated with the username "test" and the password "test"

And now run the maven command as follow :

mvn clean verify -Dtest=CukesRunner > log.txt

All the test output will be in a file log.txt located at the root of the project.

For more details regarding the command line, please refer to file.