example
Class MyCodeTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byjunit.extensions.abbot.ResolverFixture
              extended byjunit.extensions.abbot.ComponentTestFixture
                  extended byjunit.extensions.abbot.ScriptFixture
                      extended byexample.MyCodeTest
All Implemented Interfaces:
Test

public class MyCodeTest
extends ScriptFixture

Simple example of a ScriptTestSuite. Selects all scripts of the form MyCode-[0-9]*.xml.


Nested Class Summary
 
Nested classes inherited from class junit.extensions.abbot.ComponentTestFixture
ComponentTestFixture.ExceptionCatcher
 
Nested classes inherited from class junit.extensions.abbot.ResolverFixture
ResolverFixture.ComponentMatcher
 
Field Summary
 
Fields inherited from class junit.extensions.abbot.ComponentTestFixture
EVENT_GENERATION_DELAY, POPUP_DELAY, WINDOW_DELAY
 
Constructor Summary
MyCodeTest(String name)
          Name is the name of a script filename.
 
Method Summary
static void main(String[] args)
          Assumes each argument is an Abbot script.
static Test suite()
          Return the set of scripts we want to run.
 
Methods inherited from class junit.extensions.abbot.ScriptFixture
runTest
 
Methods inherited from class junit.extensions.abbot.ComponentTestFixture
fixtureSetUp, fixtureTearDown, getRobot, getWindowTracker, hideWindow, installPopup, isShowing, runBare, showFrame, showFrame, showModalDialog, showPopup, showPopup, showWindow, showWindow, showWindow
 
Methods inherited from class junit.extensions.abbot.ResolverFixture
getFinder, getHierarchy, getResolver
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, setName, setUp, tearDown, 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
 

Constructor Detail

MyCodeTest

public MyCodeTest(String name)
Name is the name of a script filename.

Method Detail

suite

public static Test suite()
Return the set of scripts we want to run.


main

public static void main(String[] args)
Description copied from class: ScriptFixture
Assumes each argument is an Abbot script. Runs each one.



Copyright © 2002-2004 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge