common

package
v0.0.0-...-0a50ce1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

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 {
	OrganizationName string `json:"organization_name"`
	ProjectName      string `json:"project_name"`
	BatchRunNumber   int    `json:"batch_run_number"`
	TestSettingName  string `json:"test_setting_name"`
	Status           string `json:"status"`
	StatusNumber     int    `json:"status_number"`

	TestCases struct {
		Details []struct {
			PatternName    *string          `json:"pattern_name"`
			IncludedLabels []string         `json:"included_labels"`
			ExcludedLabels []string         `json:"excluded_labels"`
			Results        []TestCaseResult `json:"results"`
		} `json:"details"`
		// contains filtered or unexported fields
	} `json:"test_cases"`
	Url string `json:"url"`
	// contains filtered or unexported fields
}

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

func WaitForBatchRunResult

func WaitForBatchRunResult(urlBase string, apiToken string, organization string, project string,
	httpHeadersMap map[string]string, batchRun *BatchRun,
	waitLimit int, printResult bool) (*BatchRun, bool, bool, *cli.ExitError)

type BatchRunSummary

type BatchRunSummary struct {
	BatchRunNumber  int    `json:"batch_run_number"`
	TestSettingName string `json:"test_setting_name"`
	Status          string `json:"status"`
	StatusNumber    int    `json:"status_number"`

	TestCases struct {
		// contains filtered or unexported fields
	} `json:"test_cases"`
	Url string `json:"url"`
	// contains filtered or unexported fields
}

type BatchRuns

type BatchRuns struct {
	OrganizationName string            `json:"organization_name"`
	ProjectName      string            `json:"project_name"`
	BatchRuns        []BatchRunSummary `json:"batch_runs"`
}

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

func GetBatchRuns

func GetBatchRuns(urlBase string, apiToken string, organization string, project string, httpHeadersMap map[string]string, count int, maxBatchRunNumber int, minBatchRunNumber int) (*BatchRuns, *cli.ExitError)

type DataPattern

type DataPattern struct {
	DataIndex  int    `json:"data_index"`
	Status     string `json:"status"`
	StartedAt  string `json:"started_at"`
	FinishedAt string `json:"finished_at"`
}

type TestCaseResult

type TestCaseResult struct {
	Order    int `json:"order"`
	TestCase struct {
		Number int    `json:"number"`
		Name   string `json:"name"`
		Url    string `json:"url"`
	} `json:"test_case"`
	Status string `json:"status"`

	DataPatterns []DataPattern `json:"data_patterns"`
	// contains filtered or unexported fields
}

type UploadFile

type UploadFile struct {
	FileNo int `json:"file_no"`
}

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