org.aitools.programd.test.aiml
Class Tester

java.lang.Object
  extended by org.aitools.programd.test.aiml.Tester

public class Tester
extends Object

A Tester loads one or more test suites and runs them, logging output.

Author:
Albertas Mickensas, Noel Bush

Constructor Summary
Tester(Core coreToUse, org.apache.log4j.Logger testLogger, List<URL> suitePaths, URL testReports)
          Creates a new Tester which will use the given Core to find out its configuration and run tests.
 
Method Summary
 String run(String botid, String suite, int runCount)
          Runs the tests in the given suite on the given botid, a given number of times.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tester

public Tester(Core coreToUse,
              org.apache.log4j.Logger testLogger,
              List<URL> suitePaths,
              URL testReports)
Creates a new Tester which will use the given Core to find out its configuration and run tests.

Parameters:
coreToUse - the Core to use for finding plugin configuration, active multiplexor, etc.
testLogger - the logger to which to send output
suitePaths - the test suites
testReports - the directory in which to store test reports
Method Detail

run

public String run(String botid,
                  String suite,
                  int runCount)
Runs the tests in the given suite on the given botid, a given number of times.

Parameters:
suite - the suite to run
botid - the botid on whom to run the tests
runCount - the number of times to run the tests
Returns:
the path where the test report was written