{{sellerTotalView > 1 ? __("sellers", {number: sellerTotalView}) : __("seller", {number: sellerTotalView}) }}, {{numTotalView > 1 ? __("items", {number: numTotalView}) : __("item", {number: numTotalView}) }}
free FREE

Change Your Zip Code

Inventory information and delivery speeds may vary for different locations.

Location History

{{email ? __('Got it!') : __('Restock Alert')}}

We will notify you by email when the item back in stock.

Cancel
Yami

Jingdong book

手机测试Robotium实战教程

{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}

手机测试Robotium实战教程

{{__(":people-members", {'people': item.limit_people_count})}} {{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ item.invalid_price }} {{ itemDiscount }}
Ends in
{{ itemCurrency }}{{ item.valid_price }}
{{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }}
{{ itemDiscount }}
{{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }} {{ itemCurrency }}{{ item.invalid_price }} {{itemDiscount}}
{{ itemCurrency }}{{ item.valid_price }}
Sale ends in
Sale will starts after Sale ends in
{{ getSeckillDesc(item.seckill_data) }}
{{ __( "Pay with Gift Card to get sale price: :itemCurrency:price", { 'itemCurrency' : itemCurrency, 'price' : (item.giftcard_price ? priceFormat(item.giftcard_price) : '0.00') } ) }} ({{ itemCurrency }}{{ priceFormat(item.giftcard_price / item.bundle_specification) }}/{{ item.unit }}) Details
Best before

Currently unavailable.

We don't know when or if this item will be back in stock.

Unavailable in your area.
Sold Out

Details

Full product details
Editer Recommend

国内第1本原创的Robotium图书

紧跟移动平台开发、测试的热点技术

全面讲解了用Robotium建立测试工程、测试项目搭建、自动化测试脚本编写、测试框架完善、Robotium自动化测试用例、测试代码批量运行、持续集成、Crash处理、跨应用解决方案、代码覆盖率、代码覆盖率展现、常见错误及解决方法等实战技术和技巧,帮助读者尽快学懂用Robotium进行移动测试。
Content Description

《手机测试Robotium实战教程》讲解了用Robotium进行移动测试的主要技术,并通过实例,让读者达到学以致用的目的,主要内容为:移动端自动化测试的工具选择、测试开发环境搭建、Robotium入门、建立测试工程、运行第1个Robotium测试实例、被测App详细功能介绍、实战测试项目搭建、自动化测试脚本编写、测试框架完善、Robotium自动化测试用例、测试代码批量运行、持续集成、Crash处理、跨应用解决方案、代码覆盖率、代码覆盖率展现、常见错误及解决方法等实战技术和技巧,将帮助读者尽快学懂用Robotium进行移动测试的知识。
《手机测试Robotium实战教程》适合移动端功能测试人员、Web端功能测试人员、自动化测试人员、测试开发人员、移动端开发人员阅读学习,也可以作为大专院校相关专业师生的学习用书和培训学校的教材。
Author Description

杨志伟,从2011年开始接触移动端自动化测试工作,积累了丰富的自动化测试案例实战经验,擅长整合主流无线端自动化测试框架的运用。曾就职于知名外企RingCentral,负责Mobile自动化测试框架的开发和持续改进工作;现就职于网龙网络有限公司,负责BDD模式的运用和推广工作。
Catalogue

目录

