Package com.tomtom.ivi.platform.debug.api.testing.tools

Types

Link copied to clipboard
class DebugTab(val pageTitle: String)

A reference to a tab in TomTom Digital Cockpit's debug panel. It is used by functional tests to identify tabs, for example to "navigate to" by using navigateToDebugTab, openDebugPanelAndNavigateTo or withDebugTab.

Functions

Link copied to clipboard
fun IviServiceAwareTestCase.closeDebugPanel()

Closes the debug panel by pressing the backtick/grave (`) key on the keyboard. This may only be called when the debug menu is opened.

Link copied to clipboard
fun IviServiceAwareTestCase.navigateToDebugTab(debugTab: DebugTab)

Navigates to the given debugTab within the opened debug panel.

Link copied to clipboard
fun IviServiceAwareTestCase.openDebugPanel()

Open the debug panel by pressing the backtick/grave (`) key on the keyboard. This may only be called when the debug menu is not already opened.

Link copied to clipboard
fun IviServiceAwareTestCase.openDebugPanelAndNavigateTo(debugTab: DebugTab)

Open the debug panel by pressing the backtick/grave (`) key on the keyboard and navigates to debugTab. This may only be called when the debug menu is not already opened.

Link copied to clipboard
fun IviServiceAwareTestCase.withDebugTab(debugTab: DebugTab, action: () -> Unit)

Opens the debug panel and executes action while the debugTab is selected in the debug panel. Afterwards the debug panel is closed.