I've imported the idmUnitTests project, which was downloaded from
sourceforge, change some configuration in idmunit-config.xml but did not
change any sample excel sheet. When I run the sample java file as JUnit,
faced the error:
java.lang.Exception: Error loading configuration file
at org.idmunit.parser.ExcelParser$3.runTest(Unknown Source)
at junit.framework.TestCase.runBare(TestCase.java:127 )
at junit.framework.TestResult$1.protect(TestResult.ja va: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
org.eclipse.jdt.internal.junit.runner.junit3.JUnit 3TestReference.run(JUnit3TestReference.java:130)
at
org.eclipse.jdt.internal.junit.runner.TestExecutio n.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(RemoteTestRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(RemoteTestRunner.java:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.run(RemoteTestRunner.java:386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.main(RemoteTestRunner.java:196)
Caused by: org.idmunit.IdMUnitException: Error reading configuration.
at org.idmunit.ConfigLoader.loadXMLFromFS(Unknown Source)
at org.idmunit.ConfigLoader.getConfigData(Unknown Source)
at org.idmunit.parser.ExcelParser.createSuite(Unknown Source)
at org.idmunit.ExampleTest.suite(ExampleTest.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit 3TestLoader.getTest(JUnit3TestLoader.java:108)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit 3TestLoader.loadTests(JUnit3TestLoader.java:59)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(RemoteTestRunner.java:445)
... 3 more
Caused by: java.net.MalformedURLException: unknown protocol: d
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.setupCurre ntEntity(Unknown
Source)
at org.apache.xerces.impl.XMLEntityManager.startEntit y(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startDocum entEntity(Unknown
Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl.setI nputSource(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(U nknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(U nknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse( Unknown Source)
at nu.xom.Builder.build(Unknown Source)
at nu.xom.Builder.build(Unknown Source)
... 14 more
Alongwith, I need a demo for IdMUnit project from the project setup to
execution


--
anuvabg
------------------------------------------------------------------------
anuvabg's Profile: https://forums.netiq.com/member.php?userid=6135
View this thread: https://forums.netiq.com/showthread.php?t=51577