ERROR:java.net.SocketException: Connection reset
Running SoapUI 5.0.0 Trying to send a SOAP document to an EHR API and am getting the above error. The detail after that line looks similar to the other reported issues of this type: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at sun.security.ssl.InputRecord.readFully(Unknown Source) at sun.security.ssl.InputRecord.read(Unknown Source) at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source) at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source) at sun.security.ssl.AppOutputStream.write(Unknown Source) and there is no other clues offered in the text below this group. Sending a REST message works just fine, but SOAP is the standard for the set of APIs that my team is working with. I tried removing each header line individually, performing a test run between each removal: HOST = <servername>.corp.<domain>.com SOAPAction = "urn:<ehrsystem-com>:PatientAccessMobile.2020.Services.GetMessageDetail" Accept-Encoding = gzip,deflate User-Agent =Apache-HttpClient/4.5.5 (Java/12.0.1) Connection = Keep-Alive Content-Type = text/xml;charset=UTF-8 <ehr>-Client-ID = 087fee8d-4259-49ae-8da9-99bdeeb33636 Authorization = Basic ZW1wOjExNTU6ZXBpYw== ... and setting up Basic authorization. Nothing seems to work. I did not edit the XML doc, because the project file is from my team lead, who was successfully communicating with the API via ReadyAPI. Just wondering if version 5.0.0 is too old or I missed something. Thanks.4.4KViews0likes3CommentsSoapUI Open Source project test cases are running in indefinite loop
I have a SoapUI project with Test Suite Setup scripts running the test cases multiple times based on a global property but it is running in indefinite loop. Please help me to fix the issue: def project = null def workspace = runner.testSuite.project.getWorkspace(); def count=context.expand('${#Global#run}') if (workspace != null) { project = workspace.getProjectByName("IQCX") } if (project.open && project.name == "IQCX") { def properties = new com.eviware.soapui.support.types.StringToObjectMap() def testcase = project.getTestSuiteByName("TestSuite 1").getTestCaseByName("Login"); def testcase1 = project.getTestSuiteByName("TestSuite 1").getTestCaseByName("Logout"); if(testcase == null) { throw new RuntimeException("Could not locate testcase 'TestCase'! "); } else { // This will run everything in the selected project for(int i=1;i<=count;i++){ if(i!=count){ testcase.run(new com.eviware.soapui.support.types.StringToObjectMap(), false) sleep(70000) testcase1.run(new com.eviware.soapui.support.types.StringToObjectMap(), false) sleep(5000) log.info( "Finished running "+i+" cycle" ) } else if(i==count){ log.info "count is " + i runner.cancel("finish it") testcase=null return null break; } else{ break; } } runner.cancel("finish it") testcase=null return null } } else { throw new RuntimeException("Could not find project") }396Views0likes1CommentGroovy Script to delete test cases that begin with value
Disclaimer - My knowledge of Groovy is very limited. I basically require a groovy script within my test case to delete test steps that begin with 'Order'. I have tried this below, but to no avail, but that's kind of what I want. No idea if the syntax is correct or not! testSuite.removeTestStep.startswith(Order) This script would ideally be at the bottom of the test case and delete all the test steps that begin with the word 'Order' Any help would be greatly appreciated. Many Thanks. Ben1.1KViews0likes5CommentsSoapUI 5.6.0 won't start
Problem: I can't run SoapUI 5.6.0 on Linux. I see only splash screen, sometimes even the splash screen won't show up.I am using Ubuntu 20.04.1 LTS. It's newly installed. In the error.log is this exception: Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: 'boolean org.apache.xmlbeans.XmlOptionsBean.isLoadDTDGrammar()' at org.apache.xmlbeans.impl.common.SAXHelper.saxFactory(SAXHelper.java:70) at org.apache.xmlbeans.impl.common.SAXHelper.newXMLReader(SAXHelper.java:46) at org.apache.xmlbeans.impl.store.Locale.getSaxLoader(Locale.java:3066) at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1272) at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1259) at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345) at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:252) at com.eviware.soapui.config.SoapuiSettingsDocumentConfig$Factory.parse(SoapuiSettingsDocumentConfig.java:59) at com.eviware.soapui.DefaultSoapUICore.initSettings(DefaultSoapUICore.java:259) at com.eviware.soapui.SwingSoapUICore.initSettings(SwingSoapUICore.java:99) at com.eviware.soapui.DefaultSoapUICore.init(DefaultSoapUICore.java:141) at com.eviware.soapui.StandaloneSoapUICore.<init>(StandaloneSoapUICore.java:38) at com.eviware.soapui.SoapUI$SoapUIRunner.run(SoapUI.java:791) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) at java.base/java.security.AccessController.doPrivileged(AccessController.java:391) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) I tried: - run an instance that I had on the previous OS (disk backup). - install new SoapUI 5.6.0 with installator that I newly downloaded. - remove all folders and setting files (default-soapui-workspace.xml, soapui-settings.xml, etc). - use previous backuped folders and setting files from an old OS instance. - use different versions of java (8 oracle ,11 openjdk ,13 oracle) - replace lib/xmlbeans-3.1.1-sb-fixed.jar with xmlbeans-3.1.0.jar nothing worksSolved4.7KViews0likes4Commentsjavax.net.ssl.SSLHandshakeException for 5.6.0
Hello I getting below error for soap UI open source 5.6.0 version ERROR:javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target but its working fine for soap UI open source 5.5.0 version is anyone facing same issue?617Views0likes0CommentsUnable to get an .xlsx file as an attachement in rest api response
Hi! I'm trying to get a xlsx file as an attachment in response of an REST API, however for some reason I'm failing and the attachment list remains empty.the SoapUI keeps returning an html reponse stating "unsupported content-type [application/vnd.openxmlformats-officedocument.spreadsheetml.sheet]" while the status code is 200 for the data, so the file is there. Also, I double checked with swagger and i was able to download the attachement there without any issues. Anyone knows how to fix this?1.5KViews0likes1Commentwhy i am getting null/empty response while deleting the employee.script is running perfectly Helpme?
i am doing adding employee, getting employee and deleting the same employee in same groovy script. adding and getting employee works fine. I need to get the response of getemployee and pass it to delete employee request.I done that but response for delete employee is not shown[PFA]. if u want anything i can share more. Help is much appreciated. Thanks ArunachalamSolved1.4KViews0likes2CommentsGetting Assertion Renaming Box while adding Script assertion using Groovy Script. How to avoid it?
I need to add a Script Assertion using the Groovy Script. When I tried the below piece of code I am getting the assertion renaming box as displayed in the screenshot. How to avoid it? // Get the SOAP test step. def testStep = context.getTestCase().getTestStepByName('TestStepforScript') // Just create a unique name each time, allows the script to be run // multiple times without clashing assertion names. def currentDateTime = new Date() def newAssertionName = currentDateTime.format("HHmmss") log.info('newAssertionName = ' + newAssertionName) // Add the new script assertion. def testAssertion = testStep.addAssertion('Script Assertion') testAssertion.setName(newAssertionName) testAssertion.setScriptText("log.info 'we are running the script assertion ${newAssertionName}'")Solved1.2KViews0likes4CommentsContains Assert to match Regex in JSON Response
I am new to SuapUI and I am trying to use the Contains assert to verify that a certain string exists in a response. I know I can match the value I am looking for with a JSONPath match ($.data[0].ratu_desc), but the value might not always be in the same position (0). I merely want to verify that the string"ratu_desc": "Total Canada" exists in the response. What regex should I use? Even when I go to the online regex testers to test my regex pattern, when I paste the pattern into the Contains box it matches nothing. My JSON response: { "data": [ { "ratu_id": 247796211, "ratu_desc": "Total Canada", "ratu_code": "CAN", "ratu_isarchived": 0, "ratu_ratm_id": 247795404, "ratu_ratm_id_lookup": "Audience", "ratu_slu_id_markettype": 124330, "ratu_slu_id_markettype_lookup": "Uses Market Allocation Methods", "ratu_slu_id_estimatetype": null, "ratu_slu_id_estimatetype_lookup": null }, { "ratu_id": 257213831, "ratu_desc": "SQA Universe", "ratu_code": "SQUNV", "ratu_isarchived": 0, "ratu_ratm_id": 247795993, "ratu_ratm_id_lookup": "Edmonton EM", "ratu_slu_id_markettype": 124320, "ratu_slu_id_markettype_lookup": "Has Market Level estimates", "ratu_slu_id_estimatetype": null, "ratu_slu_id_estimatetype_lookup": null }, ], "error": null, "bvError": null }1.8KViews0likes4Comments