第1章自动化测试简介 1
1.1 何为自动化测试 2
1.2 自动化测试和手动测试的对比 2
1.3 移动端自动化测试工具的选择 3
1.3.1 Appium 3
1.3.2 uiautomator 4
1.3.3 Robotium 4
第2章测试开发环境搭建 6
2.1 JDK安装及其环境变量配置 7
2.2 Eclipse的安装 9
2.3 Android SDK的安装及环境变量配置 9
2.4 ADT插件的安装 12
2.5 Genymotion 12
第3章Robotium入门 18
3.1 Robotium简介 19
3.2 Robotium版 “Hello World” 19
3.2.1 导入被测试源码 19
3.2.2 新建测试工程 21
3.2.3 添加Robotium jar 22
3.2.4 新建第一个自动化测试类 23
3.2.5 运行第一个Robotium例子 24
3.3 基于APK的自动化测试 25
3.3.1 APK重签名 25
3.3.2 创建基于APK测试的测试工程 27
3.3.3 编写基于APK自动化测试的“HelloWorld”版 27
3.3.4 安装应用、运行自动化测试用例 29
3.4 基于APK测试的ID定位 30
3.5 Robotium API简介 35
3.6 Robotium录制回放 38
3.6.1 安装Recorder 38
3.6.2 录制回放脚本 41
第4章第一个实战项目 45
4.1 被测App简介 46
4.2 导入ToDoList APP源码 46
4.3 被测App的详细功能 50
第5章实战测试项目搭建 52
5.1 搭建实战测试项目 53
5.2 第一个测试用例 54
5.3 第一个自动化测试脚本 55
5.4 查看控件ID的工具 60
5.4.1 hierarchyviewer.bat的用法 61
5.4.2 uiautomatorviewer.bat的用法 62
第6章完善测试框架 64
6.1 编写抽象父类 65
6.2 提取控件ID类 71
6.3 操作统一入口类 74
6.4 更新抽象父类及测试用例 75
6.5 调试简介 79
第7章更多自动化测试用例 84
7.1 包管理 85
7.2 编写更多自动化测试用例 85
7.2.1 登录页面测试用例2 86
7.2.2 登录页面用例3 86
7.2.3 添加任务页面测试用例 93
7.2.4 任务列表页面测试用例 96
7.2.5 任务编辑页面测试用例 97
7.2.6 退出功能验证 102
第8章批量运行测试代码 104
8.1 TestSuite 105
8.2 Runner 107
8.3 生成JUnit格式的report 111
第9章持续集成 115
9.1 持续集成简介 116
9.2 持续集成工具 116
9.3 编译todolist项目源码 119
9.3.1 安装Ant 119
9.3.2 将添加build.xml到todolist项目 120
9.3.3 将build.xml添加到
todolisttest项目 124
9.4 Jenkins job的创建 127
9.5 Jenkins job的配置 130
9.6 shell脚本统一管理构建过程 135
9.7 Unit report展示 137
9.8 错误截图展示 142
9.9 参数化运行设备 145
9.10 完整的job配置 147
第10章Crash处理 150
10.1 crash处理机制 151
10.2 shell部分编码处理 151
10.3 CommonRunner代码逻辑 153
10.4 为Runner1加入crash处理逻辑 159
10.5 制造Crash场景 160
10.6 report合并 163
第11章跨应用解决方案 169
11.1 uiautomator 170
11.2 服务端编码 177
11.3 发送跨应用请求 183
11.4 跨应用实例 185
11.5 手动部署 188
第12章代码覆盖率 190
12.1 代码覆盖率的好处 191
12.2 使用EMMA统计代码覆盖率 191
12.3 合并代码覆盖率文件 197
12.4 创建代码覆盖率Jenkins job 200
12.5 代码覆盖率展现 204
第13章Android Studio和Gradle 206
13.1 Android Studio的安装和配置 207
13.2 Gradle简介与安装 208
13.2.1 Gradle简介 208
13.2.2 Gradle的安装 208
13.3 为Eclipse项目生成gradle配置文件 209
13.4 在Android Studio下新建todolist及其配置 212
13.5 持续集成配置 219
第14章常见错误及解决方法 223
Book Abstract

