Menu

How to clean cliCommand buffer?

Help
Alex Sigal
2014-05-07
2014-05-07
  • Alex Sigal

    Alex Sigal - 2014-05-07

    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

     
  • Roman

    Roman - 2014-05-07

    try those:

    conn.disconnect();
    conn.cleanCliBuffer();
    conn.release();
    cliCommand.setThrown(null);
    cliCommand.setFailed(false);
    cliCommand.setFailCause("");
    conn.setTestAgainstObject("");

     
  • Roman

    Roman - 2014-05-07

    after every loop you should clean you testAgainstObject

     

Log in to post a comment.