You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40-1
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,48 @@ Tech Stack:
11
11
12
12
This repo contains RestAssured codes, in addition to -Hamcrest Matchers helpful for writing testng assertions, Lombok is used to generate Getters and Setters automatically for requests, POJO classes are used for Serialization and De-Serialization, Utilities classes have been used for handling JSONPath, XMLPath, Excel etc, Jackson and Jayway APIs are used for Validation.
13
13
14
-
Please feel free to connect me on Linkedin - https://www.linkedin.com/in/tapashisharmaroy/
14
+
🚀 Getting Started 🚧 Prerequisites Before you can run this project, you must have the following software installed on your computer:
15
15
16
+
Java Development Kit (JDK) version 11 or later Apache Maven
16
17
18
+
🔗 Dependencies This project uses the following dependencies:
19
+
TestNG version 6.14.3
20
+
io.rest-assured version 5.4.0
21
+
jackson-databind version 2.16.2
22
+
jaywayjsonPath version 2.9.0
23
+
lombok version 1.18.30
24
+
org-apache-poi version 5.2.3
25
+
com.aventstack.extentreport version 5.1.0
26
+
io.qameta.allure version 2.12.0
27
+
28
+
🛠️ Installation Clone this repository to your local machine. git clone https://github.com/TapashiRoy/RestAssuredE2EFramework.git
29
+
Navigate to the project directory using the command line. Install the dependencies and run mvn clean install
Note that this APIs are being used for testing purposes, and I, the tester, acknowledge that I do not own or have any rights to this URLs. Testing activities are for demo purposes only.
38
+
39
+
👨🏼🔬Tests This project contains 7 sample test classes that demonstrate the E2E API functionality. All the assertions are maintained under Tests.
40
+
41
+
🧪 Test classes -
42
+
43
+
APISchemaValidationTest - contains TC for the Schema Validation of the API
44
+
CreateUserTest - Contains TCs for creating user and passing the payload via instant data generation using DataProvider AND excel data using DataProvider AND via POJO
45
+
DeleteUserTest - Contains TCs for E2E validation for user data
46
+
GetCircuitDataTest - Contains TCs for getting circuit
47
+
GetFlightBookingTest - Contains TCs for retreiving Flight Bookings
48
+
GetUserTest - contains TCs for retrieving Users.
49
+
UpdateUserTest - Contains TCs for Updating User.
50
+
51
+
📝 Test Runners
52
+
testng_sanity.xml: Includes one test case that covers the basic functionality of the web app.
53
+
testng_regression.xml: Includes set of test cases that checks for overall stability and functionality of the existing features.
54
+
55
+
🏃🏽How to run the tests 🚦 Running a test case Navigate to the project directory using command line. Run the following command but replace <test_case> with the name of the test case. mvn test -Dtest=<test_case> E.g. mvn test -Dtest=TC004_Logout 🚦 Running a test plan Navigate to the project directory using command line. Run the following command but replace <test_plan> with the file path of the test suite xml files. mvn test -DsuiteXmlFiles=<test_plan>
0 commit comments