common

package
v0.0.0-...-35eebaa Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteApp

func DeleteApp(urlBase string, apiToken string, organization string, project string, httpHeadersMap map[string]string, appFileNumber int) *cli.ExitError

DeleteApp deletes app/ipa/apk file on the server

func DownloadPreparedScreenshots

func DownloadPreparedScreenshots(urlBase string, apiToken string, organization string, project string, httpHeadersMap map[string]string, batchTaskId int, downloadPath string) error

func GetBatchTaskStatus

func GetBatchTaskStatus(urlBase string, apiToken string, organization string, project string, httpHeadersMap map[string]string, batchTaskId int) string

func GetScreenshots

func GetScreenshots(urlBase string, apiToken string, organization string, project string, httpHeadersMap map[string]string,
	batchRunNumber int, downloadPath string, fileIndexType string, fileNameBodyType string, downloadType string,
	maskDynamicallyChangedArea bool, waitLimit int, printResult bool) error

func LatestBatchRunNo

func LatestBatchRunNo(urlBase string, apiToken string, organization string, project string, httpHeadersMap map[string]string) (int, *cli.ExitError)

func PrepareScreenshots

func PrepareScreenshots(urlBase string, apiToken string, organization string, project string, httpHeadersMap map[string]string, batchRunNumber int, fileIndexType string, fileNameBodyType string, downloadType string, maskDynamicallyChangedArea bool) int

func UploadApp

func UploadApp(urlBase string, apiToken string, organization string, project string, httpHeadersMap map[string]string, appPath string) (int, *cli.ExitError)

UploadApp uploads app/ipa/apk file to the server

Types

type BatchRun

type BatchRun struct {
	Url              string
	Status           string
	Batch_Run_Number int
	Test_Cases       struct {
		Succeeded  int
		Failed     int
		Aborted    int
		Unresolved int
		Total      int
	}
}

BatchRun stands for a batch run executed on the server

func ExecuteBatchRun

func ExecuteBatchRun(urlBase string, apiToken string, organization string, project string,
	httpHeadersMap map[string]string, testSettingsNumber int, setting string,
	waitForResult bool, waitLimit int, printResult bool) (*BatchRun, bool, bool, *cli.ExitError)

ExecuteBatchRun starts batch run(s) and wait for its completion with showing progress

func GetBatchRun

func GetBatchRun(urlBase string, apiToken string, organization string, project string, httpHeadersMap map[string]string, batchRunNumber int) (*BatchRun, *cli.ExitError)

GetBatchRun retrieves status and number of test cases executed of a specified batch run

func StartBatchRun

func StartBatchRun(urlBase string, apiToken string, organization string, project string, httpHeadersMap map[string]string, testSettingsNumber int, setting string) (*BatchRun, *cli.ExitError)

StartBatchRun starts a batch run or a cross batch run on the server

type BatchRuns

type BatchRuns struct {
	Batch_Runs []BatchRun
}

BatchRuns stands for a group of batch runs executed on the server

type UploadFile

type UploadFile struct {
	File_No int
}

UploadFile stands for a file to be uploaded to the server

Jump to

Keyboard shortcuts

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