This project tests HTML page with Chrome WebDriver
Java, Junit, Selenium,Gradle
HTML, bootstrap, PHPmyAdmin
- Install XAMPP from https://www.apachefriends.org/download.html
- Start Apache and MySQL modules
- Go to http://localhost/phpmyadmin/
- Create new table under "test" structure by following SQL command:
CREATE TABLE employees ( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, name VARCHAR(100) NOT NULL, email VARCHAR(255) NOT NULL, phone INT(10) NOT NULL ); - Put "EmployeesDetails" folder under C:\xampp\htdocs
- Go to http://localhost/EmployeesDetails/index.php
This project will help to test web using automation to reduce the manual time
Test name | Description | Location |
---|---|---|
clickNewBtn_entersValidData_employeeCreated | Create new employee with valid details, Make sure employee is created | CreateEmployeeTest.java |
clickDeleteBtn_employeeDeleted | Delete existing employee, Make sure employee is deleted | DeleteEmployeeTest.java |
clickUpdateBtn_enterValidData_employeeDataUpdated | Update existing employee with valid details, Make sure employee is updated | UpdateEmployeeTest.java |
clickViewBtn_employeeDataDisplayed | View existing employee, Make sure employee data is displayed as expected | ViewEmployeeDataTest.java |
Test Case | Pre-Condition | Excepted Result |
---|---|---|
Create new employee with valid details | New employee is created | |
Delete existing employee | Need to create new employee | Employee is deleted |
Update existing employee with valid details | Need to create new employee | Employee is updated |
View existing employee | Need to create new employee | Employee data is displayed as expected |