Make it possible to create different URI's in 1 environment
For each environment (TEST and UAT) we have different URI's for particular API's. This is not convenient as is, to create so much environments for each API. e.g.: environment TEST has an api that is used for - customs https://hbatna80.ad-my.domain/Headbird.Ferry.App.Customs.1.0.1.00.13 webbook https://hbatna80.ad-my.domain/Headbird.Ferry.App.Webbook.2.0.01.06 WebTop https://hbatna80.ad-my.domain/Headbird.Ferry.App.Webtop.1.1.01.15 etc... this means that for each webservice that contains 15 API's it can be that I need different endpoints. At this point (ReadyAPI v3.66.0) you need to declare them all seperately and select them all seperately. That makes a very long Environment list to select from....and this give more chance on mistakes and info losses. Make it possible that each Environment can contain different URI's to select from in the testcase itself please.34Views0likes1CommentRest 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 daysSolved113Views0likes1CommentRefer 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 regards68Views0likes1CommentHow 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 '='. Thanks57Views0likes1CommentImprove 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.167Views2likes4CommentsImprove 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.73Views0likes1CommentRest 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.7KViews0likes7CommentsHow 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?Solved325Views0likes1CommentHow 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-7vb2e67Views2likes0CommentsProperty 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.Solved102Views1like1Comment