@ Then ( "^the command output contains '(.+?)'$" ) public void findShellOutput ( String search ) throws Exception { assertThat ( commonspec . getCommandResult ( ) ) . as ( "Contains " + search + "." ) . contains ( search ) ; }
Check the existence of a text at a command output