Java Code Examples for org.netbeans.jemmy.operators.JComboBoxOperator#pushKey()
The following examples show how to use
org.netbeans.jemmy.operators.JComboBoxOperator#pushKey() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ViewsTest.java From netbeans with Apache License 2.0 | 6 votes |
public void testViewsHeapWalker1() { EditorOperator eo = new EditorOperator("MemoryView.java"); new EventTool().waitNoEvent(500); Utilities.toggleBreakpoint(eo, 92); Utilities.startDebugger(); Utilities.checkConsoleLastLineForText("Thread main stopped at MemoryView.java:92"); Utilities.showDebuggerView(Utilities.classesViewTitle); TopComponentOperator tco = new TopComponentOperator(Utilities.classesViewTitle); JTableOperator jTableOperator = new JTableOperator(tco); JComboBoxOperator filter = new JComboBoxOperator(tco); filter.clearText(); filter.enterText("example"); filter.pushKey(KeyEvent.VK_ENTER); new EventTool().waitNoEvent(500); assertEquals("MemoryView class is not in classes", "examples.advanced.MemoryView", Utilities.removeTags(jTableOperator.getValueAt(0,0).toString())); assertEquals("Instances number is wrong", "1 (0%)", Utilities.removeTags(jTableOperator.getValueAt(0,2).toString())); }
Example 2
Source File: ViewsTest.java From netbeans with Apache License 2.0 | 6 votes |
public void testViewsHeapWalker2() { EditorOperator eo = new EditorOperator("MemoryView.java"); new EventTool().waitNoEvent(500); Utilities.toggleBreakpoint(eo, 92); Utilities.startDebugger(); Utilities.checkConsoleLastLineForText("Thread main stopped at MemoryView.java:92"); Utilities.showDebuggerView(Utilities.classesViewTitle); TopComponentOperator tco = new TopComponentOperator(Utilities.classesViewTitle); JTableOperator jTableOperator = new JTableOperator(tco); JComboBoxOperator filter = new JComboBoxOperator(tco); JPopupMenuOperator popup = new JPopupMenuOperator(jTableOperator.callPopupOnCell(0, 0)); popup.pushMenuNoBlock("Show in Instances View"); filter.clearText(); filter.pushKey(KeyEvent.VK_ENTER); new EventTool().waitNoEvent(500); }
Example 3
Source File: ManageInspectionsOperatot.java From netbeans with Apache License 2.0 | 5 votes |
public void setConfiguration(String s) { System.out.println(">>>>>>>>>>>>>>>>>>>> (1)"); JComboBoxOperator comboBox = new JComboBoxOperator(this, 1); System.out.println(">>>>>>>>>>>>>>>>>>>> (2)"); comboBox.pushKey(KeyEvent.VK_N); System.out.println(">>>>>>>>>>>>>>>>>>>> (3)"); }
Example 4
Source File: ManageInspectionsOperatot.java From netbeans with Apache License 2.0 | 5 votes |
public void createNewConfiguration(String s) { JComboBoxOperator comboBox = new JComboBoxOperator(this, 1); comboBox.pushKey(KeyEvent.VK_N); new EventTool().waitNoEvent(500); for (int i = 0; i < 10; i++) { comboBox.pushKey(KeyEvent.VK_BACK_SPACE); new EventTool().waitNoEvent(100); } new EventTool().waitNoEvent(100); comboBox.typeText(s); comboBox.pushKey(KeyEvent.VK_ENTER); }