Home
Subodh Singh edited this page Nov 2, 2023
·
1 revision
Welcome to the api-automation-framework wiki!
- Creating Request → RequestSpecification
- URI → baseUri, basePath
- Path Param → HashMap pathParams → setPathParams()
- Query Param → HashMap queryParam → setQueryParams()
- Header → HashMap requestHeaders → setRequestHeaders()
- Body → Object requestBody → setRequestBody()
- Sending Request → get(),post(),put(),delete(),patch()
- Parsing Response
- Status Code
- Headers
- Body → JsonPath
- app_name.env_name.properties → gorest.qa.properties, gorest.stage.properties, gorest.dev.properties
Add option to parameterize appname and envname
→ Done- TODO → Create [framework properties](http://framework.properties)
- enable_log
- env dir path
- Added custom exceptions for property keys -
NoPropertyFoundException
→ Done - TODO → Add exceptions to report errors in framework
- Reports → Logging request, response, test steps and assertion details in report
- Execution using TestNG XML
- Run using maven → surefire plugin
- Integrate with Jenkins