Contributions
Re: Strange exception when running the soapui test from maven
I am also facing the same issue. Any update's Attaching the log for reference: parameter_Positive:99,TC_Mobile_Admin_0022_GET PremisesByTenantId API_mobile api check with wrong tenantId parameter_Positive:15,TC_Mobile_Admin_0023_GET PremisesByTenantId API_mobile api check with PATCH Method_Negative:128 03:50:21,255 ERROR [SoapUI] An error occurred [No match found], see error log for details java.lang.IllegalStateException: No match found at java.util.regex.Matcher.group(Matcher.java:485) at com.eviware.soapui.support.GroovyUtils.extractErrorLineNumber(GroovyUtils.java:145) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:172) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:239) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:48) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:148) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:43) at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:135) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) 03:50:21,255 ERROR [SoapUI] An error occurred [PermGen space], see error log for details java.lang.OutOfMemoryError: PermGen space at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts.define(ClassLoaderForClassArtifacts.java:42) at org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts$1.run(ClassLoaderForClassArtifacts.java:86) at org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts$1.run(ClassLoaderForClassArtifacts.java:84) at java.security.AccessController.doPrivileged(Native Method) at org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts.defineClassAndGetConstructor(ClassLoaderForClassArtifacts.java:84) at org.codehaus.groovy.runtime.callsite.CallSiteGenerator.compilePogoMethod(CallSiteGenerator.java:207) at org.codehaus.groovy.reflection.CachedMethod.createPogoMetaMethodSite(CachedMethod.java:220) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.createCachedMethodSite(PogoMetaMethodSite.java:207) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.createPogoMetaMethodSite(PogoMetaMethodSite.java:183) at groovy.lang.MetaClassImpl.createPogoCallCurrentSite(MetaClassImpl.java:3031) at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallCurrentSite(CallSiteArray.java:95) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149) at dbUtils_PublicApi.dbUtils_PublicApi.dbConnEstablish(dbUtils_PublicApi.groovy:152) at dbUtils_PublicApi.dbUtils_PublicApi$dbConnEstablish.callCurrent(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149) at dbUtils_PublicApi.dbUtils_PublicApi.<init>(dbUtils_PublicApi.groovy:76) at dbUtils_PublicApi.dbQueries.<init>(dbUtils_PublicApi.dbQueries:73) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77) at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:54) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:202) 03:50:21,256 ERROR [SoapUIProTestCaseRunner] Extract Response Time failed, exporting to [C:\jenkins\workspace\Public_API_Test\PublicProjectReports\Mobile_API-TC_Mobile_Admin_0023_GET_PremisesByTenantId_API_mobile_api_check_with_PATCH_Method_Negative-Extract_Response_Time-0-FAILED.txt] 03:50:21,257 INFO [SoapUIProTestCaseRunner] Finished running SoapUI testcase [TC_Mobile_Admin_0023_GET PremisesByTenantId API_mobile api check with PATCH Method_Negative], time taken: 38635ms, status: FAILED1.6KViews0likes0Comments[Bug] [Failed to read an adapted Java Bean property]
If we are creating a project in soapUI pro 5.0.0(with some methods in it) and trying to open the same project in SoapUI pro 4.5.1 We are getting below error while opening the method's (soapUI 4.5.1): Mon Jul 14 10:48:47 IST 2014:ERROR:An error occured [Failed to read an adapted Java Bean property. cause=org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException: string value 'No Authorization' is not a valid enumeration value for type of authType element in Credentials in namespace http://eviware.com/soapui/config bean=com.eviware.soapui.impl.rest.RestRequest@52dcd527 bean type=com.eviware.soapui.impl.rest.RestRequest property name=authType property type=java.lang.String property reader=public java.lang.String com.eviware.soapui.impl.support.AbstractHttpRequest.getAuthType()], see error log for details I think this is a Bug related to compatibility with older version's.10 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.6KViews0likes1CommentComparing xml's
Can any one help me ? Getting out of this problem. I want to validate two xml's weather they are same or not. I used xmlUnit jar classes for comparing this but due to miss ordering of values it is failing. Below is all details. reference.xml TRAVELGUIDE EXCURSION_AND_TICKETS sample.xml EXCURSION_AND_TICKETS TRAVELGUIDE import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.net.URL; import java.util.List; import org.custommonkey.xmlunit.DetailedDiff; import org.custommonkey.xmlunit.Diff; import org.custommonkey.xmlunit.Difference; import org.custommonkey.xmlunit.ElementNameAndAttributeQualifier; import org.custommonkey.xmlunit.ElementNameAndTextQualifier; import org.custommonkey.xmlunit.ElementNameQualifier; import org.custommonkey.xmlunit.XMLUnit; import org.custommonkey.xmlunit.examples.MultiLevelElementNameAndTextQualifier; import org.custommonkey.xmlunit.examples.RecursiveElementNameAndTextQualifier; import org.xml.sax.SAXException; public class ElementNameAttrDiffTest { public static void main(String[] args) { URL url1 = ElementNameAttrDiffTest.class.getResource(“reference.xml”); URL url2 = ElementNameAttrDiffTest.class.getResource(“sample.xml”); FileReader fr1 = null; FileReader fr2 = null; try { fr1 = new FileReader(url1.getPath()); fr2 = new FileReader(url2.getPath()); } catch (FileNotFoundException e) { e.printStackTrace(); } XMLUnit.setIgnoreWhitespace(Boolean.TRUE); XMLUnit.setIgnoreAttributeOrder(true); try { Diff diff = new Diff(fr1, fr2); System.out.println(“Similar? ” + diff.similar()); System.out.println(“Identical? ” + diff.identical()); DetailedDiff detDiff = new DetailedDiff(diff); detDiff.overrideMatchTracker(new MatchTrackerImpl()); //detDiff.overrideElementQualifier(new ElementNameQualifier()); // detDiff.overrideElementQualifier(new ElementNameAndAttributeQualifier()); detDiff.overrideElementQualifier(new MultiLevelElementNameAndTextQualifier(2)); List differences = detDiff.getAllDifferences(); for (Object object : differences) { Difference difference = (Difference)object; System.out.println(“***********************”); System.out.println(difference); System.out.println(“***********************”); } } catch (SAXException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } } import java.io.StringWriter; import javax.xml.transform.OutputKeys; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; import org.custommonkey.xmlunit.Difference; import org.custommonkey.xmlunit.MatchTracker; import org.custommonkey.xmlunit.NodeDetail; import org.w3c.dom.Node; class MatchTrackerImpl implements MatchTracker { public void matchFound(Difference difference) { if (difference != null) { NodeDetail controlNode = difference.getControlNodeDetail(); NodeDetail testNode = difference.getTestNodeDetail(); String controlNodeValue = printNode(controlNode.getNode()); String testNodeValue = printNode(testNode.getNode()); if (controlNodeValue != null) { System.out.println(“####################”); System.out.println(“Control Node: ” + controlNodeValue); } if (testNodeValue != null) { System.out.println(“Test Node: ” + testNodeValue); System.out.println(“####################”); } } } private static String printNode(Node node) { if (node != null && node.getNodeType() == Node.ELEMENT_NODE) { StringWriter sw = new StringWriter(); try { Transformer t = TransformerFactory.newInstance().newTransformer(); t.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, “yes”); t.transform(new DOMSource(node), new StreamResult(sw)); } catch (TransformerException te) { System.out.println(“nodeToString Transformer Exception”); } return sw.toString(); } return null; } } Similar? false Identical? false #################### Expected sequence of child nodes ’0′ but was ’1′ – comparing at /UsernameToken[1]/OtherSrvcPref[1] to at /UsernameToken[1]/OtherSrvcPref[2] *********************** *********************** Expected sequence of child nodes ’1′ but was ’0′ – comparing at /UsernameToken[1]/OtherSrvcPref[2] to at /UsernameToken[1]/OtherSrvcPref[1] above are the xml’s and the code which i am using. How i will overcome/ignore the sequence of Nodes.?10 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.4KViews0likes2CommentsRe: Adding parameters with the same name
I want to send same parameters name with different values in the same service. But we are not able to create more than one parameter with same name. I tried the solution which is given in this post but nothing happened. Can someone please suggest me another way of doing this through soapUI-Pro.1.9KViews0likes0CommentsHow to set a property at Global level through LoadScript ?
Can any one help me? I want to set the project path in Global properties through load script. *For setting the properties in project level we can use "Project" variable.10 years agoPlace ReadyAPI QuestionsReadyAPI Questions889Views0likes0CommentsRe: Cannot be found script library with soapUI API
yes, it works for me. Thanks for giving the solution10 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.2KViews0likes0CommentsRe: Problem in applying License
I am also facing the same problem. I have 2 versions of soapUI Pro 4.5.1 and 5.0.0 in my machine. I downloaded trial license, Soapui Pro 5.0.0 is taking that licence but soapUI 4.5.1 is giving "Invalid License" Error. More over i am not able to access external GroovyScript file in SoapUI 5.0.0 because of this all things I am not able to explore soapui pro features:( What is the solution? I am stuck:( Attaching the screenshot for the same. -Thanks, Priyanka Gour.10 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes0CommentsRe: Cannot be found script library with soapUI API
In SoapUI Pro 5.0.0, facing similar type of issue: It is not able to find the external Groovy scripts and throwing below error. same project is working fine in SOAPUI 4.5.1. Tue May 06 17:34:45 IST 2014:ERROR:An error occurred [BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' The lookup for dbUtils.dbUtils caused a failed compilaton. There should not have been any compilation from this call.], see error log for details. -Thanks10 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.2KViews0likes0Comments