Top-Q / jsystem

JSystem is a professional open-source framework for writing and managing automated system tests.
http://www.jsystem.org/
Apache License 2.0
45 stars 48 forks source link

Getting View Exception when There are More tabs that screen can show #349

Open NirBY opened 4 years ago

NirBY commented 4 years ago

The exception: 02, 2020 10:52:32 AM jsystem.utils.PerformanceUtil endMeasure INFO: Loading scenario: scenarios/SharedNumber/SharedNumberTest_v2.0.1 Took 1.427 seconds. Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: Index: 22, Size: 22 at java.util.ArrayList.rangeCheck(ArrayList.java:657) at java.util.ArrayList.get(ArrayList.java:433) at javax.swing.JTabbedPane.getTitleAt(JTabbedPane.java:1112) at jsystem.treeui.params.ParametersPanel.setActiveTab(ParametersPanel.java:890) at jsystem.treeui.TestInformationTab.setCurrentTest(TestInformationTab.java:344) at jsystem.treeui.TestInformationTab.valueChanged(TestInformationTab.java:551) at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:635) at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1093) at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:294) at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:188) at javax.swing.JTree.setSelectionPath(JTree.java:1641) at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(BasicTreeUI.java:2393) at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:3609) at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.java:3548) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:280) at java.awt.Component.processMouseEvent(Component.java:6536) at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) at jsystem.treeui.teststable.TestsTableController$OurTree.processMouseEvent(TestsTableController.java:3910) at java.awt.Component.processEvent(Component.java:6304) at java.awt.Container.processEvent(Container.java:2239) at java.awt.Component.dispatchEventImpl(Component.java:4889) at java.awt.Container.dispatchEventImpl(Container.java:2297) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4532) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476) at java.awt.Container.dispatchEventImpl(Container.java:2283) at java.awt.Window.dispatchEventImpl(Window.java:2746) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84) at java.awt.EventQueue$4.run(EventQueue.java:733) at java.awt.EventQueue$4.run(EventQueue.java:731) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) 02, 2020 10:52:37 AM jsystem.utils.PerformanceUtil endMeasure INFO: Loading scenario: scenarios/SharedNumber/Externals page/5 6 6 1 10 Set Alias to group - call group Took 0.048 seconds. 02, 2020 10:52:38 AM jsystem.treeui.teststable.TestsTableController$3 run SEVERE: Fail to load scenario: scenarios/SharedNumber/Externals page/5 6 6 1 10 Set Alias to group - call group java.lang.IndexOutOfBoundsException: Index: 22, Size: 22 at java.util.ArrayList.rangeCheck(ArrayList.java:657) at java.util.ArrayList.get(ArrayList.java:433) at javax.swing.JTabbedPane.getTitleAt(JTabbedPane.java:1112) at jsystem.treeui.params.ParametersPanel.setActiveTab(ParametersPanel.java:890) at jsystem.treeui.TestInformationTab.setCurrentTest(TestInformationTab.java:344) at jsystem.treeui.TestInformationTab.valueChanged(TestInformationTab.java:551) at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:635) at javax.swing.tree.DefaultTreeSelectionModel.clearSelection(DefaultTreeSelectionModel.java:577) at jsystem.treeui.teststable.TestsTableController.selectScenario(TestsTableController.java:2544) at jsystem.treeui.teststable.TestsTableController$3.run(TestsTableController.java:1639)