This is basic level test automation framework created using Cucumber - Java
Framework include below dependency in POM.xml
1)maven-surefire-plugin
2)maven-cucumber-reporting
3)cluecumber-report-plugin
4)testng
5)cucumber-java
6)cucumber-testng
7)rest-assured
8)json
9)groovy-all
10)log4j-api
11)log4j-core
In testng.xml provided cucumberOptions.TestRunner
1)Consist of TestRunner Class where Feature,glue path is provided.
2)provided path for generating cucumber-report.json in plugin parameter.
1)CommonRest.java consist of all common methods which are necessary for reading JSON,creating endpoint,sending API Request,verifying status code and verifying all fields generated in Response
2)Config.prperties consist of all different endpoint for all services.
3)log4j2.properties have details in which format logs should be generated
Common_Step_definations includes all step definations that we have defined in our feature file
1)All Feature Files are added in this package
2)In Feature File passing path of parameter and which payload to read.
3)Endpoint name as per Config.prperties.
4)which Method(POST,PUT,GET,DELETE) to peroform.
5)Status Code after processing endpoint
6)generated fields in response can be passed in fields section
7)Expected values are passed in values section.
Different Payload File and metntioned all required test data
propertieslogs.log will have all logs generated while execution of test cases
Cucumber report will be generated in cucumber-html-reports folder
Cluecumber report wil be generated in cluecumber-report folder
Integrated with jenkins so that we can run our all Test Cases from jenkins