《手机测试Robotium实战教程》:
10.1 crash处理机制
当自动化测试用例的数目比较大时,批量运行的时候,可能会出现这种情况:当用例运行时,因为一些原因导致crash了,自动化测试用例无法继续运行下去。在回归测试阶段,要确保所有的自动化测试用例都被执行过,就必须解决这种crash续跑的问题。
理想情况下是,在某个自动化测试用例crash后,启动后续的自动化测试用例继续运行,然后crash前后的测试结果都可以保存下来。
因为是通过启动adb进程来运行自动化测试用例,所以,可以在while循环体内启动自动化测试用例,如果有crash产生,就继续执行循环体内的启动自动化测试用例操作,如果没有crash发生,则终止循环。实现思路是每个自动化测试用例开始运行时,把当前的Case号写入sdcard的某个特定文件中,如crash.txt,第二个自动化测试用例运行时把第二个自动化测试用例的Case号覆盖第一个用例的Case号,这样crash.txt永远保存的是当前运行的Case号,新建一个自动化测试用例来删除crash.txt,这个测试用例放在最后一个执行。这样如果顺利运行的话,没有发生crash,最后一个测试用例被执行到了,crash.txt就会被删除,若循环的判断条件不满足,只会执行一次循环体的内容,如果有crash产生,则继续进入循环体内执行。
因为crash的Case号和所有需要运行的Case号都可以获得,只需重新组织getAllTests的Case列表,即剔除当前Case及其之前的所有Case号,即可从出现crash处的下一个Case继续运行了。
report的处理,如果有crash出现,只需把report的命名加上crash的个数就可以区分出来了,最后再写一个程序把所有的report合并成一份就可以了。
……

Specifications

Brand Jingdong book
Brand Origin China

Disclaimer

Product packaging, specifications and price are subject to change without notice. All information about the products on our website is provided for information purposes only. Please always read labels, warnings and directions provided with the product before use.

View Full Terms of Use
Add to favorites
{{ $isZh ? coupon.coupon_name_sub : coupon.coupon_ename_sub | formatCurrency }}
{{__("Buy Directly")}} {{ itemCurrency }}{{ item.directly_price }}
Quantity
{{ quantity }}
{{ instockMsg }}
{{ limitText }}
{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}
Sold by JD@CHINA
Ship to
{{ __("Ship to United States only") }}
Free shipping over 69
Genuine guarantee

Added to Cart

Keep Shopping

More to Consider

{{ item.brand_name }}

{{ item.item_name }}

{{ item.currency }}{{ item.market_price }}

{{ item.currency }}{{ item.unit_price }}

{{ item.currency }}{{ item.unit_price }}

Coupons

{{ coupon.coupon_name_new | formatCurrency }}
Clip Clipped Over
{{ getCouponDescStr(coupon) }}
{{ coupon.use_time_desc }}
Expires soon {{ formatTime(coupon.use_end_time) }}

Share this item with friends

Cancel

Yami Gift Card

Get this exclusive deal when paying with gift card

Terms and Conditions

Gift card deals are special offers for selected products;

The gift card deals will automatically be activated if a customer uses gift card balance at check out and the balance is sufficient to pay for the total price of the shopping cart products with gift card deals;

You will not be able to activate the gift card deals if you choose other payment methods besides gift card. The products will be purchased at their normal prices;

If your account balance is not enough to pay for the products with gift card deals, you can choose to reload your gift card balance by clicking on the Reload button at either shopping cart page or check out page;

Products that have gift card deals can be recognized by a special symbol showing 'GC Deal';

For any additional questions or concerns, please contact our customer service;

Yamibuy reserves the right of final interpretation.

Sold by Yami

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

Yami is committed to provide our customers with a peace of mind when purchasing from us. Most items shipped from Yamibuy.com can be returned within 30 days of receipt of shipment (For Food, Beverages, Snacks, Dry Goods, Health supplements, Fresh Grocery and Perishables Goods, within 7 days of receipt of shipment due to damages or quality issues; To ensure that every customer receives safe and high-quality products, we do not provide refunds or returns for beauty products once they have been opened or used, except in the case of quality issues; Some products may have different policies or requirements associated with them, please see below for products under special categories, or contact Yami Customer Service for further assistance).
Thank you for your understanding and support.

Learn More

Sold by Yami

Terms and Conditions of Yami E-Gift Card

