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

Regression .../AccessibleChoiceTest.html test fails on Windows NT

    XMLWordPrintable

Details

    • tiger
    • x86
    • windows_nt
    • Verified

    Description



      Name: asR10013 Date: 12/18/2002


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.4.2
      Testbase : Regression
      Platform[s] : Windows NT 4.0
      Falling test[s]:
              java/awt/Focus/UnaccessibleChoice/AccessibleChoiceTest.html

      Regression test java/awt/Focus/UnaccessibleChoice/AccessibleChoiceTest.html fails on Windows NT
      using JDK1.4.2 (tested with b02, b10).
      The cause of the failure is that the choice list does not receive focus at the moment when
      VK_DOWN is generated.

      When I inserted a little pause after VK_TAB generation the test passed.

      Here is the modified part of java/awt/Focus/UnaccessibleChoice/AccessibleChoiceTest.java

              // Press Tab key to move focus to Choice
              robot.keyPress(KeyEvent.VK_TAB);
              robot.keyRelease(KeyEvent.VK_TAB);

              robot.waitForIdle(); robot.delay(500); // The test passed with this line inserted

              // Press Down key to select next item in the choice(Motif 2.1)
              // If bug exists we won't be able to do so
              robot.keyPress(KeyEvent.VK_DOWN);
              robot.keyRelease(KeyEvent.VK_DOWN);

      The code above is provided as an illustration and it is up to developers of the test how to fix
      the failure in the best way.

      Test source location:
      =====================
      /java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/java/awt/Focus/UnaccessibleChoice/AccessibleChoiceTest.html

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results/mantis/b10/regtest/win32/winnt4.0_smp_-server_smp_linux-21/workDir/test/java/awt/Focus/UnaccessibleChoice/AccessibleChoiceTest.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-21" -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/java/awt/Focus/UnaccessibleChoice/AccessibleChoiceTest.html"

      --- script end ---

      Test output (jtr part):
      =======================
      ----------System.out:(0/0)----------
      ----------System.err:(5/372)----------
      java.lang.RuntimeException: Choice can't be controlled by keyboard
      at AccessibleChoiceTest.start(AccessibleChoiceTest.java:123)
      at com.sun.javatest.regtest.AppletWrapper$AppletThread.run(AppletWrapper.java:133)
      at java.lang.Thread.run(Thread.java:536)
      STATUS:Failed.Applet thread threw exception: java.lang.RuntimeException: Choice can't be controlled by keyboard
      result: Failed. Execution failed: Applet thread threw exception: java.lang.RuntimeException: Choice can't be controlled by keyboard


      test result: Failed. Execution failed: Applet thread threw exception: java.lang.RuntimeException: Choice can't be controlled by keyboard


      Specific machine info:
      ======================
      Hostname: linux-21
      OS: Windows NT 4.0


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

      Attachments

        Issue Links

          Activity

            People

              son Oleg Sukhodolsky (Inactive)
              alssunw Als Als (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: