automated_testing_framework library

Classes

AssertErrorForm
AssertErrorStep
Test step that asserts that the error value equals (or does not equal) a specific value.
AssertValueForm
AssertValueStep
Test step that asserts that the value equals (or does not equal) a specific value.
AssetTestStore
Test store that can be used to read tests from asset files. Each asset file may contain one or more tests. [...]
AsyncTestLoader
Loader that loads the test from an async callback.
AvailableTestsPage
Page that displays all the currently available tests and provides the option to run them.
AvailableTestStep
Describes an automated test step. Custom test steps must register with the TestStepRegistry and create an instance of this class. This binds the input form, any quick-add values, the help and title translation entities, and the requirements of the step that determines if the step will show or not given the current constraints.
CaptureContext
PODO that simply holds the request for a screen capture.
ClipboardTestStore
Test store that can be used to read and write tests from / to the clipboard. The clipboard may contain one or more tests when attempting to load from the clipboard. [...]
DismissKeyboardForm
DismissKeyboardStep
Test step that dismisses the keyboard.
DoubleTapForm
DoubleTapStep
Step that double-taps a Testable widget.
DrivableDevice
DrivenTestStatus
DriverSignatureHelper
Helper class to generate signatures for use by test drivers as well as driven devices.
DriverTestRequest
EnsureExistsForm
EnsureExistsStep
Test step that ensures a particular widget exists on the widget tree before continuing.
ExitAppForm
ExitAppStep
Test step that exits the application.
ExternalTestDriver
GoBackForm
GoBackStep
Step that attempts to execute a Back action against the current navigation stack.
GoldenTestImages
LongPressForm
LongPressStep
Step that sends a longPress event to a Testable widget. [...]
MemoryTestLoader
Loader that loads the test from an in-memory object.
PendingTest
Describes a pending test. The pending test should describe the name, number of steps, version, and provide a loader to load the full test details.
ProgressValue
PODO that holds the value of progress. The progress can be anything.
ScreenshotForm
ScreenshotStep
ScrollUntilVisibleForm
ScrollUntilVisibleStep
Step that will attempt to scroll another widget until it becomes visible.
SetValueForm
SetValueStep
Sets a value on the identified Testable.
SetVariableForm
SetVariableStep
Sets a variable on the identified TestController.
SleepForm
SleepProgress
Renders the sleep progress on the test runner.
SleepStep
Simple test step that will sleep for a given period of time.
TapForm
TapStep
Step that taps a Testable widget.
Test
PODO for a test that can be executed.
Testable
Workhorse of the Automate Testing Framework.
TestableDropdownButtonFormField<T>
An extention to the standard DropdownButtonFormField that is wrapped with a Testable. [...]
TestableFormDialog
Dialog for test forms. This is used for the quick dialog version of adding a test step.
TestableFormField<T>
An extention to the standard FormField that is wrapped with a Testable. [...]
TestableFormPage
Form that displays all the input options for an individual test step.
TestableGestureAction
Built-in actions that are available to be set either by-default or by-widget on Testable widgets.
TestableGestures
Set of gestures that Testable widgets will respond to when the TestRunner is enabled. Applications can (should) set the gestures based on their typical usage patterns such that the gestures have a minimal amount of conflict with application based gestures. [...]
TestableRenderController
Controller that is used to provide information for the Testable. This includes information such as what gestures to respond to as well as how to render the global and / or individual overlays.
TestableState
State object for a Testable widget.
TestableStepsDialog
Dialog that displays the test steps in a quick access / minified form.
TestableStepsPage
Page that displays all the test steps for the current test. This will allow the reordering, clearing, editing, and saving of the steps w/in a current test.
TestableTextFormField
An extention to the standard TextFormField that is wrapped with a Testable. [...]
TestableType
Enum-like class that describes the various capabilities of a Testable
TestAppSettings
Provides settings for the test app that apply globaly. Any settings set here will globally override values from other parts of the framework.
TestController
Controller that allows for the creation, loading, saving, and running of automated tests.
TestDeviceInfo
Container class for the device information for the device the test is being executed on.
TestDeviceStatus
TestDriverStatus
TestImage
Represents an image from a test.
TestLoader
Interface for loading tests.
TestProgressBuilder
Builds and displays the test progress.
TestReport
Represents a report from a test run.
TestReportPage
Page that can display a full test report.
TestReportStep
The result for an executed test step. It's important to note that times in the report are relative to each run and should not be thought of in absolute terms. Too many variables such as animations, built in delays, etc. can cause an individual test step to take 1-2 seconds despite a perceived expectation that something should be sub-second. When comparing the times, do so only across tests and look for trends. Avoid the temptation to look at the times as absolutes.
TestReportStepWidget
Widget for rendering a test step from a test report.
TestRunner
Test runner that should be the base widget within an application. This requires the test controller and the child which is the application itself.
TestRunnerState
TestRunnerStep
Abstract step that all other test steps must extend.
TestRunnerThemeData
Test runner theme data that can be used to alter the appearance of the built in test runner.
TestStatusAlignment
Alignment for the test status bar.
TestStep
Describes a single step in a test. A test step is required to have an id which is the human-readable key for the test step. It has an optional image that is a capture of the widget for reference. Finally, it has an optional set of values that configure the step.
TestStepBuilder
Simple class that binds an available test step with the actual running test step.
TestStepDelays
Defines the various delays and timeouts involved when executing tests.
TestStepForm
TestStepPicker
TestStepRegistry
Registry that allows for the binding of custom test steps. There exists a default instance that will always be used when a custom instance is not available. [...]
TestStepsPage
Page that shows all the test steps and their values for a current test.
TestStepTranslations
TestStore
Generic test store that provies no-op implementations of all the test storage functions.
TestSuiteReport
A summary of all the results from all the runs in a single test suite.
TestSuiteReportPage
Page that can display a summarized result from a test suite run.
TestSuiteResult
Represents a the summarized results from a single test run within a larger test suite.
TestSuiteResultWidget
TestTranslations

Functions

testableChildBuilder(BuildContext context, Widget child) Widget
ChildWidgetBuilder that can be used to wrap child widgets with a Testable widget. This particular builder will only wrap the child if the child has a ValueKey set on it. In that case, the Testable will be given the a new ValueKey with the value from the child's key prefixed with value_key_.

Typedefs

GoldenImageWriter(TestReport report) Future<void>
Writer to save the given test report as golden images for the test.
TestImageReader({TestDeviceInfo deviceInfo, String imageId, String suiteName, String testName, int testVersion}) Future<Uint8List>
Reader to load a golden image from a data store and return it for comparison. If testVersion is omitted, this should default to the highest version listed in the golden file.
TestReader(BuildContext context, {String suiteName}) Future<List<PendingTest>>
TestReporter(TestReport report) Future<bool>
TestRunnerStepBuilder(dynamic values) TestRunnerStep
TestWriter(BuildContext context, Test test) Future<bool>
WidgetOverlayBuilder({BuildContext context, Testable testable}) → dynamic
Builder function that renders the Testable overlay when it is active.