Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 201936

Summary: [Testsuite Failure] Testsuite Monitor.UI.ImportLog.Part1 is failing because of failure in multiple logs import, same logs are getting imported individually
Product: z_Archived Reporter: vrushali satpute <vsatpute>
Component: TPTP.monitoringAssignee: Rohit Shetty <rohit.shetty>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P1 CC: apnan, jkubasta, labadie, rohit.shetty
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: All   
OS: Windows XP   
Whiteboard: closed460
Attachments:
Description Flags
Screenshot for multiple log import error
none
Machine details
none
Patch none

Description vrushali satpute CLA 2007-08-31 13:32:07 EDT
Build ID: M20070822-0800

Steps To Reproduce:
1. Execute testsuite
org.eclipse.tptp.monitoring.tests\gui\Monitor.UI.ImportLog\Monitor.UI.ImportLog.Part1

2. Testcase failed from the testsuite with the following exception :
junit.framework.AssertionFailedError: The number of records is not what was expected.Expected number of records: 44
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.assertTrue(Assert.java:20)
	at org.eclipse.tptp.auto.profiling.logging.VerificationHelper.verifyNumberofLogRecords(VerificationHelper.java:49)
	at org.eclipse.tptp.auto.profiling.logging.MonitorUIImportLogPart1.verifyMultiCBELogEvents(MonitorUIImportLogPart1.java:183)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:615)
	at org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIVerificationHook.runTest(AutoGUIVerificationHook.java:97)
	at junit.framework.TestCase.runBare(TestCase.java:130)
	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:120)
	at org.eclipse.hyades.test.common.junit.HyadesTestCase.run(HyadesTestCase.java:172)
	at junit.framework.TestSuite.runTest(TestSuite.java:230)
	at org.eclipse.hyades.test.common.junit.HyadesTestSuite.runTest(HyadesTestSuite.java:457)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at org.eclipse.hyades.test.common.junit.HyadesTestSuite.doRun(HyadesTestSuite.java:425)
	at org.eclipse.hyades.test.common.junit.HyadesTestSuite.run(HyadesTestSuite.java:338)
	at org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIRunner.runVerificaitonHook(AutoGUIRunner.java:1256)
	at org.eclipse.tptp.test.auto.gui.internal.commands.VerificationCommand.playback(VerificationCommand.java:268)
	at org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell$4.run(MacroCommandShell.java:1210)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
	at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:615)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
	at org.eclipse.core.launcher.Main.main(Main.java:30)


More information:
Testcase failed as import of multiple logs failed.

Manual Import with follwing steps also failed with same error.

1.Import all CBE XML logs of org.eclipse.tptp.monitoring.tests\gui\Monitor.UI.ImportLog\Monitor.UI.ImportLog.Resources directory at a time.

 Monitor.UI.ImportLog.Resources\FVT_db2v82_sample_cbe.xml;
 Monitor.UI.ImportLog.Resources\FVT_db2v91_sample.xml;
 Monitor.UI.ImportLog.Resources\FVT_ihsv602_sample_cbe.xml;
 Monitor.UI.ImportLog.Resources\FVT_ihsv61_sample.xml;
 Monitor.UI.ImportLog.Resources\FVT_itds60_sample_cbe.xml;
 Monitor.UI.ImportLog.Resources\FVT_wasv602_sample.xml;
 Monitor.UI.ImportLog.Resources\FVT_wasv61_sample.xml;
 Monitor.UI.ImportLog.Resources\FVT_wcv60_sample.xml;
 Monitor.UI.ImportLog.Resources\FVT_wpsv51_sample_cbe.xml;
 Monitor.UI.ImportLog.Resources\FVT_wpsv60_sample.xml;
 
Error Screenshot attached.
Comment 1 vrushali satpute CLA 2007-08-31 13:33:58 EDT
Created attachment 77489 [details]
Screenshot for multiple log import error
Comment 2 Alex Nan CLA 2007-08-31 18:16:43 EDT
I cannot reproduce this defect. On what machine have you run this test, was it a multithreaded?
Comment 3 Alex Nan CLA 2007-08-31 19:42:07 EDT
I manually ran this test on 3 machines (2 Windows, 1 Linux) and couldn't reproduce it. All of them were not multithreaded machines.
Comment 4 Alex Nan CLA 2007-08-31 19:45:12 EDT
I mean hyperthreading machines (simultaneous mulithreading).
Comment 5 Rohit Shetty CLA 2007-09-05 03:05:42 EDT
Created attachment 77684 [details]
Machine details
Comment 6 Rohit Shetty CLA 2007-09-05 03:07:31 EDT
The failure here is very inconsistent - On one of the machines we got 4 failures (different logs fail every time we do an import) on another machine we get one failure (again same behavior).
Comment 7 Rohit Shetty CLA 2007-09-05 05:29:30 EDT
Alex,
when you perform this manually - you would need to launch all the imports simultaneously to get this error.
Comment 8 Alex Nan CLA 2007-09-05 10:08:34 EDT
This is what I did Rohit, I imported all log files that you specified in one log set.
Comment 9 Alex Nan CLA 2007-09-08 13:08:42 EDT
I was able to reproduce the problem on a dual ore machine.
Comment 10 Eric Labadie CLA 2007-09-12 16:06:33 EDT
This is required from the AC perspective.
Comment 11 Alex Nan CLA 2008-01-23 00:39:17 EST
Rohit, please take a look...
Comment 12 Rohit Shetty CLA 2008-02-06 07:17:56 EST
Created attachment 88985 [details]
Patch
Comment 13 Rohit Shetty CLA 2008-02-07 00:22:43 EST
Fixed.
Comment 14 Alex Nan CLA 2008-02-07 10:16:17 EST
Raising to major since it's failing a test case.
Comment 15 Alex Nan CLA 2008-02-07 10:22:18 EST
Need PMC approval to include it in i5.
Comment 16 Alex Nan CLA 2008-02-07 10:40:13 EST
Patch reviewed and tested. PMC approval granted.
Comment 17 Paul Slauenwhite CLA 2009-06-30 13:17:22 EDT
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.