Documentation ¶
Overview ¶
Package diagnosticsapp contains drivers for controlling the ui of diagnostics SWA.
Package diagnosticsapp contains drivers for controlling the ui of diagnostics SWA.
Index ¶
- Variables
- func CheckGlyphsbyRegion(ui *uiauto.Context, regionCode string) action.Action
- func Close(ctx context.Context, tconn *chrome.TestConn) error
- func DiagnosticsRootNode(ctx context.Context, tconn *chrome.TestConn) (*nodewith.Finder, error)
- func KeyNodeFinder(key string, state KeyState) *nodewith.Finder
- func Launch(ctx context.Context, tconn *chrome.TestConn) (*nodewith.Finder, error)
- type KeyState
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DxLogButton export is used to find session log button. DxLogButton = nodewith.ClassName("session-log-button").Role(role.Button) // DxMemoryTestButton export is used to find routine test button. DxMemoryTestButton = nodewith.Name("Run Memory test").Role(role.Button) // DxCPUTestButton export is used to find routine test button. DxCPUTestButton = nodewith.Name("Run CPU test").Role(role.Button) // DxViewReportButton export is used to find the see report button. DxViewReportButton = nodewith.Name("See Report").Role(role.Button) // DxCancelTestButton export is used to find routine test cancel button. DxCancelTestButton = nodewith.Name("Stop test").Role(role.Button) // DxCPUChart export is used to find the realtime cpu chart. DxCPUChart = nodewith.ClassName("legend-group").Role(role.GenericContainer) // DxPassedBadge export is used to find success badge notification. DxPassedBadge = nodewith.Name("PASSED").Role(role.StaticText) // DxProgressBadge export is used to find successful launch of a routine. DxProgressBadge = nodewith.Name("RUNNING").Role(role.StaticText) // DxCancelledBadge export is used to find cancelled badge. DxCancelledBadge = nodewith.Name("STOPPED").Role(role.StaticText) // DxConnectivity export is used to find the Connectivity navigation item. DxConnectivity = nodewith.Name("Connectivity").Role(role.GenericContainer) // DxNetworkList export is used to find the network list. DxNetworkList = nodewith.ClassName("diagnostics-network-list-container").Role(role.GenericContainer) // DxInput export is used to find the Input navigation item. DxInput = nodewith.Name("Input").Role(role.GenericContainer) // DxInternalKeyboardTestButton used to find the internal keyboard test button on the input page. DxInternalKeyboardTestButton = nodewith.Name("Test").Role(role.Button).First() // DxKeyboardHeading export is used to find the keyboard heading on the input page. DxKeyboardHeading = nodewith.Name("Keyboard").Role(role.StaticText) // DxVirtualKeyboardHeading export is used to find the virtual keyboard heading on the input page. DxVirtualKeyboardHeading = nodewith.NameContaining("Tast virtual keyboard").Role(role.StaticText) // DxDefocusingMsg export is used to find the pop up message when input page isn't focused. DxDefocusingMsg = nodewith.Name("Keys aren't tested when you're using another window").Role(role.StaticText) )
View Source
var DxInternalKeyboardTestButtons = map[string]*nodewith.Finder{ "us": DxInternalKeyboardTestButton, "jp": nodewith.Name("テスト").Role(role.Button).First(), "fr": nodewith.Name("Tester").Role(role.Button).First(), }
DxInternalKeyboardTestButtons defines test button for internal keyboard which specified by region.
Functions ¶
func CheckGlyphsbyRegion ¶
CheckGlyphsbyRegion verifies several regional keys for a certain region.
func DiagnosticsRootNode ¶
DiagnosticsRootNode returns the root ui node of Diagnotsics app.
func KeyNodeFinder ¶
KeyNodeFinder creates a Finder with a name containing the key name and key state.
Types ¶
type KeyState ¶
type KeyState string
KeyState defines keyboard tester's key state.
const ( // KeyNotPressed is used to verify the key is in the not pressed state. KeyNotPressed KeyState = "key not pressed" // KeyPressed is used to verify the key is in the pressed state. KeyPressed KeyState = "key pressed" // KeyTested is used to verify the key is in the tested state. KeyTested KeyState = "key tested" )
Click to show internal directories.
Click to hide internal directories.