This is a simple project with functional and API testing.
Tools:
- Cucumber
- Selenium WebDriver
- REST Assured
- Maven
- Java
- Java Faker
Tested functionalities:
- Create new account
- Login
- Display the content of HTTP Response Body with REST Assured
See ../features for the features files with description of the tests.
Instructions
Clone the repo:
$ git clone https://github.com/patriciakruger/techTest.git
The project is preconfigured to execute Cucumber tests with TestNG. You can run the tests from the command line with:
$ mvn test
Cucumber Reports
Reports can be found:
- JSON report:
target/cucumber.json - HTML Report:
target/cucumber/index.html - ExtentReports:
output/report.html
Specify a different browser
To set a different browser change the tag above the Feature in the feature file.
@Chrome - available in Windows and Linux
@Firefox - only linux
Without tag test will run chrome in headless mode.