Android UI 的快速自动化测试框架 Espresso

码农软件 · 软件分类 · GUI 测试工具 · 2019-11-26 14:13:20

软件介绍

Google 开源了 Espresso,这是一种Android自动化测试框架,使测试人员可以在云中x86机器的多线程环境里运行测试,并解决了关于UI测试的并发问题。

示例测试代码:

public void testSayHello() {
  onView(withId(R.id.name_field))
    .perform(typeText("Steve"));
  onView(withId(R.id.greet_button))
    .perform(click());
  onView(withText("Hello Steve!"))
    .check(matches(isDisplayed()));
}

兼容性:

  1. Codename                        API

  2. API Froyo                           8

  3. Gingerbread                      10

  4. Ice Cream Sandwich          15

  5. Jelly Bean                     16,17,18

  6. KitKat                                19

本文地址:https://www.codercto.com/soft/d/19837.html

You Can Program in C++

You Can Program in C++

Francis Glassborow / John Wiley & Sons / 2006-7 / 406.80元

An interactive and fun way to learn C++, one of the most popular high-level programming languages for graphic applications This unique, hands-on approach to learning C++ makes t......一起来看看 《You Can Program in C++》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

随机密码生成器
随机密码生成器

多种字符组合密码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码