shell

Provides methods for working with operating system shell.

assertOutput

Assert whether the shell command output (stdout) is matching the specified pattern.

Parameters:

NameTypeDescription

pattern

String

Pattern to assert.

exec

Execute command

Spawn child process

Parameters:

NameTypeDescription

command

String

Shell command to be executed, including arguments, if applicable.

Returns:

String - null | Error | stdout result

Last updated