I'm working with CliCommand, and when i run the same command in a loop several times
in the result i don't get each time only the last result.
each time i get the accumulation of all the results from the first time the clicommand run.
how can i get only the relevant result?
tried to use read(), gettestAgainstObject() but without success
Please advice
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm working with CliCommand, and when i run the same command in a loop several times
in the result i don't get each time only the last result.
each time i get the accumulation of all the results from the first time the clicommand run.
how can i get only the relevant result?
tried to use read(), gettestAgainstObject() but without success
Please advice
try those:
conn.disconnect();
conn.cleanCliBuffer();
conn.release();
cliCommand.setThrown(null);
cliCommand.setFailed(false);
cliCommand.setFailCause("");
conn.setTestAgainstObject("");
after every loop you should clean you testAgainstObject