Short:"Installs newman and executes specified newman collections.",
Long:`This script executes [Postman](https://www.getpostman.com) tests from a collection via the [Newman](https://www.getpostman.com/docs/v6/postman/collection_runs/command_line_integration_with_newman) command line tool.`,
cmd.Flags().StringVar(&stepConfig.NewmanCollection,"newmanCollection",`**/*.postman_collection.json`,"The test collection that should be executed. This could also be a file pattern.")
cmd.Flags().StringVar(&stepConfig.NewmanRunCommand,"newmanRunCommand",os.Getenv("PIPER_newmanRunCommand"),"+++ Deprecated +++ Please use list parameter `runOptions` instead.")
cmd.Flags().StringSliceVar(&stepConfig.RunOptions,"runOptions",[]string{`run`,`{{.NewmanCollection}}`,`--reporters`,`cli,junit,html`,`--reporter-junit-export`,`target/newman/TEST-{{.CollectionDisplayName}}.xml`,`--reporter-html-export`,`target/newman/TEST-{{.CollectionDisplayName}}.html`},"The newman command that will be executed inside the docker container.")
cmd.Flags().StringVar(&stepConfig.NewmanInstallCommand,"newmanInstallCommand",`npm install newman newman-reporter-html --global --quiet`,"The shell command that will be executed inside the docker container to install Newman.")
cmd.Flags().StringVar(&stepConfig.NewmanEnvironment,"newmanEnvironment",os.Getenv("PIPER_newmanEnvironment"),"Specify an environment file path or URL. Environments provide a set of variables that one can use within collections.")
cmd.Flags().StringVar(&stepConfig.NewmanGlobals,"newmanGlobals",os.Getenv("PIPER_newmanGlobals"),"Specify the file path or URL for global variables. Global variables are similar to environment variables but have a lower precedence and can be overridden by environment variables having the same name.")
cmd.Flags().BoolVar(&stepConfig.FailOnError,"failOnError",true,"Defines the behavior, in case tests fail.")
cmd.Flags().StringSliceVar(&stepConfig.CfAppsWithSecrets,"cfAppsWithSecrets",[]string{},"List of CloudFoundry apps with secrets")
}
// retrieve step metadata
funcnewmanExecuteMetadata()config.StepData{
vartheMetaData=config.StepData{
Metadata:config.StepMetadata{
Name:"newmanExecute",
Aliases:[]config.Alias{},
Description:"Installs newman and executes specified newman collections.",