ExpectIt icon indicating copy to clipboard operation
ExpectIt copied to clipboard

Yet another Expect for Java

Results 20 ExpectIt issues
Sort by recently updated
recently updated
newest added

Hi Alexey, I see the below issue while using Expect-it library. **Note**: Linux machine is responding little slow. ############################################# [mjohn@unix] $ ls -l _[Command1]_ output 1: **total 88 drwx------ 2...

in class SingleInputExpect on method R expect(long timeoutMs, Matcher matcher) throws IOException on 105 line; If copierFuture contains a thread with an exception (example SocketException) method return IOException with message...

hi, I had some problems debugging the instance code as follows expect.sendLine("ls -lh"); // capture the total String total = expect.expect(regexp("^total (.*)")).group(1); System.out.println("Size: " + total); // capture file list...

Hi, I need to execute a single command on a remote linux server which asks multiple questions. Can you please give me an example ? how should I feed answers...

hi ! I want to use ExpectIt to achieve the following functions: When using ssh remote linux service, log in with a low-privileged user, and then switch to a high-privileged...

Using .withInfiniteTimout() sets the timeout value to -1. In the until method of InteractBuilderImpl we then have the following: ``` final long time = System.currentTimeMillis(); ... if (System.currentTimeMillis() - time...

For example I want to do: ``` Result result = expect.expect(anyOf(contains("reconfigure"), regexp("# $"))); if (/* first matcher was used */) { // The output contains "reconfigure" string. // Do something....

Please, consider adding `module-info.java` or `Automatic-Module-Name` to `MANIFEST.MF` at least.

I have this loop: ``` { String foundResponse = null; expect.sendLine(commandString); Result result; result = expect.expect(regexp("^([^#]+# )$")); foundResponse = result.getInput(); } ``` I see that the foundResponse variable on the...