title: How to automate application based on command line?
body: <p>I have a Java based application which I run using command prompt. I am currently testing it manually. I want to automate the process. What tool or scripting should I use?</p>
  
  <p>For example:</p>
  
  <ol>
  <li>First I will run the <code>java</code> command to run the .java file.  </li>
  <li>My application will give me 5 options. For example<br>
  i. Add<br>
  ii. Subtract<br>
  iii. Multiply 
  iv. Divide.  </li>
  </ol>
  
  <p>It should select one of the options and add the number and verify the result with the expected result. All this will be done using command prompt.</p>