Bug 112674 - jdt.text.tests are failing
Summary: jdt.text.tests are failing
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1.1   Edit
Hardware: Other HP-UX
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2005-10-14 13:52 EDT by Sumit Sarkar CLA
Modified: 2007-06-22 10:04 EDT (History)
0 users

See Also:


Attachments
jdt.text.tests result file (64.90 KB, text/html)
2005-10-14 13:54 EDT, Sumit Sarkar CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sumit Sarkar CLA 2005-10-14 13:52:06 EDT
OS/WS/Arch/: HP-UX/motif/ia64_32
JDK version: 1.4.2_09

The following tests are failing:

1.	testMarkTypeOccurrences
2.	testMarkOccurrencesAfterEditorReuse
3.	testMarkMethodOccurrences
4.	testMarkFieldOccurrences
5.	testMarkLocalOccurrences
6.	testMarkMethodExitOccurrences
7.	testMarkMethodExceptionOccurrences
8.	testMarkImplementOccurrences1
9.	testMarkImplementOccurrences3

I tried -clean and -noclean option and ran standalone. But always seeing the
same failures.

Attaching the result html file.
Comment 1 Sumit Sarkar CLA 2005-10-14 13:54:19 EDT
Created attachment 28303 [details]
jdt.text.tests result file
Comment 2 Dani Megert CLA 2005-10-15 06:29:34 EDT
Build id: M20050929-0840

The tests test the occurrence marking feature. They require that the UI of the
machine is not touched and that the focus remains where set by the test. If a
user or some other program (e.g. virus scanner, firewall, etc.) opens/switches
to another window they fail.

Please attach the .log and verify whether occurrence marking normally works on
your machine. We cannot reproduce the failure: the tests run fine on all our
test machines.

See also:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-text-home/development/bug-incomplete.htm
Comment 3 Sumit Sarkar CLA 2005-10-17 15:51:32 EDT
I am running these tests on a VNC window. The UI of the machine was not touched
at all. But always those 9 tests fail. The
eclipse-testing/eclipse/jdt_text_folder/.metadata/.log file looks like following:

!SESSION 2005-10-17 12:33:18.961 -----------------------------------------------
eclipse.buildId=M20050929-0840
java.version=1.4.2.09
java.vendor=Hewlett-Packard Co.
BootLoader constants: OS=hpux, ARCH=ia64_32, WS=motif, NL=en
Framework arguments:  -application org.eclipse.test.uitestapplication
formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,org.eclipse.jdt.text.tests.JdtTextTestSuite.xml
-testPluginName org.eclipse.jdt.text.tests -className
org.eclipse.jdt.text.tests.JdtTextTestSuite
Command-line arguments:  -application org.eclipse.test.uitestapplication -dev
bin -data
/home/sumits/3.1.1/testing/eclipse-testing/test-eclipse/eclipse/jdt_text_folder
formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,org.eclipse.jdt.text.tests.JdtTextTestSuite.xml
-testPluginName org.eclipse.jdt.text.tests -className
org.eclipse.jdt.text.tests.JdtTextTestSuite -os hpux -ws motif -arch ia64_32
-consolelog

!ENTRY org.eclipse.ui 1 0 2005-10-17 12:33:24.135
!MESSAGE Warnings while parsing the commands from the 'org.eclipse.ui.commands'
and 'org.eclipse.ui.actionDefinitions' extension points.
!SUBENTRY 1 org.eclipse.ui 1 0 2005-10-17 12:33:24.136
!MESSAGE Commands should really have a category, not categoryId='':
plug-in='org.eclipse.ui.tests',
commandId='org.eclipse.ui.tests.commands.categoryLessCommand'.

!ENTRY org.eclipse.ui 2 0 2005-10-17 12:33:24.238
!MESSAGE Warnings while parsing the key bindings from the
'org.eclipse.ui.commands' extension point
!SUBENTRY 1 org.eclipse.ui 2 0 2005-10-17 12:33:24.239
!MESSAGE Cannot bind to an undefined command: plug-in='org.eclipse.ui.tests',
commandId='org.eclipse.ui.tests.TestCommandId'.
!SUBENTRY 1 org.eclipse.ui 2 0 2005-10-17 12:33:24.240
!MESSAGE Cannot bind to an undefined command: plug-in='org.eclipse.ui.tests',
commandId='org.eclipse.ui.tests.TestCommandId'.

!ENTRY org.eclipse.ui.workbench 4 2 2005-10-17 12:33:32.500
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.ui.workbench".
!STACK 0
!FORCED BY TEST: this entry is intentional:The workbench should handle hostile
pulldown delegates.
Comment 4 Dani Megert CLA 2005-10-18 03:02:31 EDT
NOTE: in the future please first answer the questions before reopening a bug
(see comment 2).

Try the following:
1) test whether occurrence marking in the Java editor works using the same
workspace and setup (i.e. VNC)
2) watch what's happening when running just those tests, e.g. does the editor
come up? Is some other window appearing which might interfere with the test, etc.
3) if possible try it with a Linux client (i.e. without VNC).

The tests depend on UI events and some remote access software might not work or
might not be configured correctly to handle this. For example we were not able
to make it work using CYGWIN but it works using VNC.
Comment 5 Sumit Sarkar CLA 2005-10-18 13:56:19 EDT
Yes. You are right. I should have answered your question. I think it is a also a
good idea to point a link or web-page from where the user can find out more
about  "occurance marking feature" in Java editor. 

The tests pass when the display was set to a HP-UX workstation, instead of the
VNC. By the way, the same tests pass in 3.1 using same VNC session as 3.1.1. The
vnc server is running on a RedHat linux box.
Comment 6 Dani Megert CLA 2007-06-22 09:59:28 EDT
Get rid of deprecated state.
Comment 7 Dani Megert CLA 2007-06-22 10:04:41 EDT
.