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

[TEST_BUG] sanity/client/SwingSet/src/TextFieldDemoTest.java Failed with timeout

XMLWordPrintable

    • b04
    • generic

      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)
      #Thu Jan 18 00:01:02 MSK 2018

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

      Using org.netbeans.jemmy.drivers.APIDriverInstaller driver installer
      Trace:
      Start to wait frame "Frame with title "TextField Demo"" opened
      Trace:
      Frame "Frame with title "TextField Demo"" has been opened in 2 milliseconds
          javax.swing.JFrame[frame0,240,198,800x600,layout=java.awt.BorderLayout,title=TextField Demo,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,0,22,800x578,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]
      Waiting for "Component with the class of class com.sun.swingset3.demos.textfield.JHistoryTextField" subcomponent
      Trace:
      Start to wait action "Wait for "Component with the class of class com.sun.swingset3.demos.textfield.JHistoryTextField" subcomponent to be displayed (ComponentOperator.WaitComponentTimeout)"
      Trace:
      "Wait for "Component with the class of class com.sun.swingset3.demos.textfield.JHistoryTextField" subcomponent to be displayed (ComponentOperator.WaitComponentTimeout)" action has been produced in 66 milliseconds with result
          : com.sun.swingset3.demos.textfield.JHistoryTextField[,10,31,780x26,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.apple.laf.AquaTextFieldBorder@6f3a1345,flags=288,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=0,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=0,left=0,bottom=0,right=0],selectedTextColor=com.apple.laf.AquaImageFactory$SystemColorProxy[r=0,g=0,b=0],selectionColor=com.apple.laf.AquaImageFactory$SystemColorProxy[r=164,g=205,b=255],columns=0,columnWidth=0,command=,horizontalAlignment=LEADING]
      Typing text "cat" from 0 position in text component
          : com.sun.swingset3.demos.textfield.JHistoryTextField[,10,31,780x26,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.apple.laf.AquaTextFieldBorder@6f3a1345,flags=288,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=0,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=0,left=0,bottom=0,right=0],selectedTextColor=com.apple.laf.AquaImageFactory$SystemColorProxy[r=0,g=0,b=0],selectionColor=com.apple.laf.AquaImageFactory$SystemColorProxy[r=164,g=205,b=255],columns=0,columnWidth=0,command=,horizontalAlignment=LEADING]
      Wait "cat" text starting from -1 position in component
          : com.sun.swingset3.demos.textfield.JHistoryTextField[,10,31,780x26,invalid,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.apple.laf.AquaTextFieldBorder@6f3a1345,flags=288,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=0,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=0,left=0,bottom=0,right=0],selectedTextColor=com.apple.laf.AquaImageFactory$SystemColorProxy[r=0,g=0,b=0],selectionColor=com.apple.laf.AquaImageFactory$SystemColorProxy[r=164,g=205,b=255],columns=0,columnWidth=0,command=,horizontalAlignment=LEADING]
      Wait "category" text in component
          : com.sun.swingset3.demos.textfield.JHistoryTextField[,10,31,780x26,invalid,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.apple.laf.AquaTextFieldBorder@6f3a1345,flags=288,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=0,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=0,left=0,bottom=0,right=0],selectedTextColor=com.apple.laf.AquaImageFactory$SystemColorProxy[r=0,g=0,b=0],selectionColor=com.apple.laf.AquaImageFactory$SystemColorProxy[r=164,g=205,b=255],columns=0,columnWidth=0,command=,horizontalAlignment=LEADING]
      Waiting for "Component with the class of class javax.swing.JFormattedTextField" subcomponent
      Trace:
      Start to wait action "Wait for "Component with the class of class javax.swing.JFormattedTextField" subcomponent to be displayed (ComponentOperator.WaitComponentTimeout)"
      Trace:
      "Wait for "Component with the class of class javax.swing.JFormattedTextField" subcomponent to be displayed (ComponentOperator.WaitComponentTimeout)" action has been produced in 1 milliseconds with result
          : javax.swing.JFormattedTextField[,0,1,90x26,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.apple.laf.AquaTextFieldBorder@6f3a1345,flags=288,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=0,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=0,left=0,bottom=0,right=0],selectedTextColor=com.apple.laf.AquaImageFactory$SystemColorProxy[r=0,g=0,b=0],selectionColor=com.apple.laf.AquaImageFactory$SystemColorProxy[r=164,g=205,b=255],columns=0,columnWidth=0,command=,horizontalAlignment=LEADING]
      Trace:
      Start to wait action "Wait AbstractButton with text "Go" loaded (ComponentOperator.WaitComponentTimeout)"
      Trace:
      "Wait AbstractButton with text "Go" loaded (ComponentOperator.WaitComponentTimeout)" action has been produced in 30 milliseconds with result
          : javax.swing.JButton[,95,0,75x29,alignmentX=0.0,alignmentY=0.5,border=com.apple.laf.AquaButtonBorder$Dynamic@794de165,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=Go,defaultCapable=true]
      Trace:
      Start to wait action "Wait Any javax.swing.JLabel loaded (ComponentOperator.WaitComponentTimeout)"
      Trace:
      "Wait Any javax.swing.JLabel loaded (ComponentOperator.WaitComponentTimeout)" action has been produced in 20 milliseconds with result
          : javax.swing.JLabel[,0,0,0x0,alignmentX=0.0,alignmentY=0.0,border=,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,horizontalAlignment=LEADING,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=,verticalAlignment=CENTER,verticalTextPosition=CENTER]
      Push button
          :javax.swing.JButton[,95,0,75x29,alignmentX=0.0,alignmentY=0.5,border=com.apple.laf.AquaButtonBorder$Dynamic@794de165,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=Go,defaultCapable=true]
      Wait "Thursday" text in component
          : javax.swing.JLabel[,175,6,70x16,alignmentX=0.0,alignmentY=0.0,border=,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,horizontalAlignment=LEADING,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=Wednesday,verticalAlignment=CENTER,verticalTextPosition=CENTER]
      disposeAllWindows
      test TextFieldDemoTest.test(): failure
      org.netbeans.jemmy.TimeoutExpiredException: Wait "JLabel with text "Thursday"" 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 org.netbeans.jemmy.operators.JLabelOperator.waitText(JLabelOperator.java:261)
      at TextFieldDemoTest.dateTextField(TextFieldDemoTest.java:107)
      at TextFieldDemoTest.test(TextFieldDemoTest.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/TextFieldDemoTest.java
      Total tests run: 1, Failures: 1, Skips: 0
      ===============================================

      ----------System.err:(16/1010)----------
      Error:
      "Wait "JLabel with text "Thursday"" state to be reached (ComponentOperator.WaitStateTimeout)" action has not been produced in 60009 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

        1. failure.png
          failure.png
          670 kB
        2. dumpAll.xml
          19 kB
        3. window0.png
          window0.png
          17 kB

            akolarkunnu Abdul Kolarkunnu (Inactive)
            gpatil Gauri Patil (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: