Community
Participate
Working Groups
ASF service properties do not handle file paths correctly. For example, when running the /org.eclipse.hyades.test.core.services.tests/src/org/eclipse/hyades/test/core/services/tests/shell/ShellAutomationClientAdapterTest.java ASF test, the following exception is thrown: Starting test testPublishTabularReportSampleJUnitTestOutOfProcess().... Test execution started. Test 'resources\JUnit\SampleJUnitTest.testsuite' started. Preparing launch delegate... Performing pre-launch check... Performing final launch validation... Initializing source locator... Launching delegate... Waiting.... Test result 'SampleJUnitTest_1262810079085.execution' collected. Test 'resources\JUnit\SampleJUnitTest.testsuite' completed. Test execution completed! The SampleJUnitTest.testsuite was executed successfully. Test results interrogation started. org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.core.internal.resources.ResourceException: Resource '/org.eclipse.hyades.test.core.services.tests/org.eclipse.hyades.test.core.services.tests/resources/SampleJUnitTest_1262810079085.execution' does not exist. at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:315) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:397) at org.eclipse.hyades.test.core.services.AbstractTestResultsInterrogationService.interrogate(AbstractTestResultsInterrogationService.java:210) at org.eclipse.hyades.test.core.services.AbstractTestResultsInterrogationService.execute(AbstractTestResultsInterrogationService.java:113) at org.eclipse.hyades.automation.server.AbstractService.execute(AbstractService.java:43) at org.eclipse.hyades.automation.server.ServiceProxy$1.run(ServiceProxy.java:139) at org.eclipse.hyades.automation.core.utils.ReusableThread.run(ReusableThread.java:131) at java.lang.Thread.run(Thread.java:735) Caused by: org.eclipse.core.internal.resources.ResourceException: Resource '/org.eclipse.hyades.test.core.services.tests/org.eclipse.hyades.test.core.services.tests/resources/SampleJUnitTest_1262810079085.execution' does not exist. at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:319) at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:196) at org.eclipse.core.internal.resources.File.getContents(File.java:286) at org.eclipse.core.internal.resources.File.getContents(File.java:277) at org.eclipse.hyades.models.hierarchy.util.HierarchyURIConverterImpl$WorkbenchHelper.createPlatformResourceInputStream(HierarchyURIConverterImpl.java:290) at org.eclipse.hyades.models.hierarchy.util.HierarchyURIConverterImpl.createPlatformResourceInputStream(HierarchyURIConverterImpl.java:368) at org.eclipse.emf.ecore.resource.impl.URIConverterImpl.createInputStream(URIConverterImpl.java:441) at org.eclipse.emf.ecore.resource.impl.URIConverterImpl.createInputStream(URIConverterImpl.java:457) at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1254) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:255) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:270) ... 7 more Test testPublishTabularReportSampleJUnitTestOutOfProcess() complete! This is caused by the ASF service properties do not handle paths correctly. See the variable JavaDoc comment for org.eclipse.hyades.test.core.services.AbstractTestExecutionService.resultsSpecifier for the valid path values. See org.eclipse.hyades.test.core.services.internal.util.ServiceUtil for APIs to resolve the container and file name from a valid path.
No longer required by a consuming product.
Closing.