Documentation ¶
Overview ¶
Package frontlineworkercuj contains frontlineworker CUJ test cases library.
Index ¶
- type GoogleChat
- type GoogleDrive
- type GoogleSheets
- func (g *GoogleSheets) Close(ctx context.Context)
- func (g *GoogleSheets) CopySpreadSheet(ctx context.Context, sampleSheetURL string) (sheetName string, err error)
- func (g *GoogleSheets) CreatePivotTable() uiauto.Action
- func (g *GoogleSheets) EditPivotTable() uiauto.Action
- func (g *GoogleSheets) RemoveFile(ctx context.Context, sheetName *string) error
- func (g *GoogleSheets) ValidatePivotTable() uiauto.Action
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 ¶
func NewGoogleChat(ctx context.Context, cr *chrome.Chrome, tconn *chrome.TestConn, ui *uiauto.Context, uiHdl cuj.UIActionHandler, kb *input.KeyboardEventWriter) *GoogleChat
NewGoogleChat returns the the manager of Google Chat, caller will able to control Google Chat app through this object.
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) 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.