java.lang.Object
junit.framework.Assert
junit.framework.TestCase
abbot.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.).
| Fields inherited from class junit.framework.TestCase |
|
| 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 |
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
RobotTest
public RobotTest(java.lang.String name)
- Create a new test case with the given name.
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.