That porpuse of this project is automate the End to End testing(E2E) using:
- Serenity BDD: Very friendly reports and allows to take screenshoot for each step
- Selenium: For implementing all the logic to navegate the pages
- Cucumber BDD: For execute differents scenarios and easy to read them
This project respect the best practices in Selenium using Page Object Model(POM) creating a JavaClass for each page tested for a easier maintenance and scale of the test
Manage: All the utils used along the entire project
Pages: Conteins the logic and the @Step used in Serenity
POM: These are the files where we define the WebElements of the corresponding page
StepDefinitions: Step definitions are create for each feature
Features: Cucumber files using Gherkin language for each feature
These are requisites that must be installed to run this project correctly:
- Java
- Maven
To use this project follow the next steps:
- Clone the repository to your local
git clone https://github.com/AdrianJPT/Netbox-Zabbix-Integration_TEST_SERENITY.git
cd Netbox-Zabbix-Integration_TEST_SERENITY
- Change the parameters in src/test/java/Api_Netbox_Zabbix_Integration/Credentials.java
vim src/test/java/Api_Netbox_Zabbix_Integration/Credentials.java
- Credentials.java:
package Api_Netbox_Zabbix_Integration.Manage;
public class Credentials {
// MARK - Netbox Credentials
public String NetboxURL = "http://192.168.40.50:3000/";
public String NetboxUsername = "admin";
public String NetboxPassword = "admin";
// MARK - Zabbix Credentials
public String ZabbixURL = "http://192.168.40.50/";
public String ZabbixUsername = "Admin";
public String ZabbixPassword = "zabbix";
}
- Run the TESTS!
mvn clean verify