[Robobench for Android automated testing] 01. robobench environment Configuration

Source: Internet
Author: User


I. First, configure the most basic environment

Knowledge preparation + Environment configuration for Android Automated Testing
(Click to view details)

2. Download robotium
Open: http://code.google.com/p/robotium/
Download: robotium-solo-3.4.1.jar (dependent on this package when writing test cases) robotium-solo-3.4.1-javadoc.jar (you can view the various APIs provided after decompression)
3. Create a test project
1. Import tested application-new test project-dependent tested application (tested application download: http://download.csdn.net/detail/wirelessqa/4487252)
2. The manifest. xml of the test project is as follows:
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"    package="org.athrun.android.app.test"    android:versionCode="1"    android:versionName="1.0" >    <uses-sdk android:minSdkVersion="8" />    <instrumentation        android:name="android.test.InstrumentationTestRunner"        android:targetPackage="org.athrun.android.app" />    <application        android:icon="@drawable/ic_launcher"        android:label="@string/app_name" >        <uses-library android:name="android.test.runner" />    </application></manifest>

Java buile path:
Be sure to check the project and robotium-solo-3.3.jar to be tested, otherwise an error will be reported.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.