Documentation ¶
Index ¶
- Variables
- func CancelTestMatrix(matrixID string) (string, error)
- func GetDeviceNameByID(id string) string
- func GetLangByCountryCode(countryCode string) string
- func ValidateAndroidDevices(devices []*testing.AndroidDevice) error
- func ValidateIosDevices(devices []*testing.IosDevice) error
- type APIModel
- func (api *APIModel) DownloadTestAssets(buildSlug string) (map[string]string, error)
- func (api *APIModel) DownloadURLforPath(path string) (string, error)
- func (api *APIModel) GetDeviceCatalog() (*testing.TestEnvironmentCatalog, error)
- func (api *APIModel) GetHistoryAndExecutionIDByMatrixID(id string) (*testing.TestMatrix, error)
- func (api *APIModel) GetProfileName() string
- func (api *APIModel) GetSignedURLCredentials(method string) *storagesu.SignedURLOptions
- func (api *APIModel) GetSignedURLOfLegacyBucketPath(path string) (string, error)
- func (api *APIModel) GetTagArray() []string
- func (api *APIModel) GetTestMetricSamples(historyID, executionID, stepID, appSlug, buildSlug string) (MetricSampleModel, error)
- func (api *APIModel) GetTestResultXMLDownloadURLs(ctx context.Context, buildSlug, gcsBucket string) (map[string]string, error)
- func (api *APIModel) GetTestsByHistoryAndExecutionID(historyID, executionID, appSlug, buildSlug string, fields ...googleapi.Field) (*toolresults.ListStepsResponse, error)
- func (api *APIModel) StartTestMatrix(appSlug, buildSlug string, testMatrix *testing.TestMatrix) (*testing.TestMatrix, error)
- func (api *APIModel) TestAssetsUploadURLsAndroid(buildSlug string, assetRequests TestAssetsAndroid) (TestAssetsAndroid, error)
- func (api *APIModel) UploadTestAssets(buildSlug string) (*UploadURLRequest, error)
- func (api *APIModel) UploadURLforPath(path string) (string, error)
- type MetricSampleModel
- type TestAsset
- type TestAssetsAndroid
- type UploadURLRequest
Constants ¶
This section is empty.
Variables ¶
var DevicesCatalog *testing.TestEnvironmentCatalog
DevicesCatalog ...
Functions ¶
func GetLangByCountryCode ¶
GetLangByCountryCode ...
func ValidateAndroidDevices ¶
func ValidateAndroidDevices(devices []*testing.AndroidDevice) error
ValidateAndroidDevices ...
func ValidateIosDevices ¶
ValidateIosDevices ...
Types ¶
type APIModel ¶
APIModel ...
func (*APIModel) DownloadTestAssets ¶
DownloadTestAssets ...
func (*APIModel) DownloadURLforPath ¶
DownloadURLforPath ...
func (*APIModel) GetDeviceCatalog ¶
func (api *APIModel) GetDeviceCatalog() (*testing.TestEnvironmentCatalog, error)
GetDeviceCatalog ...
func (*APIModel) GetHistoryAndExecutionIDByMatrixID ¶
func (api *APIModel) GetHistoryAndExecutionIDByMatrixID(id string) (*testing.TestMatrix, error)
GetHistoryAndExecutionIDByMatrixID ...
func (*APIModel) GetSignedURLCredentials ¶
func (api *APIModel) GetSignedURLCredentials(method string) *storagesu.SignedURLOptions
GetSignedURLCredentials ...
func (*APIModel) GetSignedURLOfLegacyBucketPath ¶
GetSignedURLOfLegacyBucketPath ...
func (*APIModel) GetTestMetricSamples ¶
func (api *APIModel) GetTestMetricSamples(historyID, executionID, stepID, appSlug, buildSlug string) (MetricSampleModel, error)
GetTestMetricSamples ...
func (*APIModel) GetTestResultXMLDownloadURLs ¶
func (api *APIModel) GetTestResultXMLDownloadURLs(ctx context.Context, buildSlug, gcsBucket string) (map[string]string, error)
GetTestResultXMLDownloadURLs ...
func (*APIModel) GetTestsByHistoryAndExecutionID ¶
func (api *APIModel) GetTestsByHistoryAndExecutionID(historyID, executionID, appSlug, buildSlug string, fields ...googleapi.Field) (*toolresults.ListStepsResponse, error)
GetTestsByHistoryAndExecutionID ...
func (*APIModel) StartTestMatrix ¶
func (api *APIModel) StartTestMatrix(appSlug, buildSlug string, testMatrix *testing.TestMatrix) (*testing.TestMatrix, error)
StartTestMatrix ...
func (*APIModel) TestAssetsUploadURLsAndroid ¶
func (api *APIModel) TestAssetsUploadURLsAndroid(buildSlug string, assetRequests TestAssetsAndroid) (TestAssetsAndroid, error)
TestAssetsUploadURLsAndroid returns a signed URLs used to Android upload asset
func (*APIModel) UploadTestAssets ¶
func (api *APIModel) UploadTestAssets(buildSlug string) (*UploadURLRequest, error)
UploadTestAssets ...
type MetricSampleModel ¶
type MetricSampleModel struct { CPU map[string]float64 `json:"cpu_samples"` RAM map[string]float64 `json:"ram_samples"` NetworkDown map[string]float64 `json:"nwd_samples"` NetworkUp map[string]float64 `json:"nwu_samples"` }
MetricSampleModel ...
type TestAsset ¶
type TestAsset struct { UploadURL string `json:"uploadUrl"` GcsPath string `json:"gcsPath"` Filename string `json:"filename"` }
TestAsset describes a requested test asset
type TestAssetsAndroid ¶
type TestAssetsAndroid struct { Apk TestAsset `json:"apk,omitempty"` Aab TestAsset `json:"aab,omitmepty"` TestApk TestAsset `json:"testApk,omitempty"` RoboScript TestAsset `json:"roboScript,omitempty"` ObbFiles []TestAsset `json:"obbFiles,omitempty"` }
TestAssetsAndroid describes needed Android test asset and is used to return Android test asset upload URLs
type UploadURLRequest ¶
type UploadURLRequest struct { AppURL string `json:"appUrl,omitempty"` TestAppURL string `json:"testAppUrl,omitempty"` }
UploadURLRequest ...