quickcheckcuj

package
v0.0.0-...-683b059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 25 Imported by: 0

Documentation

Overview

Package quickcheckcuj contains quick check CUJ test cases scenario.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LockScreen

func LockScreen(ctx context.Context, tconn *chrome.TestConn) error

LockScreen locks the screen.

func Run

func Run(ctx context.Context, s *testing.State, cr *chrome.Chrome, pauseMode PauseMode, tabletMode bool, lFixtVal lacrosfixt.FixtValue) *perf.Values

Run runs the QuickCheckCUJ2 test. The lock is the function that suspends or locks the DUT. The lockInRecorder flag indicates if the lock function should be executed inside metrics recorder.

func UnlockScreen

func UnlockScreen(ctx context.Context, tconn *chrome.TestConn, password string) error

UnlockScreen unlocks the screen with the given keyboard writer.

Types

type PauseMode

type PauseMode int

PauseMode defines how to pause the DUT during testing.

const (
	// Lock indicates to lock the screen during test.
	Lock PauseMode = iota
	// Suspend indicates to suspend the DUT during test.
	Suspend
)

Enums for PauseMode.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL