A platform for executing assertion from given AsserestProperty's subclass T
.
This is AsyncTask
based class with integrated stopwatch system for marking
execution duration.
Constructors
- AsserestTestPlatform.new(T property, {bool counter = false})
-
Create new test platform for asserting
property
.
Properties
- endTime → DateTime?
-
The execution end time.
no setterinherited
- error → dynamic
-
The error, after the task execution is finished.
no setterinherited
- executionTime → Duration?
-
no setterinherited
- executorThread → AsyncExecutorThread?
-
no setterinherited
- hasError → bool
-
Returns
true
if this task execution has finished with an error.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- initTime → DateTime?
-
The execution initial time.
no setterinherited
- isFinished → bool
-
Returns
true
if this task execution has finished.no setterinherited - isIdle → bool
-
Returns
true
if this task has NOT yet been submitted.no setterinherited - isInExecutionContext → bool
-
if
true
, indicates that the current context is insideAsyncTask.run
.no setterinherited - isNotFinished → bool
-
Returns
true
if this task execution has NOT finished.no setterinherited - isSuccessful → bool
-
Returns
true
if this task execution has finished successfully.no setterinherited - property → T
-
AsserestProperty for running this test.
final
- result → AsserestReport?
-
The result, after the task execution is finished.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → AsyncTaskStatus
-
The current status.
no setterinherited
- submitTime ↔ DateTime?
-
The submit time.
getter/setter pairinherited
- taskType → String
-
no setterinherited
- wasSubmitted → bool
-
Returns
true
if this task has been submitted.no setterinherited - zone → Zone
-
The original Zone where this
AsyncTask
instance was created.no setterinherited
Methods
-
addOnFinishAsyncTask(
OnFinishAsyncTask onFinishAsyncTask) → void -
Adds a trigger to be called when this tasks finishes.
inherited
-
channel(
) → FutureOr< AsyncTaskChannel?> -
Returns an optional
AsyncTaskChannel
for communication with the task.inherited -
channelInstantiator(
) → AsyncTaskChannel? -
Instantiate the optional
AsyncTaskChannel
return bychannel
.inherited -
channelResolved(
) → AsyncTaskChannel? -
Returns an optional
AsyncTaskChannel
. If not resolved yet will return null.inherited -
copy(
) → AsyncTask< T, AsserestReport> -
Creates a copy of this task in its initial state (before execution state).
inherited
-
execute(
) → FutureOr< AsserestReport> -
Executes this tasks immediately.
inherited
-
executeAndCast<
T> () → FutureOr< T> -
Alias for
execute
, casting the result toT
.inherited -
instantiate(
T parameters, [ ]) → AsyncTask< T, AsserestReport> -
Creates an instance of this task type with
parameters
and optionalsharedData
.inherited -
Load of a
SharedData
serial
for the correspondingkey
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parameters(
) → T - The parameters of this tasks.
-
reset(
) → void -
Resets this task to it's initial state, before any execution.
inherited
-
resolveChannel(
void initializer(AsyncTask task, AsyncTaskChannel channel)) → AsyncTaskChannel? -
Resolves the channel instance. Called by
AsyncExecutor
when executing this task.inherited -
run(
) → Future< AsserestReport> - The entire assertion task will be processed once run has been invoked.
-
runTestProcess(
) → Future< AsserestResult> - The process for asserting and return AsserestResult to determine accessibility of AsserestProperty.url.
-
Returns an optional Map of
SharedData
, where each entry will be transferred to the executor thread/isolate only once.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
waitResult(
) → Future< AsserestReport> -
Returns a Future to wait for the task result.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited