找回密码
 立即注册
相关推荐换一批
  1. YD/T 2489-2013 可重构的光分插复用(ROADM)设备测试方法
  2. YD/T 2148-2010 光传送网(OTN)测试方法
  3. YD/T 1607-2016 代替 YD/T 1607-2007 移动终端图像及视频传输特性技术要求和测试方法
  4. GB/T 16900.2-2020 图形符号表示规则第2部分:理解度测试方法
  5. YD/T 3185-2016 通信终端支持富通信业务测试方法
  6. YD/T 3176.3-2016 800MHz/2GHz cdma2000 数字蜂窝移动通信网 (第二阶段) 设备测试方
  7. YD/T 3176.2-2016 800MHz/2GHz cdma2000 数字蜂窝移动通信网 (第二阶段) 设备测试方
  8. YD/T 2522-2013 CDMA 数字蜂窝移动通信网通用集成电路卡 (UICC) 与终端间接口测试方
  9. YD/T 2582.1-2013 LTE 数字蜂窝移动通信网通用集成电路卡 (UICC) 与终端间 Cu接口测
  10. GB/T 38895-2020 无损检测 电磁声换能器(EMATs)指南
  11. SN/T 4669-2016 进出口纺织品悬挂材料抗火焰传播性测试标准方法开 口测试箱法
  12. SN/T 0253-93 出口棉麻交织布比例测试方法
  13. GB/T 39360-2020 工业机器人控制系统性能评估与测试
  14. GB/T 39329-2020 增材制造 测试方法标准测试件精度检验
  15. GB/T 39272-2020 公共安全视频监控联网技术测试规范
  16. GB/T 39226-2020 磁约束聚变大电流变流系统集成测试要求
  17. GB/T 39615-2020 卫星导航定位基准站网测试技术规范
  18. GB/T 29239-2020 移动通信设备节能参数和测试方法 基站
  19. SN/T 3656.2-2013 进出口危险化学品测试技术规范第2部分:气体
  20. HG/T 4560-2013 涂料的防结露性能测试方法
  21. GB/T 39623-2020 基础地理信息数据库系统质量测试与评价
  22. SN/T 1492-2015 采用标准材料的单个测试结果评估实验室偏倚的方法
  23. GB/T 39724-2020 铯原子钟技术要求及测试方法
  24. SN/T 3252-2012 玩具整体易燃性能测试方法
AndroidThe测试framework | android开发 2022-10-28 81 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
Android系统下使用程序的测试如今应该还算是个新的领域,网上用于这方面的资料很多都是基于白盒测试的,通常都是基于JUnit框架和AndroidSDK中android.test等命名空间下的内容进行,但是有一个条件,那就是有必要要有使用程序的源代码以提供测试接入点,但是这在很多软件企业中是不现实的。很多测试工程师做的工作是完全黑盒,基本触摸不到源代码,白盒测试大部分也是由开发自己终结。回忆一下Windows下的黑盒测试自动化,先前使用的是微软提供的基于framework的UIAutomation自动化测试框架(请求版本在framework3.0以上,即VS.NET2008开发环境),对与拿手C#语言的人来说,使用起来确认比较好用。自己也写了基于UIAutomation的轻量级的自动化框架,将在今后的博文中引出。那在Android操作系统中能不能做相似于UIAutomation的事情呢?意外的是,Android的权限控制分的十分清理,不同程序之间的数据访问只能通过Intent,contentprovider相似的功能实现。也就是说你开发的运行在Android中的自动化程序想要捕获当时运行的AUT(ApplicationunderTest)界面上的控件等Element(该术语引自UIAutomation,觉得翻译成元素有点僵硬,故不作翻译)基本不可能,你也拿不到当时activeactivity的引用(截止本文发帖为止,自己暂时没有找到方法取得此引用)。无路可走了?模拟器里面不能走,外面能不能走?或许可以。。。。。。。
Android自动化测试初探.doc
codepub下载说明.txt

(The testing of applications under Android system should be a new field now. Many materials used on the Internet in this field are based on white box testing, usually based on JUnit framework and android in Android SDK Test and other namespaces, but there is a condition that it is necessary to use the source code of the program to provide a test access point, but this is not practical in many software enterprises. Many test engineers work in a completely black box, and can hardly touch the source code. Most white box tests are ended by developers themselves. Recall that the black box test automation under Windows previously used the framework based UI Automation automation test framework provided by Microsoft (the requested version is above framework 3.0, that is, the VS.NET2008 development environment). It is easy to use for those who are good at C #. I also wrote a lightweight automation framework based on UI Automation, which will be introduced in future blog posts. Can I do something similar to UI Automation in the Android operating system? Surprisingly, Android's permission control is very clean, and data access between different programs can only be achieved through similar functions of Intent and contentprovider. That is to say, it is almost impossible for the automated program you developed to run in Android to capture elements such as controls on the AUT (Application under Test) interface that was running at that time (the term is quoted from UIAutomation, which is a bit stiff when translated into elements, so it is not translated), and you can't get a reference to the active activity at that time (as of this post, you haven't found a way to get this reference for the time being). No way to go? Can you walk inside the simulator and outside? Maybe.......
Preliminary Exploration of Android Automated Test.doc
Codepub Download Description.txt)

[下载]21090007239.rar




上一篇:Android 屏幕保护程序源码
下一篇:《Android应用框架原理与程序设计》第三版