Documentation ¶
Overview ¶
Package apputil implements the libraries used to control ARC apps
Package apputil implements the libraries used to control ARC apps
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClickIfExist ¶
ClickIfExist returns an action function which clicks the UI object if it exists.
func FindAndClick ¶
FindAndClick returns an action function which finds and clicks Android ui object.
Types ¶
type App ¶
type App struct { Tconn *chrome.TestConn A *arc.ARC D *ui.Device AppName string PkgName string // contains filtered or unexported fields }
App holds resources of ARC app.
func NewApp ¶
func NewApp(ctx context.Context, kb *input.KeyboardEventWriter, tconn *chrome.TestConn, a *arc.ARC, appName, pkgName string) (*App, error)
NewApp creates and returns an instance of App which represents and ARC App.
func (*App) Close ¶
func (app *App) Close(ctx context.Context, cr *chrome.Chrome, hasError func() bool, outDir string) error
Close cleans up the ARC app resources, it dumps the ARC UI if hasError returns true, and then closes ARC app. If hasError returns true, screenshot will be taken and UI hierarchy will be dumped to the given dumpDir.
func (*App) GetVersion ¶
GetVersion gets the version of the ARC app.
Directories ¶
Path | Synopsis |
---|---|
Package vlc contains local Tast tests that exercise vlc.
|
Package vlc contains local Tast tests that exercise vlc. |
Package voicerecorder wraps method and constant of voice recorder app for MTBF testing.
|
Package voicerecorder wraps method and constant of voice recorder app for MTBF testing. |