Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

abbot.tester
Class RobotTest  view RobotTest download RobotTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byabbot.tester.RobotTest
All Implemented Interfaces:
junit.framework.Test

public class RobotTest
extends junit.framework.TestCase

Unit test to verify Robot operation.

Also add tests here for all known robot bugs (jitter, frame motion, etc.).


Field Summary
private  boolean f1
           
private  boolean f2
           
private  boolean flagOne
           
private  boolean flagTwo
           
private  test.AbbotHelper helper
           
private  Robot robot
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
RobotTest(java.lang.String name)
          Create a new test case with the given name.
 
Method Summary
static void main(java.lang.String[] args)
          Provide for repetitive testing on individual tests.
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
protected  void tearDown()
          Tears down the fixture, for example, close a network connection.
 void testAWTMenuSelection()
           
 void testClick()
          Verify proper click operation.
 void testClickAt()
           
 void testClickPopup()
           
 void testClickTertiary()
           
 void testFindFocusOwner()
           
 void testFocusMultipleFrames()
           
 void testFocusSingleFrame()
           
 void testImageCapture()
          Ensure image capture gets the right image.
 void testKeyString()
          Generate some things which we know we don't have key mappings for.
 void testMenuSelection()
           
 void testMultipleClicks()
          Double clicks.
 void testPlainKey()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

helper

private test.AbbotHelper helper

robot

private Robot robot

f1

private boolean f1

f2

private boolean f2

flagOne

private boolean flagOne

flagTwo

private boolean flagTwo
Constructor Detail

RobotTest

public RobotTest(java.lang.String name)
Create a new test case with the given name.

Method Detail

testImageCapture

public void testImageCapture()
                      throws java.lang.Throwable
Ensure image capture gets the right image.


testAWTMenuSelection

public void testAWTMenuSelection()

testMenuSelection

public void testMenuSelection()

testClick

public void testClick()
Verify proper click operation. You may need to set Robot.mouseReleaseDelay if this fails intermittently.


testMultipleClicks

public void testMultipleClicks()
Double clicks.


testClickAt

public void testClickAt()

testClickPopup

public void testClickPopup()

testClickTertiary

public void testClickTertiary()

testFocusSingleFrame

public void testFocusSingleFrame()

testFocusMultipleFrames

public void testFocusMultipleFrames()

testPlainKey

public void testPlainKey()

testKeyString

public void testKeyString()
Generate some things which we know we don't have key mappings for.


testFindFocusOwner

public void testFindFocusOwner()

setUp

protected void setUp()
Description copied from class: junit.framework.TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.


tearDown

protected void tearDown()
Description copied from class: junit.framework.TestCase
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.


main

public static void main(java.lang.String[] args)
Provide for repetitive testing on individual tests.