nz.ac.waikato.modeljunit.examples
Class SizeExperiments

java.lang.Object
  extended by nz.ac.waikato.modeljunit.examples.SizeExperiments

public class SizeExperiments
extends java.lang.Object

The performs some simple experiments on various test generation algorithms to compare the average size of the test suites that they must generate to achieve 100% transition coverage. TODO: could report the standard deviation as well.


Field Summary
static double RUNS
          Number of times to repeat each experiment, to get an average.
 
Constructor Summary
SizeExperiments()
           
 
Method Summary
static double allTransitions(Tester tester)
          Measures how long it takes tester to satisfy all-transitions coverage.
static void main(java.lang.String[] args)
          An example of generating tests from this model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RUNS

public static final double RUNS
Number of times to repeat each experiment, to get an average.

See Also:
Constant Field Values
Constructor Detail

SizeExperiments

public SizeExperiments()
Method Detail

allTransitions

public static double allTransitions(Tester tester)
Measures how long it takes tester to satisfy all-transitions coverage. It repeats this experiment RUNS times and returns the average.

Parameters:
tester -
Returns:
average number of test steps required to cover all transitions.

main

public static void main(java.lang.String[] args)
An example of generating tests from this model.



Copyright © 2009 ModelJUnit Project. All Rights Reserved.