Test class

PODO for a test that can be executed.

Inheritance

Constructors

Test({bool active = true, String name, List<TestStep> steps, String suiteName, DateTime timestamp, int version = 0})
Constructs the test.

Properties

active bool
Sets whether or not this test is currently active. The interal system will always create active tests but loaders may return inactive tests.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
Returns the id of the test which is a concatenation of the suite name and the test name.
read-only
name String
The name for the test
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
steps List<TestStep>
The list of steps for the test
final
suiteName String
The name of the test suite this test is a part of; may be null or empty.
final
timestamp DateTime
The timestamp for the test step.
final
version int
The test version.
final

Methods

addTestStep(TestStep step) → void
Adds a test step to this test.
clearTestSteps() → void
Clears all test steps from this test.
copyWith({bool active, String name, List<TestStep> steps, String suiteName, DateTime timestamp, int version}) Test
Copies this test with the given values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
Converts this test to a JSON compatible format. See fromDynamic for the structure.
override
toString() String
Returns the string encoded JSON representation for this class. This will remove all null values and empty collections from the returned string.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

fromDynamic(dynamic map, {bool ignoreImages = false}) Test
Creates a test from a map-like object. The map must support the [] operator if it is not null. [...]