Reading excel column into property, parsing REST response for property member
In a test case, I have a data source step. It reads a column range into a property. When I run the step, the data log shows each row from the desired column range. I have a REST request after data step. I would like to make assertions to the response to check that each row member of the property from the data step appears in the response. This does not need to be directly checking items in the same index, as the order may change. I want to check only that each item from data property is in the JSON response.Solved2.4KViews0likes8CommentsDoes it make sense to apply Required to a response schema field?
Up until now, I have set Required=true only for request schema fields. For response schema fields that I know won't be populated with null, I have set Nullable=false. Now, for the sake of Microsoft's AutoRest tool and the code it generates, I am being asked to set Required=true as well as Nullable=false for response fields. Does this make sense semantically? To my mind, it doesn't. I know you can set Request=true for response fields, but does it make sense to do so?669Views0likes0CommentsHow to validate whether an array of objects in the response is sorted by a field ??
Sample Response { "result": { "list": [ { "proceduresId": 282, "name": "dark knightnew batch workflow 123", "templateId": null, "isLocked": 0 }, { "proceduresId": 281, "name": "latest_trendsnew batch workflow 123", "templateId": null, "isLocked": 0 }, { "proceduresId": 284, "name": "new batch workflow 123", "templateId": null, "isLocked": 0 }, { "proceduresId": 280, "name": "new batch workflow 123new batch workflow 123", "templateId": null, "isLocked": 0 } ], "count": 4 }, Hi, I am trying to write a script assertion to validate whether the objects in listarray are sorted by "proceduresId" field. Please help. Thanks HarshaSolved1.4KViews0likes2CommentsSoapUI version 5.5 Does Not Decrypt The Response
I have a test project that can call my webservice without issue and get back a response as it should. I can see on the server logs that the request SoapUI recieves is exactly what was sent. The trouble is that SoapUI does not decrypt the response. I have configured it with incoming wss that uses the correct Decrypt key store. Reading other threads, it was suggested that the following libraries be replaced for similar issues. I replaced them and restarted SoapUI, but to no avail. wss4j-1.6.16.jar replaced with wss4j-1.6.18.jar xmlsec-1.4.5.jar replaced with xmlsec-1.5.8.jar Has anyone had similar issues that they were able to solve?709Views0likes0CommentsReadyAPI- How to assert 2 test runs based on date in response?
Hello, As our project is evolving fearcely I'm now on a crossroad to assert that my response from the new run is updated with the latest version of the third party. Some explanations: Testrun1: Response comes from our environment in JSON format that was filled through ETL with an image from a third party. It should contain a 'PDCMetaData' (wrong notation in the screenshot) and a 'PDCData' node (with content that differse for each project). In the 'PDCMetaData' there's a DateTime stamp in 'authorityProcessingDateTime' that shows e.g. 31/12/2018 It should look something like this: TestRun2: A new version was uploaded through ETL to our environment and the DateTime in 'PDSMetaData' is now 31/12/2019. How can I assert that this date is changed and shows me that a new version is present? Could anybody give me an idea please? Thanks in advance, Kind Regards, AboveAndBeyond987Views0likes2CommentsRequest and Response URI different in Ready API and SoapUI NG Pro
Hi Guys, We are having an issue with the Ready API which is showing the Response URL different from the Request URI. This is the reason we are not able to switch to Ready API from SoapUI. We have analysed the traffic with Fiddler and our Response is originating from the URI that is mentioned in the Request Please find the screenshot for reference.2.4KViews0likes6CommentsSOAPUI response with attachment
I have a SOAP call which gets a file in the response. It is a gz file. I want to get this gz file. In the Attachments tab of the response, I do see a file abc.gz, with Content-type application/gzip, and Type XOP. I have tried setting up the Request Properties - I have Enable MTOM as true. I have also specified a dump file. The dump file is not a gzip file, but a XOP file. It has a header --uuid:273aa462-94dc-405a-9972-82904edfb02e Content-Type: application/xop+xml; charset=UTF-8; type="text/xml" Content-Transfer-Encoding: binary Content-ID: <root.message@cxf.apache.org> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:abcResponse xmlns:ns2="<url>"><return><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:1b73858f-12b5-4709-99d1-66974e55499c-22@cxf.apache.org"/></return></ns2:abcResponse></soap:Body></soap:Envelope> --uuid:273aa462-94dc-405a-9972-82904edfb02e Content-Type: application/gzip Content-Transfer-Encoding: binary Content-ID: <1b73858f-12b5-4709-99d1-66974e55499c-22@cxf.apache.org> Content-Disposition: attachment;name="abc.gz" and the rest is binary data. My question is - how do I extract just the gz file from this?3.4KViews0likes2CommentsAssertions with XPATH
Sorry if this is in wrong area, but I am new to SOAP UI os. I am currently trying to achieve a simple test case where if I call a service with no parameters, the response should not provide me any information back. Super simple. With that, I am trying to get an understanding of xpath assertions. I used xpath in selenium tests. But I do not understand what I am doing wrong on the Xpath match configuration screen. I see that when IclickDeclare, it provides me namespaces in XPath Expression box. It provides this: declare namespace soap='http://www.w3.org/2003/05/soap-envelope'; declare namespace ns1='https://ForceDevelopmentServices.ServiceCode.DCPDS.EducationData.DataContracts'; declare namespace ns2='http://schemas.microsoft.com/2003/10/Serialization/'; declare namespace ns3='http://tempuri.org/'; declare namespace ns4='https://USAF.A1.Personnel.ForceDevelopment.DAL.Services.Base'; Under Assertions, I used a online xpath tester http://www.freeformatter.com/xpath-tester.html#ad-output to get this xpath expression: //for1:SSAN/text() I would expect to place a ? in the expected results box, but when I click on Select from current I get an error message saying "Missing content to select from". I then tried to click on the 'Test' to see what happens, I get another error message saying "Missing Content" I looked over Query/Match, I did not get much from this view since it does not seem to do anything when I put in xpath query or Matching Value Any assistance would be greatly appreciated. Thanks in advance. alex <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:for="https://ForceDevelopmentServices.ServiceCode.DCPDS.EducationData.Interfaces" xmlns:for1="https://ForceDevelopmentServices.ServiceCode.DCPDS.EducationData.DataContracts"> <soap:Header/> <soap:Body> <for:GetAcquisitionsCertificationsBySSANResponse> <!--Optional:--> <for:GetAcquisitionsCertificationsBySSANResult> <!--Zero or more repetitions:--> <for1:DCPDSAcquisitionsCertification> <!--Optional:--> <for1:SSAN>?</for1:SSAN> <!--Optional:--> <for1:ACQ_DT_CAREER_LVL_ACHVD>?</for1:ACQ_DT_CAREER_LVL_ACHVD> <!--Optional:--> <for1:ACQ_CAREER_LEVEL_ACHVD_DESC>?</for1:ACQ_CAREER_LEVEL_ACHVD_DESC> <!--Optional:--> <for1:ACQ_CAREER_LVL_APPR_AUTH>?</for1:ACQ_CAREER_LVL_APPR_AUTH> <!--Optional:--> <for1:ACQ_CAREER_LVL_APPR_AUTH_DESC>?</for1:ACQ_CAREER_LVL_APPR_AUTH_DESC> <!--Optional:--> <for1:ACQ_CERT_CAREER_FIELD>?</for1:ACQ_CERT_CAREER_FIELD> <!--Optional:--> <for1:ACQ_CERT_CAREER_FIELD_DESC>?</for1:ACQ_CERT_CAREER_FIELD_DESC> </for1:DCPDSAcquisitionsCertification> </for:GetAcquisitionsCertificationsBySSANResult> </for:GetAcquisitionsCertificationsBySSANResponse> </soap:Body> </soap:Envelope>3.8KViews0likes4Commentscomparing two xml response
hi i am shifting my svc service to different platform and i would like to test both services the original and the new one with same request and compare the response. the response is not 100% identical i have element with execution time that i need to ignore. also the response contain UTF-8 Characters, any suggestions for simple solution?2.9KViews0likes6Comments