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://codercto.com/soft/d/19837.html

Pragmatic Thinking and Learning

Pragmatic Thinking and Learning

Andy Hunt / The Pragmatic Bookshelf / 2008 / USD 34.95

In this title: together we'll journey together through bits of cognitive and neuroscience, learning and behavioral theory; you'll discover some surprising aspects of how our brains work; and, see how ......一起来看看 《Pragmatic Thinking and Learning》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具