Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4819698

RegTest-test javax/swing/JPopupMenu/PopupTest/PopupTester.java fails

XMLWordPrintable

    • tiger
    • x86
    • linux, solaris_8
    • Verified



      Name: iaR10016 Date: 02/18/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.4.2-b16, b14, b10, b09, etc.
      Testbase : RegTest-test
      Platform[s] : Solaris 8 (x86), Solaris 9 (sparc), RedHat Linux 7.3
      switch/Mode : -client
      Falling tests : javax/swing/JPopupMenu/PopupTest/PopupTester.java

      It looks like javax/swing/JPopupMenu/PopupTest/PopupTester.java incorrectly uses
      robot and so fails because of synchronization problems.

      The test fails one time from three approximatelly on any platform.
      The test fails with different error messages even if it is executed on the same machine.

      Please, see also bug 4692733.

      Test source location:
      =====================
      /java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/javax/swing/JPopupMenu/PopupTest/PopupTester.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results/mantis/b16/regtest/x86/s8_-client_linux-10/workDir/test/javax/swing/JPopupMenu/PopupTest/PopupTester.jtr
      /net/jtgb4u4c.sfbay/export/sail15/results/mantis/b14/regtest/linux/suse8.0_gnome_-client_linux-19/workDir/test/javax/swing/JPopupMenu/PopupTest/PopupTester.jtr
      /net/jtgb4u4c.sfbay/export/sail15/results/mantis/b14/regtest/linux/turbo_single_gnome_-client_linux-4/workDir/test/javax/swing/JPopupMenu/PopupTest/PopupTester.jtr
      /net/jtgb4u4c.sfbay/export/sail15/results/mantis/b10/regtest/sparc/sol7_sparc-client_novo70/workDir/test/javax/swing/JPopupMenu/PopupTest/PopupTester.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its
      JT_HOME, JAVA_HOME and TEST_BASE_PATH variables):

      --- script start ---
      #!/bin/sh

      JT_HOME="/net/linux-15/export/home/java/jct"
      JAVA_HOME="/net/linux-15/export/home/java/jdk1.4.2/x86"
      TEST_BASE_PATH="/net/linux-15/export/home/java/regtest/test"
      RESULT_DIR=`pwd`
      WORK_DIR=$RESULT_DIR/workDir/test
      REPORT_DIR=$RESULT_DIR/reportDir
      CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar:$JT_HOME/jemmy/jemmy.jar"

      mkdir -p $WORK_DIR/scratch 2>&1
      mkdir -p $WORK_DIR/jtData 2>&1
      mkdir -p $REPORT_DIR 2>&1
      cd $WORK_DIR/scratch

      $JAVA_HOME/bin/java -cp $CLASSPATH -DenvVars=TESTJAVAHOME=$JAVA_HOME,DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-10" -Dprogram=jtreg com.sun.javatest.regtest.Main -a -v default -batch -params -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" "$TEST_BASE_PATH"/javax/swing/JPopupMenu/PopupTest/PopupTester.java
      --- script end ---

      Script output:
      ==============
      ...
      JavaTest HTTPd - Success, active on port 1903
      JavaTest HTTPd server available at http://129.144.234.220:1903/
      runner starting test: javax/swing/JPopupMenu/PopupTest/PopupTester.java
      runner finished test: javax/swing/JPopupMenu/PopupTest/PopupTester.java
      Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Some test cases failed
      Test results: failed: 1
      Report written to /net/linux-15/export/home/store/users/ira/regtest/test/4621535/reportDir/report.html
      Results written to /net/linux-15/export/home/store/users/ira/regtest/test/4621535/workDir/test
      Error: Some tests failed or other problems occurred.
      ...

      Test output (jtr part):
      =======================
      ...
      ----------System.out:(0/0)----------
      ----------System.err:(342/10818)----------
      Testing started
      *** Setting environment: Heavyweight popups inside JFrame
      --- Running tcArrowsInMenu
      > mouse moved to button
      > mouse click
      > hit key F10
      ERROR: Test failed with TestFailedException: Menu1 isn't visible at
      --- Running tcSpaceEnterInMenu
      > mouse moved to button
      > mouse click
      > hit key Alt-1
      ERROR: Test failed with TestFailedException: Menu1 isn't visible at
      --- Running tcMnemonicsInMenu
      > mouse moved to button
      > mouse click
      > hit key Alt-1
      > hit key 4
      ERROR: Test failed with TestFailedException: item 4 hasn't been activated at
      --- Running tcMouseInMenu
      > mouse moved to button
      > mouse click
      > mouse moved to Menu1
      > mouse click
      > mouse moved to Submenu1-1
      > mouse moved to item 4
      > mouse moved to Menu2
      > mouse click
      > mouse moved to Menu1
      > mouse click
      > mouse moved to label
      > mouse click
      --- Running tcMouseInMenuItems
      > mouse moved to button
      > mouse click
      > mouse moved to Menu1
      > mouse click
      > mouse moved to item 1
      > mouse moved to item 2
      > mouse moved to item 3
      > mouse moved to item 4
      > mouse moved to item 5
      > mouse moved to Submenu1-1
      > mouse moved to item 1
      > mouse moved to item 2
      > mouse moved to item 3
      > mouse moved to item 4
      > mouse moved to item 5
      > mouse moved to Submenu1-2
      > mouse moved to item 4
      > mouse click
      < menu item chosen: item 4
      --- Running tcSpaceEnterInPopup
      > mouse moved to button
      > mouse click
      > hit key Ctrl-Down
      ERROR: Test failed with TestFailedException: Popup menu isn't visible at
      --- Running tcMouseInPopup
      > mouse moved to button
      > mouse click
      > hit key Ctrl-Down
      > mouse moved to item 1
      ERROR: Test failed because of an exception: component must be showing on the screen to determine its location
      --- Running tcEditableCombo
      > mouse moved to Editable combo box
      > mouse click
      > hit key Down
      ERROR: Test failed with TestFailedException: Combo popup is not shown at
      --- Running tcNonEditableCombo
      > mouse moved to Editable combo box
      > mouse click
      > hit key Tab
      > hit key Down
      ERROR: Test failed with TestFailedException: Combo popup is not shown at
      *** Setting environment: Lightweight popups inside JFrame
      --- Running tcArrowsInMenu
      > mouse moved to button
      > mouse click
      > hit key F10
      ERROR: Test failed with TestFailedException: Menu1 isn't visible at
      --- Running tcSpaceEnterInMenu
      > mouse moved to button
      > mouse click
      > hit key Alt-1
      ERROR: Test failed with TestFailedException: Menu1 isn't visible at
      --- Running tcMnemonicsInMenu
      > mouse moved to button
      > mouse click
      > hit key Alt-1
      > hit key 4
      ERROR: Test failed with TestFailedException: item 4 hasn't been activated at
      --- Running tcMouseInMenu
      > mouse moved to button
      > mouse click
      > mouse moved to Menu1
      > mouse click
      > mouse moved to Submenu1-1
      > mouse moved to item 4
      > mouse moved to Menu2
      > mouse click
      > mouse moved to Menu1
      > mouse click
      > mouse moved to label
      > mouse click
      --- Running tcMouseInMenuItems
      > mouse moved to button
      > mouse click
      > mouse moved to Menu1
      > mouse click
      > mouse moved to item 1
      > mouse moved to item 2
      > mouse moved to item 3
      > mouse moved to item 4
      > mouse moved to item 5
      > mouse moved to Submenu1-1
      > mouse moved to item 1
      > mouse moved to item 2
      > mouse moved to item 3
      > mouse moved to item 4
      > mouse moved to item 5
      > mouse moved to Submenu1-2
      > mouse moved to item 4
      > mouse click
      < menu item chosen: item 4
      --- Running tcSpaceEnterInPopup
      > mouse moved to button
      > mouse click
      > hit key Ctrl-Down
      ERROR: Test failed with TestFailedException: Popup menu isn't visible at
      --- Running tcMouseInPopup
      > mouse moved to button
      > mouse click
      > hit key Ctrl-Down
      > mouse moved to item 1
      ERROR: Test failed because of an exception: component must be showing on the screen to determine its location
      --- Running tcEditableCombo
      > mouse moved to Editable combo box
      > mouse click
      > hit key Down
      ERROR: Test failed with TestFailedException: Combo popup is not shown at
      --- Running tcNonEditableCombo
      > mouse moved to Editable combo box
      > mouse click
      > hit key Tab
      > hit key Down
      ERROR: Test failed with TestFailedException: Combo popup is not shown at
      *** Setting environment: Heavyweight popups inside JInternalFrame
      --- Running tcArrowsInMenu
      > mouse moved to button
      > mouse click
      > hit key F10
      ERROR: Test failed with TestFailedException: Menu1 isn't visible at
      --- Running tcSpaceEnterInMenu
      > mouse moved to button
      > mouse click
      > hit key Alt-1
      ERROR: Test failed with TestFailedException: Menu1 isn't visible at
      --- Running tcMnemonicsInMenu
      > mouse moved to button
      > mouse click
      > hit key Alt-1
      > hit key 4
      ERROR: Test failed with TestFailedException: item 4 hasn't been activated at
      --- Running tcMouseInMenu
      > mouse moved to button
      > mouse click
      > mouse moved to Menu1
      > mouse click
      > mouse moved to Submenu1-1
      > mouse moved to item 4
      > mouse moved to Menu2
      > mouse click
      > mouse moved to Menu1
      > mouse click
      > mouse moved to label
      > mouse click
      --- Running tcMouseInMenuItems
      > mouse moved to button
      > mouse click
      > mouse moved to Menu1
      > mouse click
      > mouse moved to item 1
      > mouse moved to item 2
      > mouse moved to item 3
      > mouse moved to item 4
      > mouse moved to item 5
      > mouse moved to Submenu1-1
      > mouse moved to item 1
      > mouse moved to item 2
      > mouse moved to item 3
      > mouse moved to item 4
      > mouse moved to item 5
      > mouse moved to Submenu1-2
      > mouse moved to item 4
      > mouse click
      < menu item chosen: item 4
      --- Running tcSpaceEnterInPopup
      > mouse moved to button
      > mouse click
      > hit key Ctrl-Down
      ERROR: Test failed with TestFailedException: Popup menu isn't visible at
      --- Running tcMouseInPopup
      > mouse moved to button
      > mouse click
      > hit key Ctrl-Down
      > mouse moved to item 1
      ERROR: Test failed because of an exception: component must be showing on the screen to determine its location
      --- Running tcEditableCombo
      > mouse moved to Editable combo box
      > mouse click
      > hit key Down
      ERROR: Test failed with TestFailedException: Combo popup is not shown at
      --- Running tcNonEditableCombo
      > mouse moved to Editable combo box
      > mouse click
      > hit key Tab
      > hit key Down
      ERROR: Test failed with TestFailedException: Combo popup is not shown at
      *** Setting environment: Lightweight popups inside JInternalFrame
      --- Running tcArrowsInMenu
      > mouse moved to button
      > mouse click
      > hit key F10
      ERROR: Test failed with TestFailedException: Menu1 isn't visible at
      --- Running tcSpaceEnterInMenu
      > mouse moved to button
      > mouse click
      > hit key Alt-1
      ERROR: Test failed with TestFailedException: Menu1 isn't visible at
      --- Running tcMnemonicsInMenu
      > mouse moved to button
      > mouse click
      > hit key Alt-1
      > hit key 4
      ERROR: Test failed with TestFailedException: item 4 hasn't been activated at
      --- Running tcMouseInMenu
      > mouse moved to button
      > mouse click
      > mouse moved to Menu1
      > mouse click
      > mouse moved to Submenu1-1
      > mouse moved to item 4
      > mouse moved to Menu2
      > mouse click
      > mouse moved to Menu1
      > mouse click
      > mouse moved to label
      > mouse click
      --- Running tcMouseInMenuItems
      > mouse moved to button
      > mouse click
      > mouse moved to Menu1
      > mouse click
      > mouse moved to item 1
      > mouse moved to item 2
      > mouse moved to item 3
      > mouse moved to item 4
      > mouse moved to item 5
      > mouse moved to Submenu1-1
      > mouse moved to item 1
      > mouse moved to item 2
      > mouse moved to item 3
      > mouse moved to item 4
      > mouse moved to item 5
      > mouse moved to Submenu1-2
      > mouse moved to item 4
      > mouse click
      < menu item chosen: item 4
      --- Running tcSpaceEnterInPopup
      > mouse moved to button
      > mouse click
      > hit key Ctrl-Down
      ERROR: Test failed with TestFailedException: Popup menu isn't visible at
      --- Running tcMouseInPopup
      > mouse moved to button
      > mouse click
      > hit key Ctrl-Down
      > mouse moved to item 1
      ERROR: Test failed because of an exception: component must be showing on the screen to determine its location
      --- Running tcEditableCombo
      > mouse moved to Editable combo box
      > mouse click
      > hit key Down
      ERROR: Test failed with TestFailedException: Combo popup is not shown at
      --- Running tcNonEditableCombo
      > mouse moved to Editable combo box
      > mouse click
      > hit key Tab
      > hit key Down
      ERROR: Test failed with TestFailedException: Combo popup is not shown at
      Testing finished
      The following testcases failed:
      In environment: Heavyweight popups inside JFrame
        tcArrowsInMenu
        tcSpaceEnterInMenu
        tcMnemonicsInMenu
        tcSpaceEnterInPopup
        tcMouseInPopup
        tcEditableCombo
        tcNonEditableCombo
      In environment: Lightweight popups inside JFrame
        tcArrowsInMenu
        tcSpaceEnterInMenu
        tcMnemonicsInMenu
        tcSpaceEnterInPopup
        tcMouseInPopup
        tcEditableCombo
        tcNonEditableCombo
      In environment: Heavyweight popups inside JInternalFrame
        tcArrowsInMenu
        tcSpaceEnterInMenu
        tcMnemonicsInMenu
        tcSpaceEnterInPopup
        tcMouseInPopup
        tcEditableCombo
        tcNonEditableCombo
      In environment: Lightweight popups inside JInternalFrame
        tcArrowsInMenu
        tcSpaceEnterInMenu
        tcMnemonicsInMenu
        tcSpaceEnterInPopup
        tcMouseInPopup
        tcEditableCombo
        tcNonEditableCombo
      To rerun failed testcases, run:
      java PopupTester -ohw tcArrowsInMenu tcSpaceEnterInMenu tcMnemonicsInMenu tcSpaceEnterInPopup tcMouseInPopup tcEditableCombo tcNonEditableCombo -olw tcArrowsInMenu tcSpaceEnterInMenu tcMnemonicsInMenu

      tcSpaceEnterInPopup tcMouseInPopup tcEditableCombo tcNonEditableCombo -ihw tcArrowsInMenu tcSpaceEnterInMenu tcMnemonicsInMenu tcSpaceEnterInPopup tcMouseInPopup tcEditableCombo tcNonEditableCombo
      -ilw tcArrowsInMenu tcSpaceEnterInMenu tcMnemonicsInMenu tcSpaceEnterInPopup tcMouseInPopup tcEditableCombo tcNonEditableCombo
      To rerun failed testcases, run:
      java PopupTester -ohw tcArrowsInMenu tcSpaceEnterInMenu tcMnemonicsInMenu tcSpaceEnterInPopup tcMouseInPopup tcEditableCombo tcNonEditableCombo -olw tcArrowsInMenu tcSpaceEnterInMenu tcMnemonicsInMenu

      tcSpaceEnterInPopup tcMouseInPopup tcEditableCombo tcNonEditableCombo -ihw tcArrowsInMenu tcSpaceEnterInMenu tcMnemonicsInMenu tcSpaceEnterInPopup tcMouseInPopup tcEditableCombo tcNonEditableCombo
      -ilw tcArrowsInMenu tcSpaceEnterInMenu tcMnemonicsInMenu tcSpaceEnterInPopup tcMouseInPopup tcEditableCombo tcNonEditableCombo
      java.lang.RuntimeException: Some test cases failed
              at PopupTester.report(PopupTester.java:931)
              at PopupTester.test(PopupTester.java:799)
              at PopupTester.main(PopupTester.java:938)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
              at java.lang.Thread.run(Thread.java:534)
      JavaTest Message: Test threw exception: java.lang.RuntimeException: Some test cases failed
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Some test cases failed
      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Some test cases failed

      test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Some test cases failed
      ...

      Specific machine info:
      ======================
      Hostname: linux-10
      OS: Solaris 8 (x86)

      Hostname: linux-19
      OS: RedHat Linux 7.3

      ======================================================================

            kizune Alexander Zuev
            irasunw Ira Ira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: