-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/add dynamic path param support #1808
Feature/add dynamic path param support #1808
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1808 +/- ##
============================================
- Coverage 53.24% 52.48% -0.76%
- Complexity 1355 1357 +2
============================================
Files 113 115 +2
Lines 10176 10359 +183
Branches 991 1000 +9
============================================
+ Hits 5418 5437 +19
- Misses 4117 4281 +164
Partials 641 641 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great implementation!, please just check some small comments in the test class.
.setTargetStatusCode(200) // Expected status code | ||
.perform(); // Execute the request | ||
|
||
SHAFT.Report.log(">>>>>> Response Body:" + api.getResponseBody()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add assertion to validate the response.
.setTargetStatusCode(200) | ||
.perform(); | ||
|
||
SHAFT.Report.log(">>>>>> Response Body:" + api.getResponseBody()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add assertion to validate the response.
.setTargetStatusCode(200) | ||
.perform(); | ||
|
||
SHAFT.Report.log("Response Body: " + api.getResponseBody()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add assertion to validate the response.
.setTargetStatusCode(200) | ||
.perform(); | ||
|
||
api.assertThatResponse().body().contains("\"username\":\"string\""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
api.assertThatResponse().body().contains("\"username\":\"string\""); | |
api.assertThatResponse().extractedJsonValue("username").isEqualTo("string"); |
.setTargetStatusCode(200) | ||
.perform(); | ||
|
||
api.assertThatResponse().body().contains("\"username\":\"string\""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
api.assertThatResponse().body().contains("\"username\":\"string\""); | |
api.assertThatResponse().extractedJsonValue("username").isEqualTo("string"); |
.setTargetStatusCode(200) | ||
.perform(); | ||
|
||
api.assertThatResponse().body().contains("\"username\":\"string\""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
api.assertThatResponse().body().contains("\"username\":\"string\""); | |
api.assertThatResponse().extractedJsonValue("username").isEqualTo("string"); |
This update enhances the RequestBuilder class by introducing dynamic path parameter substitution. The solution includes: