This project uses Java, Selenium, TestNG, and Maven to implement a set of tests, organized using the Page Object Model (POM).
The project is structured as follows:
-
src/test/java/pages
: Contains the page objects and methods for each page, such as the QE-index page in this case. -
src/test/java/tests
: Contains the test classes.
Each test class implements one test of the challenge.
- Java Software Development Kit (SDK)
- You can download and install it from: https://www.oracle.com/java/technologies/downloads/
- Check if it was installed correctly opening a command-line interface and typing:
$ java --version
- An IDE such as Eclipse
- You can download and install it from: https://www.eclipse.org/downloads/
- Choose the "Eclipse IDE for Java Developers" option.
-
TestNG for Eclipse
To install it:
- Open Eclipse.
- Go to Help -> Eclipse Marketplace on the menu bar.
- Search for "TestNG".
- Select "TestNG for Eclipse".
- Click "Install", confirm, and wait for installation to complete.
- Restart Eclipse.
- Clone the project from GitHub:
$ git clone https://github.com/st-raga/technical-assessment.git
-
Import the project as an existing Maven Project to Eclipse
-
Run testng.xml
- Open the testng.xml file in Eclipse
- Right-click on the file and select Run As > TestNG Suite
- This will execute all the tests defined in the testng.xml file using Chrome
- Java Software Development Kit (SDK)
- You can download and install it from: https://www.oracle.com/java/technologies/downloads/
- Check if it was installed correctly opening a command-line interface and typing:
$ java --version
- Maven
- You can download and install it from: https://maven.apache.org/download.cgi
- Check if it was installed correctly by opening a command-line interface and typing:
$ mvn --version
- Clone the project from GitHub:
$ git clone https://github.com/st-raga/technical-assessment.git
- Navigate to the project directory
$ cd technical-assessment
- Compile the project
$ mvn clean compile
- Run the following command to execute the testng.xml file:
$ mvn test -DsuiteXmlFile=testng.xml
- This will execute all the tests defined in the testng.xml file using Chrome