UI集成測試運行說明
阿新 • • 發佈:2018-05-14
android UI測試 自動測試 腳本錄制 UI集成測試運行說明
1、環境配置
1.1、android studio導入項目工程AutoHome-Android;mayi分支; demo moudel。
1.2、依賴配置
dependencies { compile fileTree(include: [‘*.jar‘], dir: ‘libs‘) androidTestCompile(‘com.android.support.test.espresso:espresso-core:2.2.2‘, { exclude group: ‘com.android.support‘, module: ‘support-annotations‘ }) androidTestCompile ‘com.android.support.test.uiautomator:uiautomator-v18:2.1.1‘ testCompile ‘junit:junit:4.12‘ 。。。
}
1.3、運行方式
1.3.1、單一腳本運行方式如圖
1.3.2、組合嵌套運行:
腳本如下
/**
* Created by lichong on 2017/9/13.
*
* @ Email [email protected]
*/
@RunWith(Suite.class)
@Suite.SuiteClasses({AllBugs.class
, AllActivity.class
,AllMutalTest.class
,DownUITest.class
})
public class AllTest {
}
運行方式如下圖所示:
UI集成測試運行說明