ReadyAPI Error: Error getting response; java.net.SocketException: Connection reset by peer
Hi, I am sending a POST request with an attachment of size like 14 mb and getting different errors randomly (cycles between these two) like: - Error getting response; java.net.SocketException: Connection reset by peer. - Error getting response; java.net.SocketException: An established connection was aborted by the software in your host machine. I have also attached a screenshot, please take a look. I cannot share the request information in this forum, but I can give some details: - I am using ReadyAPI 3.43.1. Sending an attachment with the request of size around 13-14 mb. - I'm on the my company's connection. - I have gone through many questions/threads on the community and out of community but didn't find any solution so far. - I have already tried adding -Dsoapui.https.protocols=SSLv3,TLSv1.2 and/or -Djava.net.preferIPv4Stack=true to the ReadyAPI.vmoptions file and it doesn't work. - I have already tried adding set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.https.protocols=SSLv3,TLSv1.2 to the ready-api.bat file and it doesn't work. - I have already tried using http instead of https for the endpoint URL and same behavior. FYI, same works with POSTMAN. What could be the reason for this error: Company's connection/firewall/antivirus is blocking the connection? ReadyAPI issue? Or something else? Can someone please advice me on this issue? Please let me know if you need additional information. Thanks in advance! -Akshay3.1KViews0likes8CommentsRefer to JSON payload in multipart/form-data
I need to test an endpoint accepting multipart/form-data. The endpoint expects a required part with content id "messageToSend" and optional parts with content id's "document[1-x]". The documents are to be file attachments and I want to send the "messageToSend" as a JSON payload. The attachments are working without issue, but using the query parameter value to input my JSON is not great UX. Ideally I would be able to refer to the body below from the query param so the content id is set correctly. You can imagine if the JSON content were much larger it would be painful to use the query parameter as the text box. As you can see in the screenshots above, the JSON payload has the correct Content-Type but no Content-Disposition. Functionally the two parts need to be merged. I either need to be able to: Refer to the JSON from the query parameter where placeholder "REFER_TO_JSON_BODY" (similar to file:fileName). Set the "content id" in the large text box with the rest of the JSON. Kind regards17Views0likes1CommentHow do I add a REST query string without the 'name='
Hi, I'm trying to build a REST query, but my issue is that the service I'm calling only requires a value following the '?' and I'm struggling on how to define this. If I blank out the name in the settings, it still generates the '=', so my query string ends up as'?=value', which the service rejects. So, how do I add a query without the 'name=' or '='. Thanks21Views0likes1CommentRest step assertions written in SoapUI 5.5.0 are failing in SoapUI 5.8.0
I am using SoapUI 5.5.0 and we are in the process of migrating our scripts to SoapUI 5.8.0.But after migrating to SoapUI 5.8.0 many rest step assertions are failing because json path libraries in SoapUI 5.8.0 are enforcing stricter compliance/parsing when validating assertions. Some of my assertions with indices are failing only in SoapUI 5.8.0 like for example jsonpath count assertion $..id[0] is failing in 5.8.0, but working fine with SoapUI 5.5.0. I would like to know 1.Is there any SoapUI preference or a property or flag in settings.xml with which I can revert to a more lenient compliance check with schema like in SoapUI 5.5.0? 2.Is there any patch or plugin by using which my rest step assertions written in 5.5.0 will pass? 3.Or any other solution or groovy script If I have this solution, i can save time in modifying all assertions which will take days42Views0likes0CommentsImprove searching in the navigation panel
Search in the navigation panel could also support searching for test steps based on API endpoints. This means that if an endpoint is entered into the search field in ReadyAPI, it will find all test steps where the given endpoint is used.85Views1like4CommentsImprove searching in the navigation panel
Search in the navigation panel could also support searching for test steps based on API endpoints. This means that if an endpoint is entered into the search field in ReadyAPI, it will find all test steps where the given endpoint is used.36Views0likes1CommentRest request attachments multipart form data for json file with parameterized json data
So I have been trying to do a scenario where i have two attachments for a rest request, one json file which i need to parameterize couple of fields from previous request. The problem with this is once you have cached the attachment you cannot modify it based on the previous test steps, So i have followed the following youtube link https://www.youtube.com/watch?v=iL-zehJmtWw Used query parameter to use a locally store file of json to request but we are getting the error from response that application/octet-stream content type is not accepted ------=_Part_01_136051460.1696260652738 Content-Disposition: form-data; name="testFile" testFile:/Path/to/file/testFile.json I have used parameter like this testFile:${projectDir}/testFile.json What should I do in this case1.4KViews0likes7CommentsHow to set different Content-Types in multipart/form-data POST Request?
I have a REST API, that I can curl correctly, but I can not get it done in ReadyApi. I have to upload a picture and a json string, which has the content-type "type=application/json": curl -X 'POST' 'http:/localhost:12345/rest/add' -H 'Content-Type: multipart/form-data' -F 'picture=@/home/my.jpg' -F 'criteria={"personId":"string"};type=application/json' I ticked "Post QueryString" and selected multipart/form-data. When I look up in the RAW tab, I see, that for criteria no content-type is set. The error message in ReadyApi says: Content type 'application/octet-stream' not supported It is necessary for me to set the content-type of my criteria JSON Object to "application/json". Otherwise I will get this error. I am on ReadyApi 3.45. Does anyone have a clue, how to solve the problem?Solved237Views0likes1CommentHow to change the API of a REST test step
Hi guys, If you test REST APIs in SoapUI, you may encounter an issue where you cannot change the API attached to the REST test step. I am not aware of any standard way to do it, so I prepared a simple Groovy script to change the test step's API programmatically: testRunner.testCase.getTestStepList().each(){ step = it service = step.getService() log.info("TestStep: ${step.getName()}") config = step.getRequestStepConfig() log.info "Before: ${step.getService()}" config.setService("BankGround_v1.12") log.info "After: ${step.getService()}" } I thought this may help those of you who work with REST APIs, which get changed over time (new versions). For a longer story, you can visit the following article: https://www.linkedin.com/pulse/soapui-what-rest-api-changes-karel-husa-7vb2e48Views2likes0CommentsProperty transfer version 5.7.2 not removing double quotes.
I am doing property transfer by using the setup script through sql. My request has something which should be in []. I have created the propert transfer like below For the Target i have given like below. $.dispositionIds In the setup script I am giving like below. String dispositionIds = rows.DISPOSTN_ID //Set Property value testRunner.testCase.setPropertyValue( "DISPOSTN_ID", dispositionIds ) After runng the script I am getting the value in double quotes "" like shown below. "dispositionIds":"[1282678]" ---But becasue of the double quotes, My request is thrownig an error saying invalid json. My Colleagesue have a differnt verison soap 5.6.0 and it is working fine for them.Solved54Views1like1Comment