shell
Provides methods for working with operating system shell.
assertErrorOutput
Assert that the shell command's error output (stderr) matches the specified pattern.
Parameters:
Name
Type
Description
pattern
String
Pattern to assert.
assertOutput
Assert that the shell command's output (stdout) matches the specified pattern.
Parameters:
Name
Type
Description
pattern
String
Pattern to assert.
exec
Execute command
Spawn child process
Parameters:
Name
Type
Description
command
String
Shell command to be executed, including arguments, if applicable.
Returns:
Object
- Response object containing stdout, stderr, exit code, and signal (if process was terminated by a signal).
Last updated
Was this helpful?