Package com.tomtom.ivi.platform.tools.api.testing.functional
Types
An Application.ActivityLifecycleCallbacks watcher for testedApplication. This class can be used to wait for the activity recreation after calling a function that triggers a configuration change.
Used to mark tests which should be ran on an Android 8.1 emulator. Note: Marking tests with this annotation does not exclude them from usual tests suites. Note:Android8Plugin
is referring to this annotation by class name.
Used to mark tests which should be ignored when ran on an Android 8.1 emulator to allow developers to quickly find ignored tests. Note: Marking tests with this annotation does not exclude them from usual tests suites. Note:Android8Plugin
is referring to this annotation by class name.
Used to mark tests which should be ran on an Android 8.1 emulator only. Note: Marking tests with this annotation does exclude them from usual tests suites. Note:Android8Plugin
is referring to this annotation by class name.
Callback to invoke a <Service>.createApi()
call.
A JUnit rule that registers an idling resource for all fragment views that use data binding.
Callback to invoke a <Service>.getServiceIds()
call.
Callback to obtain the initial LocationSimulationData.
Base class for tests that require an IVI activity to be launched.
Interface of E2E test case.
Provides test access to IVI service APIs instances from the test thread.
Interface for test case (base) classes that can create IVI service API instances.
Resets all IVI services within this process. This method facilitates starting with a clean slate between test executions without fully killing the process.
Manages the simulated position during tests.
A typealias of a function that executes another function, providing it with the root view.
An idling resource that waits for a condition on the app's root view to be satisfied.
An idling resource rule that waits for a condition on the app's root view to be satisfied.
Allows tests to create and register a TraceEventConsumer that can be used to verify whether a trace event was generated during a test.
A JUnit RunListener that catches TraceEvent errors during test execution. And reports these errors to Instrumentation. A test will fail at the end when one or more error events were caught during that test. The error events will be shown in JUnit reports. Any error events that were caught will be cleared before the next test is started.
Data class containing a reference to a view. The view is internal by design. If you need access to a view property, use a ViewAction or an ViewAssertion. See TtViewAssertion.
A JUnit rule that registers an idling resource to wait for a view to be shown or stop being shown using View.isShown.
Properties
Functions
A ViewAction similar to ViewActions.click, which calls a view's OnClickListener without emitting a touch event. While normally using a touch event is preferred to simulate real user scenarios, there may be situations where touch events have unintended side-effects. In these cases, this action may be used instead.
Returns a ViewAction to long press a given keyCode.
Checks that not any view matches viewMatcher.
Returns a ViewInteraction on a view matching viewMatcher and a given expectedText. The expectedText is a string resource ID.
Returns a ViewAction to record the scroll position of a view.
Returns a matcher that matches only when the examined view is the same instance as the view referenced by the specified viewReference.
Selects an item from a Spinner which matches the given text exactly. Items are matched with a simple Any.toString equality comparison and thus this might not be suitable for complex adapters.
Selects an item from a Spinner which matches the given textReference exactly. Items are matched with a simple Any.toString equality comparison and thus this might not be suitable for complex adapters.
A ViewAction that shows the input method for the given view, focusing the view in the process.
Taken from ViewActions.swipeLeft to modify the Swiper. This swipe action can be used to scroll the contents of a nested scroll view. Android's default scroll behaviour scrolls a parent when performing a fast swipe, but scroll the nested scroll view when the swipe starts off slow. By using a swipe action that eases in its velocity we can scroll through nested scroll views while still having momentum at the end to reach the end of a list.
Taken from ViewActions.swipeUp to modify the Swiper. This swipe action can be used to scroll the contents of a nested scroll view. Android's default scroll behaviour scrolls a parent when performing a fast swipe, but scroll the nested scroll view when the swipe starts off slow. By using a swipe action that eases in its velocity we can scroll through nested scroll views while still having momentum at the end to reach the end of a list.
Checks that the list item is a ListItemContentViewModel and validates its ListItemContentViewModel.primaryTextArea and ListItemContentViewModel.secondaryTextArea.
Wait for a view to become available and then check that it is not visible.
Wait for a view to be completely displayed.
Wait for a view to be completely displayed with the given expectedTextRes.
Wait for a view to be completely displayed with the given expectedText.