This repository contains automated tests using Selenium WebDriver for two distinct projects:
- Newsletter sign-up form with success message.
- Time tracking dashboard.
- Configuration
- Running Tests
- Project Structure
- Test Details
- Useful Links
- Checking Google Chrome Version
- Author
-
Clone the repository:
git clone <repository-url> cd <repository-name>
-
Install dependencies:
- Download and install Java Development Kit (JDK)
- Download and install Maven if not already installed.
-
Configure WebDriver:
- Download ChromeDriver that matches your Chrome version.
- Extract the archive and place
chromedriver.exe
in a directory of your choice. - Update the path to
chromedriver.exe
in the test scripts (NewsletterSignUpTest.java
andTimeTrackingDashboardTest.java
).
-
Navigate to the project directory:
cd <repository-name>
-
Execute the tests
<nom-du-repository>/
│
├── src/
│ └── main/
│ └── java/
│ └── sn/
│ └── ikitama/
│ ├── NewsletterSignUpTest.java
│ └── TimeTrackingDashboardTest.java
│
├── pom.xml
└── README.md
Tests for the newsletter sign-up form verify the following:
- Submission of invalid email : Verifies the appropriate error message is displayed.
- Submission of valid email : Verifies the success message is displayed and the correct email is shown in the success message.
- Dismissal of success message : Verifies the sign-up form is displayed again after dismissing the success message.
Tests for the time tracking dashboard verify the following:
- Daily view : Verifies the data displayed for the daily view is correct.
- Weekly view : Verifies the data displayed for the weekly view is correct.
- Monthly view : Verifies the data displayed for the monthly view is correct.
To ensure compatibility between ChromeDriver
and Google Chrome
, follow these steps to check your Chrome version:
-
Open Google Chrome.
-
Click the three vertical dots in the top right to open the menu.
-
Select Help > About Google Chrome.
-
The Chrome version will be displayed. Ensure you download the corresponding version of ChromeDriver.
You can also type
chrome://version
into the Chrome address bar to directly view version information.
- GitHub - @ikitamalarose
- Twitter - @ikitamalarose
- Email - [email protected]