本文共 813 字,大约阅读时间需要 2 分钟。
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 lichongmac@163.com */@RunWith(Suite.class)@Suite.SuiteClasses({AllBugs.class , AllActivity.class ,AllMutalTest.class ,DownUITest.class})public class AllTest {}
运行方式如下图所示:
QQ:492717776
Email:lichongmac@163.com
支付宝打赏:
微信打赏:
公众号推荐:
转载于:https://blog.51cto.com/4789781/2116051