by Mohamed Ahmed Borhan, 2019/07/28
This is a Selenium project make CRUD operations on the Computer website.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
-
download project
-
extract project
-
open eclispse or any ID
-
import mavn project
-
convert Java combiler to 1.8
-
Add valid test data from resources/data.json
-
Open TestNG.xml to run all test cases
-
run as TESTNG
-
Eclipse
-
Make sure to convert the project to TestNG project if its not converted
-
Open properties and make sure that JDK is higher than 1.5 (Open project properties=> Open Java compiler => Uncheck Use compliance from execution => Change to 1.8 => Apply and close)
1.Open testng file and run the project as testng
2.Add or remove any tests that need to run from the testng.xml file
3.Make sure that test data are valid to run the tests (AutomationProject=>resources=>data.json)
- Create Computer.
1.1 Create a valid computer.
1.2 Check for computer number increase after make add.
1.3 Check the data that was entered and check that all values are identical.
1.4 Create computer without name
1.5 Create computer with invalid introduce date
1.6 Create computer with invalid disconnect date
- Delete computer
2.1 Delete computer successfully and check for number of decreased computers
2.2 Check for message of successfully delete
- Search for computer
3.1 Check that search for available computer return value
3.2 Check that search for unavailable computer doesn't return value
3.3 Check that all values of the computer are correct
- Update Computer
4.1 Update computer sucessfully and check for the message appear correct
4.2 Check for all values of the updated computer are correct
4.3 Update computer with invalid or empty computer name
4.4 Update computer with invalid introduce date
4.5 Update computer with invalid disconnect date
Fine test cases in (AutomationProject=>resources=>CRUD TestCases.xlsx)
-
Selenium webdriver Selenium-WebDriver makes direct calls to the browser using each browser’s native support for automation.
-
Maven - Dependency Management
-
TestNg - Used for Annotations and Run your test