TestSuite
| Kind of class: | class |
|---|---|
| Inherits from: | AbstractTest < BasicClass |
| Implements: | |
| Author: | Simon Wacker, Martin Heidegger |
| Classpath: | org.as2lib.test.speed.TestSuite |
| File last modified: | Sunday, 29 May 2005, 09:19:44 |
TestSuite is the core interface for standardized performance test suites.Test suites hold multiple Test instances, including TestCase,
instances, TestSuite instances and instances of your custom Test
implementations.
Summary
Constructor
Instance methods
Instance methods inherited from AbstractTest
Instance methods inherited from BasicClass
Constructor
TestSuite
function TestSuite (
name:String,
tests:Array)
Constructs a new
TestSuite instance.If the passed-in tests array contains elements that are not of type
Test, they will be ignored.
Parameters:
name :
the name of this test suite
tests:
(optional)
Test instances to populate this test suite withInstance methods
addTest
function addTest (
)
addTestByMethod
function addTestByMethod (
method:MethodInfo) : Test
Adds a new test case by
method.If the argument method is null or undefined this
method invocation will be ignored and null will be returned.
Parameters:
method:
the method to profile
Returns:
the created and added test
addTestByProperty
function addTestByProperty (
property:PropertyInfo) : Test
Adds a new test case by
property.If the argument property is null or undefined this
method invocation will be ignored and null will be returned.
Parameters:
property:
the property to profile
Returns:
the created and added test
addTestByTest
function addTestByTest (
test:Test) : Void
Adds the passed-in
test to this test suite.If the argument test is null or undefined this method
invocation will be ignored.
Parameters:
test:
the test to add
getName
function getName (
Void) : String
Returns this test suite's name.
Returns:
this test suite's name
getTests
function getTests (
Void) : Array
Returns all tests of this test suite.
Returns:
all tests of this test suite