Hi, can you give some more information please? What OS, which java etc?
The testing/samples/integration-tests/sling/logs folder contains an error.log, should contain some errors pointing to the problem. Thanks Carsten 2012/7/14 Bhathiya Jayasekara <[email protected]>: > Hi devs, > > I tried to build testing/sample/integration-tests module, but it was > failed. What is the problem with that failing test case? Here is the > exception I get. > > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running > org.apache.sling.testing.samples.integrationtests.http.OsgiConsoleTest > 10 [main] INFO > org.apache.sling.testing.samples.integrationtests.http.OsgiConsoleTest - > Server base URL=http://localhost:41006 > 20 [main] INFO org.apache.sling.testing.tools.jarexec.JarExecutor - > Executable jar options: -p 41006 > 20 [main] INFO org.apache.sling.testing.tools.jarexec.JarExecutor - > Executing java -Xmx512m -jar > /home/bhathiya/Apps/Sling/sling/testing/samples/integration-tests/target/dependency/org.apache.sling.launchpad-6-standalone.jar > -p 41006 > 23 [main] INFO org.apache.sling.testing.tools.sling.TimeoutsProvider - > Timeout factor set to 1.0 from system property > sling.testing.timeout.multiplier > 23 [main] INFO > org.apache.sling.testing.samples.integrationtests.http.OsgiConsoleTest - > Will wait up to 60 seconds for server to become ready > 26 [main] INFO > org.apache.sling.testing.samples.integrationtests.http.OsgiConsoleTest - > Checking that GET requests return expected content (timeout=60 seconds): > [/:script src="system/sling.js", > /.explorer.html:href="/libs/sling/explorer/css/explorer.css", > /sling-test/sling/sling-test.html:Sling client library tests] > 14.07.2012 23:38:50.448 *INFO* [main] Setting sling.home=sling (default) > 14.07.2012 23:38:50.449 *INFO* [main] Starting Sling in sling > (/home/bhathiya/Apps/Sling/sling/testing/samples/integration-tests/sling) > 14.07.2012 23:38:50.469 *INFO* [main] Checking launcher JAR in folder sling > 14.07.2012 23:38:50.521 *INFO* [main] Installing new launcher: > jar:file:/home/bhathiya/Apps/Sling/sling/testing/samples/integration-tests/target/dependency/org.apache.sling.launchpad-6-standalone.jar!/resources/org.apache.sling.launchpad.base.jar, > 2.3.0 (org.apache.sling.launchpad.base.jar.1342289330521) > 14.07.2012 23:38:50.523 *INFO* [main] Loading launcher class > org.apache.sling.launchpad.base.app.MainDelegate from > org.apache.sling.launchpad.base.jar.1342289330521 > 14.07.2012 23:38:50.555 *INFO* [main] Starting launcher ... > 14.07.2012 23:38:50.557 *INFO* [main] HTTP server port: 41006 > 14.07.2012 23:38:52.272 *INFO* [main] Startup completed > 60515 [main] INFO > org.apache.sling.testing.samples.integrationtests.http.OsgiConsoleTest - > Server not ready after 60 seconds, giving up > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 60.615 sec > <<< FAILURE! > Running > org.apache.sling.testing.samples.integrationtests.serverside.DontCareForTestsCountTest > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.053 sec > <<< FAILURE! > Running > org.apache.sling.testing.samples.integrationtests.serverside.JSONResponseTest > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec > <<< FAILURE! > Running > org.apache.sling.testing.samples.integrationtests.serverside.ServerSideSampleTest > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec > <<< FAILURE! > Running > org.apache.sling.testing.samples.integrationtests.serverside.FailingTestsTest > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec > <<< FAILURE! > Running > org.apache.sling.testing.samples.integrationtests.serverside.SingleServerSideMethodTest > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec > <<< FAILURE! > Running > org.apache.sling.testing.samples.integrationtests.serverside.scriptable.ScriptableTestsTest > Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec > <<< FAILURE! > Running > org.apache.sling.testing.samples.integrationtests.serverside.sling.SlingServerSideSingleMethodTest > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec > <<< FAILURE! > Running > org.apache.sling.testing.samples.integrationtests.serverside.sling.SlingServerSideTest > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec > <<< FAILURE! > > Results : > > Failed tests: > > testSomeConsolePaths(org.apache.sling.testing.samples.integrationtests.http.OsgiConsoleTest): > Server not ready after 60 seconds, giving up > > initializationError(org.apache.sling.testing.samples.integrationtests.serverside.DontCareForTestsCountTest): > Server is not ready according to previous tests > > testWithRetries(org.apache.sling.testing.samples.integrationtests.serverside.JSONResponseTest): > Server is not ready according to previous tests > > initializationError(org.apache.sling.testing.samples.integrationtests.serverside.ServerSideSampleTest): > Server is not ready according to previous tests > > testFailures(org.apache.sling.testing.samples.integrationtests.serverside.FailingTestsTest): > Server is not ready according to previous tests > > initializationError(org.apache.sling.testing.samples.integrationtests.serverside.SingleServerSideMethodTest): > Server is not ready according to previous tests > > testScriptableTest[0](org.apache.sling.testing.samples.integrationtests.serverside.scriptable.ScriptableTestsTest): > Server is not ready according to previous tests > > testScriptableTest[1](org.apache.sling.testing.samples.integrationtests.serverside.scriptable.ScriptableTestsTest): > Server is not ready according to previous tests > > initializationError(org.apache.sling.testing.samples.integrationtests.serverside.sling.SlingServerSideSingleMethodTest): > Server is not ready according to previous tests > > initializationError(org.apache.sling.testing.samples.integrationtests.serverside.sling.SlingServerSideTest): > Server is not ready according to previous tests > > Tests run: 10, Failures: 10, Errors: 0, Skipped: 0 > > [WARNING] File encoding has not been set, using platform encoding UTF-8, > i.e. build is platform dependent! > [INFO] > [INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default) @ > org.apache.sling.testing.samples.integrationtests --- > [INFO] Checking legal files in: > org.apache.sling.testing.samples.integrationtests-1.0.7-SNAPSHOT.jar > [INFO] Checking legal files in: > org.apache.sling.testing.samples.integrationtests-1.0.7-SNAPSHOT-sources.jar > [INFO] > [INFO] --- maven-failsafe-plugin:2.7.2:verify (verify) @ > org.apache.sling.testing.samples.integrationtests --- > [INFO] Failsafe report directory: > /home/bhathiya/Apps/Sling/sling/testing/samples/integration-tests/target/failsafe-reports > [WARNING] File encoding has not been set, using platform encoding UTF-8, > i.e. build is platform dependent! > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 1:27.545s > [INFO] Finished at: Sat Jul 14 23:39:59 IST 2012 > [INFO] Final Memory: 21M/134M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-failsafe-plugin:2.7.2:verify (verify) on > project org.apache.sling.testing.samples.integrationtests: There are test > failures. > [ERROR] > [ERROR] Please refer to > /home/bhathiya/Apps/Sling/sling/testing/samples/integration-tests/target/failsafe-reports > for the individual test results. > [ERROR] -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e > switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, > please read the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException > > Thank you. > --Bhathiya -- Carsten Ziegeler [email protected]
