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

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

XMLWordPrintable

    • b16
    • x86
    • windows_2000, windows_xp
    • Verified



      Name: iaR10016 Date: 01/16/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.4.2-b12, JDK1.4.1, JDK1.4.0
      Testbase : RegTest-test
      Platform[s] : Windows XP Pro, Windows 2000
                    (passes on Windows NT, Windows ME, Windows 98,
                     Solaris sparc, Solaris x86, RedHat linux 7.3)
      Falling test: javax/swing/JPopupMenu/PopupTest/MenuTester.java

      RegTest-test javax/swing/JPopupMenu/PopupTest/MenuTester.java test fails on JDK1.4.2, JDK1.4.1, JDK1.4.0
      on Windows XP, Windows 2000.

      Please, note that the test passes on Windows ME/NT/98 systems.

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

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results/mantis/b12/regtest/win32/winXP_linux-16/workDir/test/javax/swing/JPopupMenu/PopupTest/MenuTester.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its variables)

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

      RESULT_DIR=`pwd`
      WORK_DIR=$RESULT_DIR/workDir/test
      REPORT_DIR=$RESULT_DIR/reportDir
      JT_HOME="h:/java/jct"
      JAVA_HOME="h:/java/jdk1.4.2/win32"
      TEST_BASE_PATH="h:/java/regtest/test"

      TESTWITH=$JAVA_HOME
      TESTJAVA=$JAVA_HOME

      JTOPTS="-server"
      TESTVMOPTS="-server"

      CLASSPATH="$JT_HOME/classes;$JT_HOME/lib/javatest.jar;$JT_HOME/lib/jtreg.jar"

      export JAVA_HOME
      export JT_HOME
      export TESTWITH
      export CLASSPATH

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

      #rm $WORK_DIR/jtData/ResultCache.jtw 2>&1

      cd $WORK_DIR/scratch

      $JAVA_HOME/bin/java -cp $CLASSPATH $JTOPTS -DenvVars=TESTJAVAHOME=$JAVA_HOME, TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,windir=$windir, PATH=${SHELL%/*},TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-16" -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/MenuTester.java"

      --- script end ---

      Test output (jtr part):
      =======================

      ----------System.out:(0/0)----------
      ----------System.err:(66/1830)----------
      Menu testing starts
      --- Running tcEmptyMenu
      > hit key F10
      > hit key Down
      > hit key Up
      > hit key Escape
      > hit key Alt-E
      > hit key Right
      > hit key Down
      > hit key Down
      > hit key Right
      > hit key Up
      > hit key Down
      > hit key Right
      > hit key Down
      > hit key Up
      > hit key Right
      > hit key Left
      > hit key Right
      > hit key Right
      --- Running tc4213634
      > hit key Alt-M
      --- Running tc4503016
      > hit key Alt-2
      > hit key Down
      > hit key Right
      > hit key Down
      > hit key Up
      > hit key Right
      > hit key Up
      > hit key Down
      > hit key Right
      > hit key Right
      > hit key Left
      > hit key Down
      > hit key Down
      > hit key Right
      > hit key Left
      > hit key Left
      --- Running tcWin2kAltTest
      > hit key Alt-Alt
      > hit key Escape
      > hit key Right
      ERROR: Test failed with TestFailedException: Menu 2 isn't selected at
      Testing finished
      The following testcases failed:
        tcWin2kAltTest
      To rerun failed testcases, run:
      java MenuTester tcWin2kAltTest
      To rerun failed testcases, run:
      java MenuTester tcWin2kAltTest
      java.lang.RuntimeException: Some test cases failed
              at MenuTester.report(MenuTester.java:339)
              at MenuTester.test(MenuTester.java:308)
              at MenuTester.main(MenuTester.java:345)
              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:536)

      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-16
      OS: Windows XP Pro

      Hostname: linux-2
      OS: Windows 2000

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: