The goal of this project is to run a Test to this website. After successfully running the test case, I will fetch some data from the previous test and add those as a record in the database. After this, I did some certain operatino such as add, update, delete and make validation of those operations.
-
Clone the repository by this command-
git clone https://github.com/MdTanvirHossainTusher/DB.git
-
Build the
pom.xml
file. If any dependencies requires updated version, then go to this website. Search for those particular dependencies and update the dependencies version no. -
Add you Gmail credentials on
ClientCredentials.java
file. -
Add database name and authenticators on
ConfigData.json
which is located here -src/test/resources/testdata/ConfigData.json
. -
Run the
WebApiTest.java
testcase first. -
Check whether a record with the information of
WebApiTest.java
testcase added or not. If testcase runs succesfully, a record should be added. -
After successfully running
WebApiTest.java
, now runDBTest.java
file. -
DBTest.java
will add 10 records from the existing database records which contains repeating digits in it's id. Then update those record's information with the current testcase's data. At the end, it will delete the new added data. -
Check that only record from point-6 remains as a new entry in the database.