The goal of this project was to put into practice my knowledge of Selenium using Java.
Do you want to create a framework based on this project? Check this branch!
The Automation Practice store was automated using Java + Selenium.
- Java v18.0.2.
- Selenium v3.141.59.
- TestNG v6.8.
- log4j v2.14.1.
- JavaFaker v1.0.2.
- ExtentReports v5.0.9.
- OpenCSV v4.6.
- WebDriverManager v5.0.3.
- Lombok v1.18.24.
.
├── .idea
├── src/
│ ├── main/
│ │ └── java/
│ │ └── PageObjectModel/
│ │ ├── Components/
│ │ │ ├── Authentication
│ │ │ ├── CreateAccount
│ │ │ ├── Home
│ │ │ ├── MyAccount
│ │ │ ├── ShoppingCartAddress
│ │ │ ├── ShoppingCartOrderInformation
│ │ │ ├── ShoppingCartOrderSummaryBankwire
│ │ │ ├── ShoppingCartPaymentMethod
│ │ │ ├── ShoppingCartShipping
│ │ │ └── ShoppingCartSummary
│ │ ├── Models
│ │ ├── Pages
│ │ └── Utilities
│ └── test/
│ ├── java/
│ │ ├── AutomationResources
│ │ ├── Data
│ │ ├── Models
│ │ ├── Tests
│ │ └── Utilities/
│ │ ├── ExtentReports
│ │ └── Listeners
│ └── resources
└── target
I developed the code using a Mac, but it should work on a PC.
The following steps can be executed using the terminal and UI of IntelliJ.
- Clone the repo.-
> https://github.com/ArCiGo/Java-Automation-Framework.git
> git checkout SampleProject_1
- Once you cloned the repo, look for the pom.xml file, at root, right click over the file, select maven option and then click on Download Sources or Download Sources and Documentation.
- Look for the testng.xml file at src/ => test/ => resources/, right click over the file and click on Run.
When you execute the tests, new folders are generated at the workspace root (extent-reports). Inside of this folder, you are going to see the index.html report (you can open them using your favorite browser). Also, new log files are generated and you can open them using any text editor.