Bash test step

The Bash test step executes an arbitrary shell script. The maximum length of the script is 10240 characters.

The step fails if the script exits with a non-zero exit code. The content of the standard output and standard error is recorded as the result of the test step and can be viewed using the Wenenu UI or accessed using the Wenenu API. The maximum combined length of the standard output and error is 20000 characters. The output is truncated if it exceeds the maximum length.

Note The variables of the test scenario are available as environment variables during the execution.
Note Filesystem operations are available. Every test step runs in separate docker containers. Test steps in the same test scenario have a common directory mounted into the container, sharing files between test steps is possible. The mounted directory is under /tests which is the current directory when the test execution starts.
Warning For security reasons, do not display any sensitive information in the step result.

UI settings

Bash step UI settings
Figure 1. Bash step UI settings

1

Arbitrary name of the test step up to 64 characters

2

Test agent that is going to execute the test step

3

Arbitrary shell script that gets executed

JSON

{
  "displayName": "Bash test step", 1
  "type": "bash", 2
  "id": "d4e9be30-f0c3-4532-9c26-623b250a8af8", 3
  "code": "echo \"Hello world\";\npwd", 4
  "agent": { 5
    "type": "standard",
    "id": "162dff466f92c372005cf7055d006b77ac377e01c60ae59f942d74680f2496d1"
  }
}
1 Arbitrary name of the test step up to 64 characters
2 Type of the test step, must be 'bash'
3 Version 4 unique identifier of the test step, must be unique within the test scenario
4 Arbitrary shell script that gets executed
5 Agent object defining the agent that will execute the test step

Available modules, commands and libraries

Base packages and tools

The following command-line tools are available in addition to common GNU/Linux tools:

Name Type Version

sudo

admin tool

-

git

vcs

2.17.1

az

(azure cli) cloud tools

2.12.0

wget

http tool

1.19.4

curl

http tool

7.58.0

gpg

cryptography

1.8.1

python3

programming

3.6.9

php

programming

7.2.24

bash

scripting

4.4.20