| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| +--com.togethersoft.testing.testserver.plugin.visualtest.ComponentInformer | +--com.togethersoft.testing.testserver.plugin.visualtest.TestBase
| Field Summary | |
final static int | L_MBUTTON |
private int | lastClickCount |
private Category | LOG |
final static int | M_MBUTTON |
private ITestAssetRO | myAsset |
private static int | myDelay |
private KeyEvent | myDummyEvent |
private Vector | myEvents |
private Point | myLastMousePosition |
private String | myLastUUID |
private IServerResultListener | myListener |
private Robot | myRobot |
private long | myStartTime |
private static int | myTimeOut |
private UIMap | myUIMap |
private boolean | myUseRobot |
final static int | R_MBUTTON |
| Constructor Summary | |
TestBase(String aName) | |
TestBase() | |
| Method Summary | |
void | closeWindow(String UIID)Closes window identified by UIID |
void | delay(int delay)Delay for delay milliseconds.Override this method to provide your own synchronization with tested application. |
void | eventDispatched(AWTEvent event) |
Vector | getEvents() |
Robot | getRobot() |
protected UIMap | getUIMap() |
private void | initEvents() |
private void | initRobot() |
private void | invokeInDispatch(Runnable runnable) |
void | keyPress(String UIID, int keyCode)Press key at the component |
void | keyRelease(String UIID, int keyCode)Releases key on UIID component denoted by keyCode |
void | mouseClick()Click mouse at the current mouse cursor position |
void | mouseClick(String UIID, int buttons, int clickCount)Click mouse at the current mouse cursor position |
void | mousePress(String UIID, int buttons)Press mouse on UIID component |
void | mouseRelease(String UIID, int buttons)Release mouse on UIID component |
void | moveComponent(String id, int x, int y)Move component to x,y |
void | moveMouse(String id, int x, int y)Move mouse to x,y inside UIID component |
void | performAction(String UUID, String actionCommand, int modifiers)Posts ActionEvent on UUID component |
private String | reflectKey(int keyCode) |
(package private) void | releaseFuncKeys() |
void | resizeComponent(String id, int h, int w)Resize component to h,w |
void | scroll(String UIID, int id, int adjType, int units)Scrolls the scrollable component like ScrollPane by posting AdjustmentEvent |
void | scrollTo(String UIID, int x, int y)Scrolls the scrollable component like ScrollPane by posting AdjustmentEvent |
void | selectItem(String UIID, String item)Selects item from JList or JComboBox |
void | selectListItem(String id, int[] indices)Selects JList items. |
void | setAsset(ITestAssetRO asset) |
void | setTestResultListener(IServerResultListener listener) |
void | setUIMap(UIMap map) |
void | setUseRobot(boolean b) |
abstract void | testVisualScript() |
void | type(String id, char theChar)Type character in id component |
void | type(String id, String text)Type string in id component |
private void | updateScroller(UIMap map, String id) |
void | waitComponent(UIMap map, String id)Waits for id component to appear |
| Methods inherited from class com.togethersoft.testing.testserver.plugin.visualtest.ComponentInformer |
addMenu, findByName, focusTopWindow, getCaption, getComponentBranch, getMenuPosition, getMenus, getRelativePosition, getTopLevelWindows, isParent, quote, removeMenu, restoreWindow, rootByName, startSession |
| Field Detail |
public final static int L_MBUTTON
private int lastClickCount
private Category LOG
public final static int M_MBUTTON
private ITestAssetRO myAsset
private static int myDelay
private KeyEvent myDummyEvent
private Vector myEvents
private Point myLastMousePosition
private String myLastUUID
private IServerResultListener myListener
private Robot myRobot
private long myStartTime
private static int myTimeOut
private UIMap myUIMap
private boolean myUseRobot
public final static int R_MBUTTON
| Constructor Detail |
public TestBase(String aName)
public TestBase()
| Method Detail |
public void closeWindow(String UIID)
public void delay(int delay)
delay milliseconds.Override this method to provide your own synchronization with tested application.public void eventDispatched(AWTEvent event)
public Vector getEvents()
public Robot getRobot()
protected UIMap getUIMap()
private void initEvents()
private void initRobot()
private void invokeInDispatch(Runnable runnable)
throws java.lang.InterruptedException,
java.lang.reflect.InvocationTargetException
public void keyPress(String UIID, int keyCode)
keyPress("OK",KeyEvent.VK_ENTER);
public void keyRelease(String UIID, int keyCode)
public void mouseClick()
public void mouseClick(String UIID, int buttons, int clickCount)
mouseClick("OK",L_MBUTTON,1);
mouseClick("OK",L_MBUTTON,2); // double click
mouseClick("OK",L_MBUTTON,2); // click
public void mousePress(String UIID, int buttons)
public void mouseRelease(String UIID, int buttons)
public void moveComponent(String id, int x, int y)
throws InvalidUIStateException
public void moveMouse(String id, int x, int y)
throws InvalidUIStateException
public void performAction(String UUID, String actionCommand, int modifiers)
private String reflectKey(int keyCode)
void releaseFuncKeys()
public void resizeComponent(String id, int h, int w)
throws InvalidUIStateException
public void scroll(String UIID, int id, int adjType, int units)
public void scrollTo(String UIID, int x, int y)
public void selectItem(String UIID, String item)
public void selectListItem(String id, int[] indices)
public void setAsset(ITestAssetRO asset)
public void setTestResultListener(IServerResultListener listener)
public void setUIMap(UIMap map)
public void setUseRobot(boolean b)
public abstract void testVisualScript()
public void type(String id, char theChar)
id componentpublic void type(String id, String text)
id componentprivate void updateScroller(UIMap map, String id)
public void waitComponent(UIMap map, String id)
id component to appear| Association Links |
to Class com.togethersoft.testing.testserver.plugin.visualtest.UIMap
to Class java.util.Vector
to Class java.awt.Robot
to Class java.awt.Point
to Class java.lang.String
to Class com.togethersoft.testing.testserver.IServerResultListener
to Class com.togethersoft.testing.shared.ITestAssetRO
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||