saucecloud

package
v0.105.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

View Source
const ArchiveFileCountSoftLimit = 32768

ArchiveFileCountSoftLimit is the threshold count of files added to the archive before a warning is printed. The value here (2^15) is somewhat arbitrary. In testing, ~32K files in the archive resulted in about 30s for download and extraction.

View Source
const BaseFilepathLength = 53

BaseFilepathLength represents the path length where project will be unpacked. Example: "D:\sauce-playwright-runner\1.12.0\bundle\__project__\"

View Source
const ConsoleLogAsset = "console.log"

ConsoleLogAsset represents job asset log file name.

View Source
const MaxFilepathLength = 255

MaxFilepathLength represents the maximum path length acceptable.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudRunner added in v0.25.1

type CloudRunner struct {
	ProjectUploader        storage.ProjectUploader
	JobService             job.Service
	CCYReader              concurrency.Reader
	TunnelService          tunnel.Service
	Region                 region.Region
	MetadataService        framework.MetadataService
	ShowConsoleLog         bool
	Framework              framework.Framework
	MetadataSearchStrategy framework.MetadataSearchStrategy
	InsightsService        insights.Service
	UserService            iam.Service

	Reporters []report.Reporter

	Async    bool
	FailFast bool

	NPMDependencies []string
	// contains filtered or unexported fields
}

CloudRunner represents the cloud runner for the Sauce Labs cloud.

type CypressRunner

type CypressRunner struct {
	CloudRunner
	Project cypress.Project
}

CypressRunner represents the Sauce Labs cloud implementation for cypress.

func (*CypressRunner) RunProject

func (r *CypressRunner) RunProject() (int, error)

RunProject runs the tests defined in cypress.Project.

type EspressoRunner added in v0.36.0

type EspressoRunner struct {
	CloudRunner
	Project espresso.Project
}

EspressoRunner represents the Sauce Labs cloud implementation for cypress.

func (*EspressoRunner) RunProject added in v0.36.0

func (r *EspressoRunner) RunProject() (int, error)

RunProject runs the tests defined in cypress.Project.

type JobService added in v0.99.2

type JobService struct {
	VDCStarter job.Starter
	RDCStarter job.Starter

	VDCReader job.Reader
	RDCReader job.Reader

	VDCWriter job.Writer

	VDCStopper job.Stopper

	VDCDownloader job.ArtifactDownloader
	RDCDownloader job.ArtifactDownloader
}

func (JobService) DownloadArtifact added in v0.99.2

func (s JobService) DownloadArtifact(jobID, suiteName string, realDevice bool) []string

func (JobService) GetJobAssetFileContent added in v0.99.2

func (s JobService) GetJobAssetFileContent(ctx context.Context, jobID, fileName string, realDevice bool) ([]byte, error)

func (JobService) GetJobAssetFileNames added in v0.99.2

func (s JobService) GetJobAssetFileNames(ctx context.Context, jobID string, realDevice bool) ([]string, error)

func (JobService) PollJob added in v0.99.2

func (s JobService) PollJob(ctx context.Context, id string, interval, timeout time.Duration, realDevice bool) (job.Job, error)

func (JobService) ReadJob added in v0.99.2

func (s JobService) ReadJob(ctx context.Context, id string, realDevice bool) (job.Job, error)

func (JobService) StartJob added in v0.99.2

func (s JobService) StartJob(ctx context.Context, opts job.StartOptions) (jobID string, isRDC bool, err error)

func (JobService) StopJob added in v0.99.2

func (s JobService) StopJob(ctx context.Context, jobID string, realDevice bool) (job.Job, error)

func (JobService) UploadAsset added in v0.99.2

func (s JobService) UploadAsset(jobID string, realDevice bool, fileName string, contentType string, content []byte) error

type PlaywrightRunner

type PlaywrightRunner struct {
	CloudRunner
	Project playwright.Project
}

PlaywrightRunner represents the Sauce Labs cloud implementation for playwright.

func (*PlaywrightRunner) RunProject

func (r *PlaywrightRunner) RunProject() (int, error)

RunProject runs the tests defined in cypress.Project.

type ReplayRunner added in v0.93.0

type ReplayRunner struct {
	CloudRunner
	Project replay.Project
}

ReplayRunner represents the Sauce Labs cloud implementation for puppeteer-replay.

func (*ReplayRunner) RunProject added in v0.93.0

func (r *ReplayRunner) RunProject() (int, error)

RunProject runs the tests defined in cypress.Project.

type TestcafeRunner added in v0.31.0

type TestcafeRunner struct {
	CloudRunner
	Project testcafe.Project
}

TestcafeRunner represents the SauceLabs cloud implementation

func (*TestcafeRunner) RunProject added in v0.31.0

func (r *TestcafeRunner) RunProject() (int, error)

RunProject runs the defined tests on sauce cloud

type XcuitestRunner added in v0.44.0

type XcuitestRunner struct {
	CloudRunner
	Project xcuitest.Project
}

XcuitestRunner represents the Sauce Labs cloud implementation for xcuitest.

func (*XcuitestRunner) RunProject added in v0.44.0

func (r *XcuitestRunner) RunProject() (int, error)

RunProject runs the tests defined in xcuitest.Project.

Jump to

Keyboard shortcuts

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