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

JCK interactive: jck13a test api/java_awt/interactive/RobotTests.html fail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.3.1
    • 1.3.1
    • client-libs
    • ladybird
    • x86
    • linux
    • Verified



        The following JCK13a testcases fail under build 1.3.1beta-b08 in RedHat 6.2:
        api/java_awt/interactive/RobotTests.html#RobotTests0001
        api/java_awt/interactive/RobotTests.html#RobotTests0002

        Bug Description:
        1) The getPixelColor() method of Robot class returns wrong color value
           of the pixel. It does not return red and green values.
        2) The createScreenCapture() method returns wrong screen capture.
           It returns only blue part, but red and green does not.

        To reproduce the bug, run script below
        You may need to set JCK and JAVA_HOME.
        -------------------------------------------------------------------------------------
        #!/bin/sh
        SWITCH=${@}
        JAVA_HOME=/usr/local/java/jdk1.3.1/linux-i386
        JCK=/net/jtgb4u4c.eng/export/sail16/JCK/jck13afcs/JCK-runtime-13fcs

        CLASSPATH=${JCK}/classes:${JCK}/javatest.jar
        export CLASSPATH
        executeClass=javasoft.sqe.tests.api.java.awt.interactive.RobotTests

        $JAVA_HOME/bin/java ${SWITCH} -version
        $JAVA_HOME/bin/java ${SWITCH} -client -Xfuture ${executeClass} -platform.robotAvailable true -TestCaseID ALL
        RESULT="$?"
        if [ $RESULT = 95 ]; then
         echo Test passed
        elif [ $RESULT = 97 ]; then
         echo Test failed
        else
         echo Result is $RESULT
        fi
        -------------------------------------------------------------------------------------

              bchristi Brent Christian
              irasunw Ira Ira (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: