Changes between Version 13 and Version 14 of androidtest


Ignore:
Timestamp:
10/28/2014 06:08:19 PM (11 years ago)
Author:
liaojiaohe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • androidtest

    v13 v14  
    9191 
    9292 
     93== robotium 官方例子 == 
     94已经改成可以是用gradle 执行,gradle connectAndroidTest[[BR]] 
     95 
     96{{{ 
     97uildscript { 
     98    repositories { 
     99        jcenter() 
     100    } 
     101    dependencies { 
     102        classpath 'com.android.tools.build:gradle:0.12.+' 
     103 
     104        // NOTE: Do not place your application dependencies here; they belong 
     105        // in the individual module build.gradle files 
     106    } 
     107} 
     108 
     109allprojects { 
     110    repositories { 
     111        jcenter() 
     112    } 
     113} 
     114 
     115apply plugin: 'com.android.application' 
     116 
     117android { 
     118    compileSdkVersion 17 
     119    buildToolsVersion '20.0.0' 
     120    sourceSets { 
     121        defaultConfig { 
     122            applicationId 'com.example.android.notepad' 
     123            minSdkVersion 14 
     124            targetSdkVersion 17 
     125        } 
     126 
     127        main { 
     128            setRoot('NotePad') 
     129            assets.srcDirs = ['NotePad/assets'] 
     130            res.srcDirs = ['NotePad/res'] 
     131            java.srcDirs = ['NotePad/src'] 
     132        } 
     133        androidTest { 
     134            setRoot('NotePadTest') 
     135            java.srcDirs = ['NotePadTest/src'] 
     136        } 
     137    } 
     138    buildTypes { 
     139    } 
     140    productFlavors { 
     141    } 
     142} 
     143 
     144dependencies { 
     145    compile 'com.jayway.android.robotium:robotium-solo:5.2.1' 
     146} 
     147 
     148}}} 
     149 
     150