Class com.ibm.rational.test.ct.execution.runtime.ComponentTest
This class contains methods for validation actions (checks), insertion points (sets), timing constraints, and other test-related methods that are available to the user for use in component test behavior scripts.
public class ComponentTest
extends Object
Constructors
- ComponentTest
- public ComponentTest()
Methods
- check
- public static void check (Boolean variable)
- Asserts that the Boolean variable equals an expected value provided in the test data table.
- check
- public static void check (char variable)
- Asserts that the char variable equals an expected value provided in the test data table.
- check
- public static void check (double variable)
- Asserts that the double variable equals an expected value provided in the test data table.
- check
- public static void check (float variable)
- Asserts that the float variable equals an expected value provided in the test data table.
- check
- public static void check (int variable)
- Asserts that the int variable equals an expected value provided in the test data table.
- check
- public static void check (object variable)
- Asserts that the object variable equals an expected value provided in the test data table.
- check
- public static void check (short variable)
- Asserts that the short variable equals an expected value provided in the test data table.
- checkTimer
- public static void checkTimer (string id)
- Asserts that the value of a timer matches an expected value provided in the test data table.
- disableTestDataTable
- public static void disableTestDataTable ()
- Disables all implicit method calls in the test data table. Only explicit calls to check and set of variables are shown.
- enableTestDataTable
- public static void enableTestDataTable ()
- Enables all method calls in the test data table. All expressions are shown. This mode is the default.
- error
- public static void error ()
- Produces an Error status on the current test.
- fail
- public static void fail ()
- Produces a Failed status on the current test.
- set
- public static void set (Boolean variable)
- Initializes the Boolean variable with the value provided in the test data table.
- set
- public static void set (byte variable)
- Initializes the byte variable with the value provided in the test data table.
- set
- public static void set (char variable)
- Initializes the char variable with the value provided in the test data table.
- set
- public static void set (double variable)
- Initializes the double variable with the value provided in the test data table.
- set
- public static void set (float variable)
- Initializes the float variable with the value provided in the test data table.
- set
- public static void set (int variable)
- Initializes the int variable with the value provided in the test data table.
- set
- public static void set (long variable)
- Initializes the long variable with the value provided in the test data table.
- set
- public static void set (object variable)
- Initializes the object variable with the value provided in the test data table.
- set
- public static void set (short variable)
- Initializes the short variable with the value provided in the test data table.
- startTimer
- public static void startTimer (string id)
- Starts a timer with the specified identifier.
Parent topic
API documentation for automated component testing