Using dynamic templates in a REST API POST Request
Hi, Currently, I have a few templates that are to be used within a REST API POST request, all of which are JSON format. The templates contain fields that need to be updated at the time of each call. Question now is, how do I load the correct template prior to assigning values to the parameters within the template before the POST command without having to create multiple API endpoint requests for each of those templates. The parameterised values are to be extracted from an Excel spreadsheet which will potentially also contain the information on which template is to be used. They essentially use the same API endpoint. I've read that you can create a datasource using directories and files within said directory, but that does not fit with my intended purpose. The templates are to be loaded only when they are needed during the testing cycle as well as there is the possibility that there might be new template files that might need to be used in the future or that existing template files might need to be updated to cater for any future changes in testing. Thus these files need to be dynamically read at runtime, especially if it was part of a CI/CD pipeline. So, in a nutshell, I need to be able to read a spreadsheet from one Excel file and use one of its columns to determine which template I need to be using. The template will contain the parameterised fields that then need to be filled from that spreadsheet using the corresponding columns. Any suggestions..??Solved1.8KViews0likes4CommentsRest API chunked response gives corrupt data stream in error logs
Hi, I have SOAP UI pro and for a specific request when i hit , the response is recieved complete in the HTTP logs,but the request as well as response is not displayed on the UI as seen in the image. The error logs show Corrupt data stream though the request hits successfully and response is also generated. The same request works fine with Postman.What needs to be enabled/disabled/set for this to be successfully generated. Further analysis of this made me go through the header Transfer-encoding:chunked because of which the response is recieved in chunks and SOAPUI pro isnt able to handle the chunked response and gives error in the logs. How can I do a workaround for this3.4KViews0likes7Comments