title: How to wait for server to come up and run unit test from Jenkins/Hudson
body: <p>This is pretty simple question. I am posting this because I couldn't get any satisfying answer. First the background: I have Jenkins job that builds and deploys a web application on to a server. The server takes some time (in the order of 5 to 10 minutes). I would like to setup a job (or modify the existing as required) to rig up the unit test case execution which will test the application. I am thinking of the following approaches. I would like you to validate or suggest any alternatives:</p>
  
  <ul>
  <li>Have an Ant target that waits for a fixed time</li>
  <li>Have a custom Ant target which pings the URL and checks for app availability</li>
  </ul>
  
  <p>Thanks in advance for your help.
  -Vadiraj.</p>