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

sanity/client/SwingSet/src/ButtonDemoScreenshotTest.java Fails with timeout

XMLWordPrintable

      java version "10-ea"
      Java(TM) SE Runtime Environment (build 10-ea+39)
      Java HotSpot(TM) 64-Bit Server VM (build 10-ea+39, mixed mode)

      Mac_OSX 10.12.0

      #Test Results (version 2)
      #Tue Jan 23 17:14:27 MSK 2018

      [TestNG] Running:
        sanity/client/SwingSet/src/ButtonDemoScreenshotTest.java

      config ButtonDemoScreenshotTest.init(): success
      Using org.netbeans.jemmy.drivers.APIDriverInstaller driver installer
      Trace:
      Start to wait frame "Frame with title "JButton Demo"" opened
      Trace:
      Frame "Frame with title "JButton Demo"" has been opened in 9 milliseconds
          javax.swing.JFrame[frame0,0,23,458x222,layout=java.awt.BorderLayout,title=JButton Demo,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,0,22,458x200,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]
      Saving screenshot to /export/home/gtee/swingsanity/results/run_78/jdk_client_sanity/JTwork/sanity/client/SwingSet/src/ButtonDemoScreenshotTest/waitImageIsStill0.png
      Saving screenshot to /export/home/gtee/swingsanity/results/run_78/jdk_client_sanity/JTwork/sanity/client/SwingSet/src/ButtonDemoScreenshotTest/waitImageIsStill1.png
      Trace:
      Start to wait action "Wait Any javax.swing.JButton loaded (ComponentOperator.WaitComponentTimeout)"
      Trace:
      "Wait Any javax.swing.JButton loaded (ComponentOperator.WaitComponentTimeout)" action has been produced in 59 milliseconds with result
          : javax.swing.JButton[,65,33,75x29,alignmentX=0.0,alignmentY=0.5,border=com.apple.laf.AquaButtonBorder$Dynamic@18db341f,flags=288,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=0,left=2,bottom=0,right=2],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=false,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=Do it,defaultCapable=true]
      Saving screenshot to /export/home/gtee/swingsanity/results/run_78/jdk_client_sanity/JTwork/sanity/client/SwingSet/src/ButtonDemoScreenshotTest/button0.png
      Saving screenshot to /export/home/gtee/swingsanity/results/run_78/jdk_client_sanity/JTwork/sanity/client/SwingSet/src/ButtonDemoScreenshotTest/button0_pressed.png
      disposeAllWindows
      test ButtonDemoScreenshotTest.test(): failure
      org.netbeans.jemmy.TimeoutExpiredException: Wait "Button with new image" state to be reached (ComponentOperator.WaitStateTimeout)
      at org.netbeans.jemmy.Waiter.waitAction(Waiter.java:208)
      at org.netbeans.jemmy.operators.Operator.waitState(Operator.java:714)
      at ButtonDemoScreenshotTest.checkButton(ButtonDemoScreenshotTest.java:97)
      at ButtonDemoScreenshotTest.test(ButtonDemoScreenshotTest.java:80)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
      at org.testng.TestRunner.privateRun(TestRunner.java:773)
      at org.testng.TestRunner.run(TestRunner.java:623)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
      at org.testng.SuiteRunner.run(SuiteRunner.java:259)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
      at org.testng.TestNG.run(TestNG.java:1018)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.base/java.lang.Thread.run(Thread.java:844)

      ===============================================
      sanity/client/SwingSet/src/ButtonDemoScreenshotTest.java
      Total tests run: 1, Failures: 1, Skips: 0
      ===============================================

      ----------System.err:(16/1004)----------
      Error:
      "Wait "Button with new image" state to be reached (ComponentOperator.WaitStateTimeout)" action has not been produced in 60002 milliseconds
      java.lang.Exception: failures: 1
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.base/java.lang.Thread.run(Thread.java:844)

      JavaTest Message: Test threw exception: java.lang.Exception: failures: 1
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.Exception: failures:

        1. button0_pressed.png
          button0_pressed.png
          0.9 kB
        2. button0.png
          button0.png
          0.9 kB
        3. dumpAll.xml
          19 kB
        4. failure.png
          failure.png
          264 kB
        5. waitImageIsStill0.png
          waitImageIsStill0.png
          23 kB
        6. waitImageIsStill1.png
          waitImageIsStill1.png
          23 kB
        7. window0.png
          window0.png
          24 kB

            shurailine Aleksandre Iline
            gpatil Gauri Patil (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: