Forum Discussion

instars's avatar
instars
New Contributor
12 years ago

SoapUITestCaseRunner

How do I get?

public void testSOAPUI() throws Exception {

SoapUITestCaseRunner runner = new SoapUITestCaseRunner(); runner.setProjectFile("/home/yurko/NetBeansProjects/SVN/Support/SoapUI/test/mavenproject1/KP/ADD_REQUISITION/SERIVSE_SETTINGS_KS_LEVEL2/SUMM/SERIVSE-SETTINGS-SUMM-soapui-project");
runner.setSettingsFile("/home/yurko/NetBeansProjects/SVN/Support/SoapUI/test/mavenproject1/KP/ADD_REQUISITION/SERIVSE_SETTINGS_KS_LEVEL2/SUMM/SERIVSE-SETTINGS-SUMM-soapui-project/settings.xml");
runner.setJUnitReport(true);
runner.setPrintReport(true);
runner.run();
}



soapUI 4.5.0 TestCase Runner
16:39:37,687 WARN [SoapUI] Missing folder [/home/yurko/NetBeansProjects/SVN/Support/SoapUI/test/mavenproject1/./ext] for external libraries
16:39:37,889 WARN [DefaultSoapUICore] Failed to load settings from [Element soapui-project@http://eviware.com/soapui/config is not a valid soapui-settings@http://eviware.com/soapui/config document or a valid substitution.], creating new
Error at line 1, column 1
org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA
at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1276)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1263)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
at com.eviware.soapui.config.SoapuiProjectDocumentConfig$Factory.parse(Unknown Source)
at com.eviware.soapui.impl.wsdl.WsdlProject.loadProject(WsdlProject.java:333)
at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:244)
at com.eviware.soapui.impl.wsdl.WsdlProjectFactory.createNew(WsdlProjectFactory.java:41)
at com.eviware.soapui.impl.wsdl.WsdlProjectFactory.createNew(WsdlProjectFactory.java:24)
at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:337)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:158)
at com.pb.pb.support.mavenproject1.AppTest.testSOAPUI(AppTest.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: org.xml.sax.SAXParseException: Unexpected element: CDATA
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3454)
... 37 more
16:39:38,605 ERROR [SoapUI] An error occured [Failed to load project from file [file:/home/yurko/NetBeansProjects/SVN/Support/SoapUI/test/mavenproject1/KP/ADD_REQUISITION/SERIVSE_SETTINGS_KS_LEVEL2/SUMM/SERIVSE-SETTINGS-SUMM-soapui-project/]], see error log for details
com.eviware.soapui.support.SoapUIException: Failed to load project from file [file:/home/yurko/NetBeansProjects/SVN/Support/SoapUI/test/mavenproject1/KP/ADD_REQUISITION/SERIVSE_SETTINGS_KS_LEVEL2/SUMM/SERIVSE-SETTINGS-SUMM-soapui-project/]
at com.eviware.soapui.impl.wsdl.WsdlProject.loadProject(WsdlProject.java:426)
at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:244)
at com.eviware.soapui.impl.wsdl.WsdlProjectFactory.createNew(WsdlProjectFactory.java:41)
at com.eviware.soapui.impl.wsdl.WsdlProjectFactory.createNew(WsdlProjectFactory.java:24)
at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:337)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:158)
at com.pb.pb.support.mavenproject1.AppTest.testSOAPUI(AppTest.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.i
  • nmrao's avatar
    nmrao
    Champion Level 3
    1. Check your settings.xml with a default file which will be in user home. you may leave it if you do not have any extra settings. Or check if the xml is a valid.
    2. Does soapui project file you are using not have any file extension or missed .xml?
  • hachik20's avatar
    hachik20
    New Contributor
    Hi
    Exeperimental spent.
    If the project is set
    Composite Project = TRUE -- does not work.
    If you set FALSE all works.

    But how to get to work with Composite Project = TRUE?
  • hachik20's avatar
    hachik20
    New Contributor
    nmrao wrote:
    1. Check your settings.xml with a default file which will be in user home. you may leave it if you do not have any extra settings. Or check if the xml is a valid.
    2. Does soapui project file you are using not have any file extension or missed .xml?



    Hi
    Exeperimental spent.
    If the project is set
    Composite Project = TRUE -- does not work.
    If you set FALSE all works.

    But how to get to work with Composite Project = TRUE?