Skip to content

E2E testing for the repository Netbox-Zabbix-Integration using Cucumber, SerenityBDD and Selenium

License

Notifications You must be signed in to change notification settings

AdrianJPT/Netbox-Zabbix-Integration_TEST_SERENITY

Repository files navigation

Netbox-Zabbix-Integration_TEST_SERENITY

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

Structure and Organization

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

image

Pages: Conteins the logic and the @Step used in Serenity

image

POM: These are the files where we define the WebElements of the corresponding page

image

StepDefinitions: Step definitions are create for each feature

image

Features: Cucumber files using Gherkin language for each feature

image

Prerequisites

These are requisites that must be installed to run this project correctly:

  • Java
  • Maven

Start

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

Example of the Solution:

Report HTML: image

image


About

E2E testing for the repository Netbox-Zabbix-Integration using Cucumber, SerenityBDD and Selenium

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published