Skip to content

Commit 9b09b7c

Browse files
authored
Update README.md
1 parent 85c9e78 commit 9b09b7c

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed

Diff for: README.md

+40-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,48 @@ Tech Stack:
1111

1212
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.
1313

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:
1515

16+
Java Development Kit (JDK) version 11 or later Apache Maven
1617

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
30+
31+
🌐 APIs under the scope of this project are -
32+
1. https://gorest.co.in/public/v2/users
33+
2. http://ergast.com//api/f1
34+
3. https://test.api.amadeus.com/v1/security/oauth2/token
35+
4. https://test.api.amadeus.com/v1/shopping/flight-destinations
36+
37+
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>
1756

1857

1958

0 commit comments

Comments
 (0)