everydaymultitaskingcuj

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: 27 Imported by: 0

Documentation

Overview

Package everydaymultitaskingcuj contains the test code for Everyday MultiTasking CUJ.

Index

Constants

View Source
const (
	// HelloWorldAppName indicates to test against a "Hello world" ARC app.
	HelloWorldAppName = "Hello world"
	// YoutubeMusicAppName indicates to test against YoutubeMusic.
	YoutubeMusicAppName = "ytmusic"
	// SpotifyAppName indicates to test against Spotify.
	SpotifyAppName = "Spotify"
)

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cr *chrome.Chrome, lFixtVal lacrosfixt.FixtValue, a *arc.ARC, params *RunParams) (retErr error)

Run runs the EverydayMultitaskingCUJ test.

Types

type RunParams

type RunParams struct {
	// contains filtered or unexported fields
}

RunParams holds the parameters to run the test main logic.

func NewRunParams

func NewRunParams(tier cuj.Tier, ccaScriptPaths []string, outDir, appName, account string, tabletMode, enableBT bool) *RunParams

NewRunParams constructs a RunParams struct and returns the pointer to it.

type Spotify

type Spotify struct {
	// contains filtered or unexported fields
}

Spotify holds the information used to do Spotify APP testing.

func NewSpotify

func NewSpotify(ctx context.Context, kb *input.KeyboardEventWriter, a *arc.ARC, tconn *chrome.TestConn, account string) (*Spotify, error)

NewSpotify returns the the manager of Spotify, caller will able to control Spotify app through this object.

func (*Spotify) Close

func (s *Spotify) Close(ctx context.Context, cr *chrome.Chrome, dump bool, dumpDir string) error

Close cleans up the spotify resources, dumps the ARC UI, and closes Soptify app. If dump flag is true, screenshot will be taken and UI hierarchy will be dumped to the given dumpDir.

func (*Spotify) Install

func (s *Spotify) Install(ctx context.Context) error

Install installs Soptify app.

func (*Spotify) Launch

func (s *Spotify) Launch(ctx context.Context) (time.Duration, error)

Launch launches Soptify app.

func (*Spotify) Play

func (s *Spotify) Play(ctx context.Context) error

Play plays a song.

Jump to

Keyboard shortcuts

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