input

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2018 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	//RunMode is used for executing a test
	RunMode = "run"
	//UiMode is used to start sakuli UI jar
	UiMode = "ui"
	//EncryptMode is used to encrypt a password
	EncryptMode = "encrypt"
	//CreateMode is used for creating new objects like a masterkey
	CreateMode = "create"
	//Error this should never happen
	Error = "should never happen"

	//OPTION values
	//key for the sakuli home value
	OptSakuliHome = "sakuliHome"
	OptSahiHome   = "sahiHome"
	OptBrowser    = "browser"
	OptInterface  = "interface"
	OptMasterkey  = "masterkey"
)

Variables

View Source
var MyFlagSet *flag.FlagSet

MyFlagSet contains the parsed arguemnts, will be set at the beginning.

Functions

func Exit

func Exit(info string)

ExitWithHelp prints the help, the info and exits the program with 999.

func ExitWithHelp

func ExitWithHelp(info string)

ExitWithHelp prints the help, the info and exits the program with 999.

func ParseArgs

func ParseArgs(args []string) (string, string)

ParseArgs parses the COMMAND and its options

func PrintExampleUsage added in v1.0.4

func PrintExampleUsage(uiInstalled bool)

if ui is not installed don't show the UI examples

func PrintHelp added in v1.2.0

func PrintHelp(uiInstalled bool)

func PrintVersion

func PrintVersion()

PrintVersion prints the sakuli version and env variables.

func TestJavaHome

func TestJavaHome(home string) string

TestJavaHome returns a string if the javahome is valid, an empty if not

func TestRun

func TestRun(suite string)

TestRun makes validation tests on the run parameter

func TestUI added in v1.2.0

func TestUI(contextFolder string)

TestUI validates if the context folder exists

Types

type StringSlice

type StringSlice []string

StringSlice is used for multiple string args

func (StringSlice) AddPrefix

func (s StringSlice) AddPrefix(prefix string) StringSlice

AddPrefix adds a given Prefix to every element

func (*StringSlice) Set

func (s *StringSlice) Set(value string) error

Set is for the flag.Var function

func (*StringSlice) String

func (s *StringSlice) String() string

String is for the flag.Var function

Jump to

Keyboard shortcuts

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