android单元测试实例一

上传者: tu_tustudio | 上传时间: 2021-06-03 13:13:39 | 文件大小: 760KB | 文件类型: RAR
这是一个android的单元测试实例,包括登录等三个界面,测试代码是单独的一个项目

文件下载

资源详情

[{"title":"( 91 个子文件 760KB ) android单元测试实例一","children":[{"title":"TestAut01","children":[{"title":".project <span style='color:#111;'> 873B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"example","children":[{"title":"aut01","children":[{"title":"test","children":[{"title":"MainActivityTest.java <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"LoginActivityTest.java <span style='color:#111;'> 3.60KB </span>","children":null,"spread":false},{"title":"HomeActivityTest.java <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 601B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.67KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.18KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 5.11KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":null,"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 14.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 121B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 208B </span>","children":null,"spread":false}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"example","children":[{"title":"aut01","children":[{"title":"test","children":[{"title":"BuildConfig.java <span style='color:#111;'> 164B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 503B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".classpath <span style='color:#111;'> 461B </span>","children":null,"spread":false},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"resources.ap_ <span style='color:#111;'> 32.61KB </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"com","children":[{"title":"example","children":[{"title":"aut01","children":[{"title":"test","children":[{"title":"MainActivityTest.class <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"LoginActivityTest$4.class <span style='color:#111;'> 830B </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 353B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 419B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 352B </span>","children":null,"spread":false},{"title":"LoginActivityTest$3.class <span style='color:#111;'> 830B </span>","children":null,"spread":false},{"title":"HomeActivityTest.class <span style='color:#111;'> 1.75KB </span>","children":null,"spread":false},{"title":"LoginActivityTest$1.class <span style='color:#111;'> 863B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 459B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 410B </span>","children":null,"spread":false},{"title":"LoginActivityTest.class <span style='color:#111;'> 3.67KB </span>","children":null,"spread":false},{"title":"LoginActivityTest$2.class <span style='color:#111;'> 862B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 601B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.60KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 8.98KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.94KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 13.74KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"TestAut01.apk <span style='color:#111;'> 37.68KB </span>","children":null,"spread":false},{"title":"classes.dex <span style='color:#111;'> 7.34KB </span>","children":null,"spread":false}],"spread":true}],"spread":false},{"title":"Aut01","children":[{"title":".project <span style='color:#111;'> 841B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"example","children":[{"title":"aut01","children":[{"title":"HomeActivity.java <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"MainActivity.java <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"LoginActivity.java <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 912B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 100B </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 3.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 94B </span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"activity_main.xml <span style='color:#111;'> 240B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 88B </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 2.96KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"activity_home.xml <span style='color:#111;'> 493B </span>","children":null,"spread":false},{"title":"activity_login.xml <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"activity_main.xml <span style='color:#111;'> 537B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 3.12KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 239B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 89B </span>","children":null,"spread":false}],"spread":true},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 108B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 208B </span>","children":null,"spread":false}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"example","children":[{"title":"aut01","children":[{"title":"BuildConfig.java <span style='color:#111;'> 159B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 341.07KB </span>","children":null,"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'> 364B </span>","children":null,"spread":false},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'> 17.73KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"resources.ap_ <span style='color:#111;'> 11.12KB </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"com","children":[{"title":"example","children":[{"title":"aut01","children":[{"title":"R$layout.class <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 392B </span>","children":null,"spread":false},{"title":"LoginActivity$2.class <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 343B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 444B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 337B </span>","children":null,"spread":false},{"title":"LoginActivity.class <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false},{"title":"LoginActivity$1.class <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 656B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 616B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 510B </span>","children":null,"spread":false},{"title":"MainActivity$1.class <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 394B </span>","children":null,"spread":false},{"title":"MainActivity.class <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"HomeActivity.class <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 912B </span>","children":null,"spread":false},{"title":"jarlist.cache <span style='color:#111;'> 119B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 113B </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 409B </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 110B </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 311B </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 491B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"Aut01.apk <span style='color:#111;'> 146.50KB </span>","children":null,"spread":false},{"title":"classes.dex <span style='color:#111;'> 321.13KB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • 萌化小强 :
    单元测试的例子,很实用,正是我需要的~
    2017-01-11
  • FFZZHH :
    内容过于简单
    2014-11-09
  • 北方小蚂蚁 :
    简单的activity测试,适用于单元测试的新手,谢谢楼主
    2014-10-17
  • chenzhihui_28 :
    还可以吧,知识面不是很全。入门ok了
    2014-09-23
  • u014388302 :
    不是很好用,我的不知道为什么用不了
    2014-09-01

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明