AsserestHttpTestPlatform class final

An AsserestTestPlatform for perform assertion on HTTP.

Constructors

AsserestHttpTestPlatform(AsserestHttpProperty property, {bool counter = false, bool handleRedirect = true})
Construct a HTTP test platform for asserting with given 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
handleRedirect bool
Determine keep request after redirectrd.
final
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 inside AsyncTask.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 AsserestHttpProperty
AsserestProperty for running this test.
finalinherited
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 by channel.
inherited
channelResolved() → AsyncTaskChannel?
Returns an optional AsyncTaskChannel. If not resolved yet will return null.
inherited
copy() → AsyncTask<AsserestHttpProperty, 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 to T.
inherited
instantiate(AsserestHttpProperty parameters, [Map<String, SharedData>? sharedData]) → AsyncTask<AsserestHttpProperty, AsserestReport>
Creates an instance of this task type with parameters and optional sharedData.
loadSharedData(String key, dynamic serial) → SharedData?
Load of a SharedData serial for the corresponding key.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parameters() AsserestHttpProperty
The parameters of this tasks.
inherited
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.
inherited
runTestProcess() Future<AsserestResult>
The process for asserting and return AsserestResult to determine accessibility of AsserestProperty.url.
sharedData() Map<String, SharedData>?
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