<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Robotium</title>
	<atom:link href="https://www.aitaocui.cn/tag/257809/feed" rel="self" type="application/rss+xml" />
	<link>https://www.aitaocui.cn</link>
	<description>翡翠玉石爱好者聚集地</description>
	<lastBuildDate>Mon, 28 Nov 2022 07:41:16 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.1</generator>

<image>
	<url>https://www.aitaocui.cn/wp-content/uploads/2022/11/taocui.png</url>
	<title>Robotium</title>
	<link>https://www.aitaocui.cn</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Robotium(Android自动化测试框架)</title>
		<link>https://www.aitaocui.cn/article/369965.html</link>
					<comments>https://www.aitaocui.cn/article/369965.html#respond</comments>
		
		<dc:creator><![CDATA[苏杰]]></dc:creator>
		<pubDate>Mon, 28 Nov 2022 07:41:16 +0000</pubDate>
				<category><![CDATA[知识]]></category>
		<category><![CDATA[Robotium]]></category>
		<guid isPermaLink="false">https://www.aitaocui.cn/?p=369965</guid>

					<description><![CDATA[Robotium是一款国外的Android自动化测试框架，主要针对Android平台的应用进行黑盒自动化测试，它提供了模拟各种手势操作（点击、长按、滑动等）、查找和断言机制的API...]]></description>
										<content:encoded><![CDATA[</p>
<article>
<p>Robotium是一款国外的Android自动化测试框架，主要针对Android平台的应用进行黑盒自动化测试，它提供了模拟各种手势操作（点击、长按、滑动等）、查找和断言机制的API，能够对各种控件进行操作。Robotium结合Android官方提供的测试框架达到对应用程序进行自动化的测试。另外，Robotium 4.0版本已经支持对WebView的操作。Robotium 对Activity，Dialog，Toast，Menu 都是支持的。</p>
</article>
<article>
<h1>优点</h1>
<p>The Good:</p>
<p>·Easy to use</p>
<p>·Tests are easy to read</p>
<p>·Doesn&#x27;t require access to source code. Can test a APK</p>
<p>·Can identify elements easily (with caveat&#8230;more on this later) ·Can fall back on default Android framework ·Great support</p>
<h1>缺点</h1>
<p>The Bad :</p>
<p>·Not all views and objects are currently supported e.g. SlidingDrawer</p>
<p>·Slower compared to unit testing</p>
<p>·Single class containing all methods, Selenium 1 style. This is going to get messy ?</p>
<h1>用法</h1>
<p>Robotium的用法很简单，同时也是很有效的黑盒测试工具。我们在使用时通过Solo对象的实例，可以创建丰富的测试用例。Solo不仅对activity支持，对Toast，Menu，Dialog也是支持的。Solo的更多用法请参考javadoc文档</p>
<p>目前国内有几名爱好自动化测试的人员建立了中文站点，定期发表一些使用教程、案例、以及API翻译。</p>
</article>
<div class="mt-3 mb-3" style="max-width: 770px;height: auto;">
                                    </div>
<div class="mt-3 mb-3" style="max-width: 770px;height: auto;">
                                    </div>
<div class="mt-3 mb-3" style="max-width: 770px;height: auto;">
                                    </div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aitaocui.cn/article/369965.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
