title: Integrating uiautomator test case with application code in Android
body: <p>I am using Eclipse IDE.
  Here is my code for uiautomator testcase:</p>
  
  <pre><code>public class caltest extends UiAutomatorTestCase {
  
      public void testDemo() throws UiObjectNotFoundException, IOException {
  
      //mytesstcode
  
      }
  }
  </code></pre>
  
  <p>To run this test i have to issue following commands from command line:</p>
  
  <ol>
  <li><p>/tools/android create uitest-project -n  -t 1 -p </p></li>
  <li><p>Go to the project directory where your build.xml file is located and build your test JAR.
  ---> ant build</p></li>
  <li><p>Deploy your generated test JAR file to the test device by using the adb push command:
  ---> adb push  /data/local/tmp/</p></li>
  <li><p>---> adb shell uiautomator runtest jarname.jar -c caltest</p></li>
  </ol>
  
  <p>Is there any way i can run my test without using commandline i.e. from the eclipse ide or from within an android application.</p>