REST request with parameters - how to avoid default Content-Transfert-Encoding:quoted-printable ?
Hi, I am facing to an issue (with soapUI version 5.6.0). My POST REST request have two parameters. One of them is a zip file converted in Base64. In Request Raw tab You can see a parameter "Content-Transfert-Encoding" with "quoted-printable". The parameter content contains multiple lines may be due to the Content-Transfert-Encoding parameter value. Expected one line with all the parameter content How to avoid this default value ? In a previous topics one member says that soapUI uses the mail api. And explains that if the primary type of this datasource is "text", and : - If all the bytes in its input stream are US-ASCII, then the encoding is "7bit". - If more than half of the bytes are non-US-ASCII, then the encoding is "base64". - If less than half of the bytes are non-US-ASCII, then the encoding is "quoted-printable". But how to make sure that more than half of the bytes are non-US-ASCII ?498Views0likes4CommentsSecurity configuration for SOAP project using two way SSL with client certificate for auth
Hello Community, I am struggling with configuration of my SOAP project to use client certificate in two way SSL encryption tunnel. I tryied both these guides: -https://www.soapui.org/docs/soapui-projects/ws-security/ -https://www.soapui.org/docs/security-testing/ws-security-settings/ But unfortunatelly I cannot connect to the server. When I use CURL with cert and key it is working like a charm: curl --request GET --url https://XXXX/service1\?WSDL --cert cert.pem--key key.pem OR curl --request POST --url https://XXXX/service1 --cert cert.pem--key key.pem --header 'Content-Type: text/xml' --verbose -d @request.xml However when I create JKS trustore with both of them and I add it to SoapUI, according those guides, I am getting unauthorized response all the time. I tried it on Windows10 and Ubuntu22.04 with SoapUI 5.7.1 Could you please give me nudge or hint how should I configure the SoapUI project to authenticate using 2 way SSL? Thank you.469Views1like5CommentsHow do I set the status of a Script Assertion?
After looking at this documentation, GroovyScriptAssertion (SoapUI 3.0.0 API) (smartbear.com), I've tried the following def currentStep = context.getCurrentStep(); def assertion = currentStep.getAssertionByName('Script Assertion'); assertion.setStatus(com.eviware.soapui.model.testsuite.Assertable.AssertionStatus.FAILED); but I get the error setStatus() exception: groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.teststeps.assertions.basic.GroovyScriptAssertion.setStatus() is applicable for argument types: (com.eviware.soapui.model.testsuite.Assertable$AssertionStatus) values: [FAILED] If I output assertion.getClass() It tells me that assertion's class is com.eviware.soapui.impl.wsdl.teststeps.assertions.basic.GroovyScriptAssertion@71d72a30 What am I doing wrong? I'm using 5.7.1 Edit: If it's not possible to set the status of a test assertion or test step, is it possible to set the status of a testCase?170Views0likes1CommentIs it possible to split up your project.xml file into lost of smaller testsuite.xml files?
We want to keep our SoapUI tests in git. However with a large team all contributing to one xml file, this is going to cause merge hell for those of us who aren't native xml parsers (ie quite a few of us). Is it possible to split up the one enormous project.xml file into lots of smaller testsuite.xml files which would still display as being part of the same project in the UI? So instead of project.xml containing myproject, testsuite1, testsuite2, testsuite3 it would be project.xml containing a reference to testsuite1.xml, testsuite2.xml, testsuite3.xml That way multiple people could be working on different test suites with no merge conflicts.385Views0likes2CommentsSwagger JSON Output
With respect to the Swagger plugin currently I am using the version like below <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>3.0.0</version> </dependency> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger-ui</artifactId> <version>3.0.0</version> </dependency> in Maven project where as my Docket Configuration is as below @Bean public Docket postsApi() { return new Docket(DocumentationType.SWAGGER_2) .apiInfo(apiInfo()) .select() .apis(RequestHandlerSelectors.basePackage("com.javainuse.swaggertest")) .paths(PathSelectors.any()) .build() .pathMapping("/") .enable(true); } private ApiInfo apiInfo() { return new ApiInfoBuilder().title("JavaInUse API") .description("JavaInUse API reference for developers") .termsOfServiceUrl("http://javainuse.com").license("JavaInUse License") .licenseUrl("javainuse@gmail.com").version("1.0").build(); } and my rest API configuration is like below @ApiImplicitParam( name = "invoicedata", value = "InvoiceData data", paramType = "body", dataType = "com.javainuse.swaggertest.InvoiceData", dataTypeClass = InvoiceData.class ) @PostMapping(value = "/setSwaggerParameter") public ResponseEntity<String> setWarrantsForPendingPB(@ApiIgnore @SessionAttribute InvoiceData invoicedata) { return new ResponseEntity<String>("Ok", HttpStatus.OK); } but getting the below out in swagger like { "in": "body", "name": "invoicedata", "description": "InvoiceData data", "required": false, "schema": { "$ref": "#/definitions/ERROR - ModelName{namespace='com.javainuse.swaggertest', name='InvoiceData'}" } } Where as expecting { "in": "body", "name": "invoicedata", "description": "InvoiceData data", "required": false, "schema": { "$ref": "#/definitions/InvoiceData " } }192Views0likes0CommentsPlease help with SSL Handshake exception
Hello, I am trying to trigger a test case in soapUI 5.2.1 from command Linux , with https url and getting handshake exception. Please help if anyone aware of how to fix. Same test works from UI but failing in linux command line. 03:52:12,810 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: CONNECT env.test.gcp.com:443 HTTP/1.1 03:52:12,839 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 Connected 03:52:12,840 DEBUG [HttpClientSupport$SoapUIHttpClient] Tunnel to target created. 03:52:13,115 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request 03:52:13,115 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /env/bcmai/restservices/gcw/v1/mycontract/clientcontracts/ HTTP/1.1 03:52:22,839 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] I/O error closing connection javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake ============================================================= I have below options in SoapUI-5.2.1.vmoptions -Dsoapui.https.protocols=SSLv3,TLSv1.2 -Dsoapui.https.ciphers=TLS_RSA_WITH_AES_256_CBC_SHA256 -Dsun.security.ssl.allowUnsafeRenegotiation=true -Djavax.net.debug=ssl:verbose From groovy too tried enabling proxy below before running api, which didnt help. import com.eviware.soapui.impl.wsdl.support.http.ProxyUtils ProxyUtils.setProxyEnabled(true)227Views0likes0CommentsHow to sent information via input txt file in SOAP UI POST request
Hi, This is my first post in the community hope i will get some solution. I have a network product which provides us the REST API to get/create/modify different services but according the vendor document while creating a service there are number of parameters we need to sent in the curl request as input file. Here is the sample curl request based on their document: curl -X POST –u jsmith:password –d @input.txt -k https://192.0.2.1:8443/ng1api/ncm/services -H “Content-Type:application/xml” Now my question how can i run the POST request with the input.txt using the SOAP UI . I have a input in XML (contents of input.txt) <services> <serviceDetail> <serviceType>1</serviceType> <alertProfileID>1</alertProfileID> <isAlarmEnabled>false</isAlarmEnabled> <serviceMembers> <enableAlert>false</enableAlert> <locationKeyInfo> <isLocationKey>true</isLocationKey> <keyType>10</keyType> <keyAttr>0</keyAttr> <asi1xType>VLAN</asi1xType> </locationKeyInfo> <protocolOrGroupCode>POP2</protocolOrGroupCode> <meAlias>myProbe:if4</meAlias> </serviceMembers> <id>-1</id> <serviceName>testApp1</serviceName> </serviceDetail> </services> Thanks Sina249Views0likes0CommentsSendinding a CSV file in a Post request
I have a csv file I'm trying to send to a Springboot application. It's a end point defined as: @RequestParam("file") MultipartFile file When I send a file from Soup UI, I get this error back: Required part 'file' is not present I attached the file in the attachments section. There's no option in the drop down "Part" so I leave it blank. I set method to POST and Media Type to Multi/form. Am I missing anything?Solved370Views0likes1Comment