If you choose “Redeem automatically” as your delivery method, your gift card balance will be reload automatically after your order has been processed successfully;

If you choose “Send to Email”as your delivery method, the card number and CVV will be sent to the email address automatically;

Any user can use the card number and CVV to redeem the gift card, please keep your gift card information safely. If you have any trouble receiving email, please contact Yami customer service;

Yami gift card can be used to purchase both Yami owned or Marketplace products;

Yami gift card will never expire;

Yami gift card balance does not have to be used up at once;

All rights reserved by Yami.

Return Policy

Gift card that has already been consumed is non-refundable.

Sold by JD@CHINA

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Sold by JD@CHINA

Service Guarantee

Yami Cross-store Free Shipping over $69
Yami 30-days Return

Yami-China FC

Yami has a consolidation warehouse in China which collects multiple sellers’ packages and combines to one order. Our Yami consolidation warehouse will directly ship the packages to your door. Cross-store free shipping over $69.

Return Policy

You may return products within 30 days upon receiving the products. Sellers take responsibilities for any wrong shipment or missing items. Packing needs to be unopened for any other than quality issues return. We promise to pack carefully, but because goods are taking long journey to destinations, simple damages to packaging may occur. Any damages not causing internal goods quality problems are not allowed to return. If you open the package and any quality problem is found, please contact customer service within three days after receipt of goods.

Shipping Information

Yami Consolidation Service Shipping Fee $9.99(Free shipping over $69)

Sellers in China will ship their orders within 1-2 business days once the order is placed. Packages are sent to our consolidation warehouse in China and combined there. Our Yami consolidation warehouse will directly ship the packages to you via UPS. The average time for UPS to ship from China to the United States is about 10 working days and it can be traced using the tracking number. Due to the pandemic, the delivery time may be delayed by about 5 days. The package needs to be signed by the guest. If the receipt is not signed, the customer shall bear the risk of loss of the package.

Sold by JD@CHINA

Service Guarantee

Free shipping over 69
Genuine guarantee

Shipping

Yami Consolidated Shipping $9.99(Free shipping over $69)


Seller will ship the orders within 1-2 business days. The logistics time limit is expected to be 7-15 working days. In case of customs clearance, the delivery time will be extended by 3-7 days. The final receipt date is subject to the information of the postal company.

Yami Points information

All items are excluding from any promotion or points events on Yamibuy.com

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Yami

Download the Yami App

Back Top

Recommended for You

About the brand

Jingdong book

为您推荐

Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折

Reviews{{'('+ commentList.posts_count + ')'}}

Have your say. Be the first to help other guests.

Write a review
{{ totalRating }} Write a review
  • {{i}} star

    {{i}} stars

    {{ parseInt(commentRatingList[i]) }}%

Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}
Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}

No related comment~

Review

Yami Yami

{{ showTranslate(commentDetails) }}Show Less

{{ strLimit(commentDetails,800) }}Show more

Show Original

{{ commentDetails.content }}

Yami
Show All

{{ formatTime(commentDetails.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ commentDetails.likes_count }} {{ commentDetails.likes_count }} {{ commentDetails.reply_count }} {{commentDetails.in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Comments{{'(' + replyList.length + ')'}}

Yami Yami

{{ showTranslate(reply) }}Show Less

{{ strLimit(reply,800) }}Show more

Show Original

{{ reply.reply_content }}

{{ formatTime(reply.reply_in_dtm) }}

{{ reply.reply_likes_count }} {{ reply.reply_likes_count }} {{ reply.reply_reply_count }} {{reply.reply_in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Cancel

That’s all the comments so far!

Write a review
How would you rate this item?

Please add your comment.

  • A nice nickname will make your comments more popular!
  • The nickname in your account will be changed to the same as here.
Thanks for your review
Our community rely on great reviews like yours to find the best of Asia.

Report

If you find this content inappropriate and think it should be removed from the Yami.com site, let us know please.

Cancel

Are you sure to delete your review?

Cancel

You’ve Recently Viewed

About the brand

Jingdong book