This project presents automated regression tests for a technical test written in JAVA using Maven and the following dependencies:
- Selenium webdriver
- webdrivermanager
- TestNG
This project has implemented the screenplay pattern
To run this project you need to follow the next steps
- You could import the TestNG library into the project (optional)
- You must update the Maven project
- You could run the project as TestNG Suite running the testng.xml file
- You could run the project as Maven running the whole project as a Maven test.
To run this project you need to follow the next steps
- Clone this repository
- Open a terminal into the project
- run the command line below
mvn dependency:resolve
mvn dependency:resolve-plugins
mvn clean install
- Locate the ‘Help’ option on the menu bar and click it.
- Select the option ‘Install New Software’.
- Click the ‘Add’ button on the appeared installation box.
- You will see an ‘Add Repository’ dialog box, where you need to provide the Name and Location.
- Type ‘TestNG’ in the Name field and ‘http://beust.com/eclipse’ in the Location field.
- Click ‘OK’ button.
- The given URL will be populated on the “Work with” field.
- Check the box next to TestNG and click ‘Next’
- Keep clicking ‘Next’ until you reach a License Agreement dialog box.
- Accept the license agreement and click ‘Finish’.
- This will begin the installation process. Wait until it gets finished.
- In case you get a security warning pop-up, click OK. Else, skip this step.
- You will get a ‘Software Updates’ dialog box prompting you to restart Eclipse. Click ‘Yes’.
- Once your Eclipse has been restarted, you can see TestNG has been successfully installed. For this, click Window->Preferences and you can see TestNG included in the list.