Community
Participate
Working Groups
Created attachment 109396 [details] Err_08072008_testauto.log Build ID: I20080617-2000 Steps To Reproduce: 1. Occurs while running junits in headless mode via TPTP Test automation framework ANT tasks 2. Refer this for our test setup https://bugs.eclipse.org/bugs/show_bug.cgi?id=222382#c111 3. No external RAC used 4. Same script works at times, attaching two execution logs, ran within minutes apart (same machine, same setup) Test Setup: ----------- birt-report-framework-2_3_0.zip dtp_1.6.0.zip GEF-runtime-3.4.0.zip org.eclipse.tptp.test.report.birt-TPTP-4.5.0.zip tptp.runtime.allInOne.win32.win32.x86-TPTP-4.5.0.zip More information: [tptp:execution] Test 'org.eclipse.cosmos.dc.cmdbf.services.tests\junits\TestRegistrationInputTransformer.testsuite' started. [tptp:execution] Preparing launch delegate... [tptp:execution] Performing pre-launch check... [tptp:execution] Performing final launch validation... [tptp:execution] Initializing source locator... [tptp:execution] Launching delegate... [tptp:execution] org.eclipse.core.runtime.CoreException: IWAT4039E The Test Execution Harness reported the following problems: null [tptp:execution] at org.eclipse.hyades.test.core.launch.delegates.AbstractLaunchConfigurationDelegate2.launch(AbstractLaunchConfigurationDelegate2.java:225) [tptp:execution] at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:764) [tptp:execution] at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:614) [tptp:execution] at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:607) [tptp:execution] at org.eclipse.hyades.test.core.services.AbstractTestExecutionService.launch(AbstractTestExecutionService.java:822) [tptp:execution] at org.eclipse.hyades.test.core.services.AbstractTestExecutionService.execute(AbstractTestExecutionService.java:592) [tptp:execution] at org.eclipse.hyades.automation.server.AbstractService.execute(AbstractService.java:43) [tptp:execution] at org.eclipse.hyades.automation.server.ServiceProxy$1.run(ServiceProxy.java:139) [tptp:execution] at org.eclipse.hyades.automation.core.utils.ReusableThread.run(ReusableThread.java:131) [tptp:execution] at java.lang.Thread.run(Thread.java:810) BUILD FAILED D:\COSMOS\TestAuto\testauto_setup.xml:49: The following error occurred while executing this line: D:\COSMOS\TestAuto\testauto.xml:477: java.lang.NullPointerException
Created attachment 109398 [details] Success_08072008_testauto.log Same machine, same setup.. this time execution completed fine! We are setting up an automated daily test execution for COSMOS, this behavior is unreliable.
Created attachment 109399 [details] Success_2_08072008_testauto.log Executing the test script again, completed without errors, but for same build one of the test case reports result as inconclusive, which was pass in last run Verdict for test result 'TestCMDBfDeregistrationOperation.execution' is 'inconclusive'.
When the user selects 'Run in headless mode' in the 'Program to run' section of the Workbench Location edtior, the TPTP JUnit test does not run correctly.
Test cases to cover this scenario will be delivered under https://bugs.eclipse.org/bugs/show_bug.cgi?id=272133 (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=272133#c13).
(In reply to comment #4) > Test cases to cover this scenario will be delivered under > https://bugs.eclipse.org/bugs/show_bug.cgi?id=272133 (see > https://bugs.eclipse.org/bugs/show_bug.cgi?id=272133#c13). See https://bugs.eclipse.org/bugs/show_bug.cgi?id=272133#c14.
(In reply to comment #3) > When the user selects 'Run in headless mode' in the 'Program to run' section of > the Workbench Location edtior, the TPTP JUnit test does not run correctly. This is now working as designed.
Created attachment 154666 [details] Patch.
Although the original symptom is not reproducible, a code review indicates that the org.eclipse.hyades.execution.harness.JavaExecutionDeploymentAdapter.deployFile(IFileManagerExtended, FileIdentifierList, FileIdentifierList, StringBuffer) method is throwing an java.io.IOException with a null message when transferring files using the AC's file transfer service, which makes problem determination impossible. The original symptom is not reproducible most likely due to one or more fixed file transfer service defect(s) and https://bugs.eclipse.org/bugs/show_bug.cgi?id=290620. The fix for this defect is to ensure a useful error message is reported when the TPTP JUnit/Plug-in test execution fails. The attached patch checked in to CVS (HEAD).
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.