This project aims to test get help with paying for NHS costs online service by creating an automation test framework that uses Selenium and Cucumber with Java as the programming language.
This project uses 2 main tools, Selenium and Cucumber.
On the other hand, I am using some of the tools that support this framework.
The complete list of tools, you can see in the pom.xml
file.
- Java Development Kit
- Maven
- Clone the repository from your fork to this directory
- Open the project using any Java IDE
- Run the tests with the script below
$ mvn test
- If you want to run the specific test, use the cucumber tags like this
$ mvn test -Dcucumber.options="--tags @Acceptance"
- If you want to run the test in different browsers, just go to
configuration.properties
then change the value of browser tochrome
orfirefox
browser = firefox
browser = chrome
- Test report automatically generated on
target
folder andExtentReports
folder once the test execution is completed. - See test report from
target/cucumber-reports/advanced-reports/cucumber.json
- Can also see test report from
ExtentReports/ SparkReport_ /Reports/Spark.html
- You can see Cucumber Report at https://reports.cucumber.io/reports/, just go to
src/test/resources/cucumber.properties
then change the value to betrue
cucumber.publish.enabled=true