frontlineworkercuj

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

Documentation

Overview

Package frontlineworkercuj contains frontlineworker CUJ test cases library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleChat

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

GoogleChat holds the information used to do Google Chat testing.

func NewGoogleChat

NewGoogleChat returns the the manager of Google Chat, caller will able to control Google Chat app through this object.

func (*GoogleChat) Launch

func (g *GoogleChat) Launch(ctx context.Context) (err error)

Launch launches the Google Chat standalone app.

func (*GoogleChat) StartChat

func (g *GoogleChat) StartChat(ctx context.Context) error

StartChat starts a chat.

type GoogleDrive

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

GoogleDrive holds the information used to do Google Drive testing.

func NewGoogleDrive

func NewGoogleDrive(ctx context.Context, tconn *chrome.TestConn, ui *uiauto.Context, kb *input.KeyboardEventWriter) (*GoogleDrive, error)

NewGoogleDrive returns the the manager of GoogleDrive, caller will able to control GoogleDrive app through this object.

func (*GoogleDrive) Launch

func (g *GoogleDrive) Launch(ctx context.Context, tconn *chrome.TestConn) (time.Duration, error)

Launch launches the specified app.

func (*GoogleDrive) OpenSpreadSheet

func (g *GoogleDrive) OpenSpreadSheet(ctx context.Context, sheetName string) error

OpenSpreadSheet opens the spreadsheet with pivot table.

type GoogleSheets

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

GoogleSheets holds the information used to do Google Sheets testing.

func NewGoogleSheets

func NewGoogleSheets(ctx context.Context, cr *chrome.Chrome, tconn *chrome.TestConn, ui *uiauto.Context,
	uiHdl cuj.UIActionHandler, kb *input.KeyboardEventWriter, account, password string) *GoogleSheets

NewGoogleSheets returns the the manager of Google Sheets, caller will able to control Google Sheets app through this object.

func (*GoogleSheets) Close

func (g *GoogleSheets) Close(ctx context.Context)

Close closes the Google Sheets tab.

func (*GoogleSheets) CopySpreadSheet

func (g *GoogleSheets) CopySpreadSheet(ctx context.Context, sampleSheetURL string) (sheetName string, err error)

CopySpreadSheet copies the sample spreadsheet.

func (*GoogleSheets) CreatePivotTable

func (g *GoogleSheets) CreatePivotTable() uiauto.Action

CreatePivotTable creates the pivot table.

func (*GoogleSheets) EditPivotTable

func (g *GoogleSheets) EditPivotTable() uiauto.Action

EditPivotTable opens the pivot table editor and add settings.

func (*GoogleSheets) RemoveFile

func (g *GoogleSheets) RemoveFile(ctx context.Context, sheetName *string) error

RemoveFile removes the spreadsheet.

func (*GoogleSheets) ValidatePivotTable

func (g *GoogleSheets) ValidatePivotTable() uiauto.Action

ValidatePivotTable validates that the values in the pivot table meet our expectations.

Jump to

Keyboard shortcuts

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