run

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportArtifacts

func ExportArtifacts(ctx context.Context, cli *command.SauceCtlCli, containerID string, logDir string) error

ExportArtifacts exports log files from testrunner container to host

func NewRunCommand

func NewRunCommand(cli *command.SauceCtlCli) *cobra.Command

NewRunCommand creates the `run` command

func Run

func Run(cmd *cobra.Command, cli *command.SauceCtlCli, args []string) error

Run runs the command

Types

type Capabilties

type Capabilties struct {
	BrowserName               string                 `yaml:"browserName"`
	BrowserVersion            string                 `yaml:"browserVersion"`
	PlatformName              string                 `yaml:"platformName"`
	AcceptInsecureCerts       bool                   `yaml:"acceptInsecureCerts"`
	PageLoadStrategy          bool                   `yaml:"pageLoadStrategy"`
	Proxy                     map[string]interface{} `yaml:"proxy"`
	SetWindowRect             bool                   `yaml:"setWindowRect"`
	Timeouts                  Timeouts               `yaml:"timeouts"`
	StrictFileInteractability bool                   `yaml:"strictFileInteractability"`
	UnhandledPromptBehavior   string                 `yaml:"unhandledPromptBehavior"`
}

Capabilties describes job capabilies

type Configuration

type Configuration struct {
	APIVersion  string          `yaml:"apiVersion"`
	Kind        string          `yaml:"kind"`
	Metadata    Metadata        `yaml:"metadata"`
	Capabilties []Capabilties   `yaml:"capabilties"`
	Files       []string        `yaml:"files"`
	Image       ImageDefinition `yaml:"image"`
}

Configuration describes testrunner config format

type ImageDefinition

type ImageDefinition struct {
	Base    string                 `yaml:"base"`
	Version string                 `yaml:"version"`
	Options map[string]interface{} `yaml:"options"`
}

ImageDefinition describe configuration to the testrunner image

type Metadata

type Metadata struct {
	Name  string   `yaml:"name"`
	Tags  []string `yaml:"tags"`
	Build string   `yaml:"build"`
}

Metadata describes job metadata

type Timeouts

type Timeouts struct {
	Script   int `yaml:"script"`
	PageLoad int `yaml:"pageLoad"`
	Implicit int `yaml:"implicit"`
}

Timeouts describes WebDriver timeouts

Jump to

Keyboard shortcuts

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