Test different resource values in SOAP UI
Hi, I am trying to create tests for the endpoint which ends like this: /account/id where id can have different values. In SOAP UI I want to test whether the correct value return 200, and other incorrect values return 400, so I would like to have tests: 1. /account/1234 - correct 2. /account/abc - incorrect However I am unable to change the values of the resource in Test Cases in SOAP UI as it is hardcoded: Is there any way I can change resource depending on the test?366Views0likes0Commentsexport json swagger with response member details
can I export "json" swagger with full response from "Soapui"? the swagger exported contains just response status code, not details. my swagger output: {"swagger":"2.0","info":{"version":"1.0","title":"http://localhost:54480"},"basePath":"http://localhost:54480/CustomerImage.svc/GetCustomerPicture/?IdentityNumber=123&AccountNumber=123","paths":{"/CustomerImage.svc/GetCustomerPicture":{"get":{"operationId":"CustomerImage.svc","parameters":[{"name":"IdentityNumber","in":"query","required":false,"type":"string"},{"name":"AccountNumber","in":"query","required":false,"type":"string"}],"responses":{"0":{},"404":{},"200":{},"500":{}}}}}1.3KViews0likes1CommentERROR: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.2KViews0likes4Comments