SHAFT is a unified test automation engine for web, mobile, API, CLI, database, and desktop e2e testing. Powered by best-in-class frameworks, SHAFT provides a wizard-like syntax to drive your automation efficiently, maximize your ROI, and minimize your learning curve with no limitations! Stop reinventing the wheel! Upgrade now!
Description:
This pull request fixes a bug where query parameters were not being added to requests that also have a body. It improves the performRequest method to ensure query parameters are correctly appended to the URL, along with enhancing error handling and modularizing the code.
Problem:
When making HTTP requests with both query parameters and a request body, the query parameters were ignored, resulting in incorrect request URLs.
Solution:
Dynamic URL Construction: Added functionality to append query parameters to the request URL, ensuring they are not lost when a body is present.
Comprehensive Error Management: Improved exception handling to manage errors during the request process effectively.
Modular Helper Methods: Created helper methods to append query parameters, check supported request types, and handle exceptions.
Description: This pull request fixes a bug where query parameters were not being added to requests that also have a body. It improves the performRequest method to ensure query parameters are correctly appended to the URL, along with enhancing error handling and modularizing the code.
Files Modified: src/main/java/com/shaft/api/RequestBuilder.java
Solution: Dynamic URL Construction: Added functionality to append query parameters to the request URL, ensuring they are not lost when a body is present. Comprehensive Error Management: Improved exception handling to manage errors during the request process effectively. Modular Helper Methods: Created helper methods to append query parameters, check supported request types, and handle exceptions.
Linked Issue: Fixes https://github.com/ShaftHQ/SHAFT_ENGINE/issues/1615