锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲欧美日韩综合久久久久,国产精品亚洲综合专区片高清久久久 ,亚洲国产精品无码专区在线观看http://www.tkk7.com/qileilove/category/54152.html涓嶆兂鍋氬睂涓濈殑鐮佸啘錛屼笉鏄ソ欏圭洰緇忕悊錛佸睂涓濈敓娑粠姝ゅ紑濮嬶紒zh-cnFri, 16 May 2014 12:45:16 GMTFri, 16 May 2014 12:45:16 GMT60綆鍗曚粙緇嶅浣曚嬌鐢╮obotium榪涜鑷姩鍖栨祴璇?/title><link>http://www.tkk7.com/qileilove/articles/413706.html</link><dc:creator>欏哄叾鑷劧EVO</dc:creator><author>欏哄叾鑷劧EVO</author><pubDate>Thu, 15 May 2014 13:20:00 GMT</pubDate><guid>http://www.tkk7.com/qileilove/articles/413706.html</guid><wfw:comment>http://www.tkk7.com/qileilove/comments/413706.html</wfw:comment><comments>http://www.tkk7.com/qileilove/articles/413706.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/qileilove/comments/commentRss/413706.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/qileilove/services/trackbacks/413706.html</trackback:ping><description><![CDATA[<p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"> </p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 18pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -18pt;"><strong style="word-break: break-all;"><span style="word-break: break-all;"><span style="word-break: break-all;">1.<span style="word-break: break-all; font-weight: normal; font-size: 7pt;">      </span></span></span></strong><strong style="word-break: break-all;"><span style="word-break: break-all; font-family: 瀹嬩綋;">鍒涘緩涓涓畝鍗曠殑宸ョ▼</span></strong><span style="word-break: break-all; font-family: 瀹嬩綋;">錛堝彲鍙傝冩湰浜虹殑<a target="_self" style="word-break: break-all; text-decoration: underline; color: #009999;"><u style="word-break: break-all;"><strong style="word-break: break-all;">鏃ュ織</strong></u></a>銆婄涓涓簲鐢?/span><span style="word-break: break-all;">HelloWorld</span><span style="word-break: break-all; font-family: 瀹嬩綋;">銆嬶紝闇瑕佸璇ュ伐紼嬬◢鍋氫慨鏀癸級<strong style="word-break: break-all;">浣滀負琚祴紼嬪簭錛?/strong>榪愯鍚庢樉紺哄涓嬬晫闈?strong style="word-break: break-all;">錛?/strong></span><strong style="word-break: break-all;"></strong></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; line-height: normal !important;"> <a target="_blank" style="word-break: break-all; color: #009999;"><img src="http://www.51testing.com/attachments/2010/11/115892_201011171139341jxxn.jpg" border="0" style="word-break: break-all; max-width: 400px;" alt="" /></a></span></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 18pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -18pt;"><strong style="word-break: break-all;"><span style="word-break: break-all;"><span style="word-break: break-all;">2.<span style="word-break: break-all; font-weight: normal; font-size: 7pt;">      </span></span></span></strong><strong style="word-break: break-all;"><span style="word-break: break-all; font-family: 瀹嬩綋;">鍒涘緩涓涓?/span><span style="word-break: break-all;"><a target="_self" style="word-break: break-all; text-decoration: underline; color: #009999;"><u style="word-break: break-all;"><strong style="word-break: break-all;">Test</strong></u></a> Project</span></strong></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 21pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -21pt;"><span style="word-break: break-all;"><span style="word-break: break-all;">1).<span style="word-break: break-all; font-size: 7pt;">     </span></span></span><span style="word-break: break-all; font-family: 瀹嬩綋;">鎵撳紑</span><span style="word-break: break-all;">eclipse</span><span style="word-break: break-all; font-family: 瀹嬩綋;">錛岄夋嫨</span><span style="word-break: break-all;">File->New->Project…->Android Test Project</span><span style="word-break: break-all; font-family: 瀹嬩綋;">錛岀偣鍑?/span><span style="word-break: break-all;">Next</span><span style="word-break: break-all; font-family: 瀹嬩綋;">銆?/span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; line-height: normal !important;"> <a target="_blank" style="word-break: break-all; color: #009999;"><img src="http://www.51testing.com/attachments/2010/11/115892_201011171140281CxeH.jpg" border="0" style="word-break: break-all; max-width: 400px;" alt="" /></a></span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"> </p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 21pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -21pt;"><span style="word-break: break-all;"><span style="word-break: break-all;">2).<span style="word-break: break-all; font-size: 7pt;">     </span></span></span><span style="word-break: break-all; font-family: 瀹嬩綋;">鍦?/span><span style="word-break: break-all;">Test Project Name</span><span style="word-break: break-all; font-family: 瀹嬩綋;">涓緭鍏?a target="_self" style="word-break: break-all; text-decoration: underline; color: #009999;"><u style="word-break: break-all;"><strong style="word-break: break-all;">嫻嬭瘯</strong></u></a>宸ョ▼鐨勫悕縐幫紝濡傦細</span><span style="word-break: break-all;">HelloWorldTest</span><span style="word-break: break-all; font-family: 瀹嬩綋;">銆傞夋嫨</span><span style="word-break: break-all;">An existing <a target="_self" style="word-break: break-all; text-decoration: underline; color: #009999;"><u style="word-break: break-all;"><strong style="word-break: break-all;">Android</strong></u></a> Project</span><span style="word-break: break-all; font-family: 瀹嬩綋;">錛岀偣鍑誨彸杈圭殑</span><span style="word-break: break-all;">Browse…</span><span style="word-break: break-all; font-family: 瀹嬩綋;">鎸夐挳銆?/span></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 21pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -21pt;"><span style="word-break: break-all; font-family: 瀹嬩綋;"><a target="_blank" style="word-break: break-all; color: #009999;"><img src="http://www.51testing.com/attachments/2010/11/115892_201011171141291TwGt.jpg" border="0" style="word-break: break-all; max-width: 400px;" alt="" /></a></span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 21pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -21pt;"><span style="word-break: break-all;"><span style="word-break: break-all;">3).<span style="word-break: break-all; font-size: 7pt;">     </span></span></span><span style="word-break: break-all; font-family: 瀹嬩綋;">閫夋嫨琚祴宸ョ▼錛屽涔嬪墠鍒涘緩鐨?/span><span style="word-break: break-all;">HelloWorldnp</span><span style="word-break: break-all; font-family: 瀹嬩綋;">錛岀偣鍑?/span><span style="word-break: break-all;">OK</span><span style="word-break: break-all; font-family: 瀹嬩綋;">鎸夐挳銆?/span></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 21pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -21pt;"><span style="word-break: break-all; font-family: 瀹嬩綋;"><a target="_blank" style="word-break: break-all; color: #009999;"><img src="http://www.51testing.com/attachments/2010/11/115892_201011171142231zUo6.jpg" border="0" style="word-break: break-all; max-width: 400px;" alt="" /></a></span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 21pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -21pt;"><span style="word-break: break-all;"><span style="word-break: break-all;">4).<span style="word-break: break-all; font-size: 7pt;">     </span></span></span><span style="word-break: break-all; font-family: 瀹嬩綋;">浼氳嚜鍔ㄩ夋嫨鍜岃緭鍏?/span><span style="word-break: break-all;">Build Target</span><span style="word-break: break-all; font-family: 瀹嬩綋;">鍜?/span><span style="word-break: break-all;">Properties</span><span style="word-break: break-all; font-family: 瀹嬩綋;">錛屽彲浠ユ寜鐓ч粯璁ょ殑錛屼笉鐢ㄤ慨鏀廣?/span></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 21pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -21pt;"><span style="word-break: break-all; font-family: 瀹嬩綋;"><a target="_blank" style="word-break: break-all; color: #009999;"><img src="http://www.51testing.com/attachments/2010/11/115892_2010111711431619omJ.jpg" border="0" style="word-break: break-all; max-width: 400px;" alt="" /></a></span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 21pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -21pt;"><span style="word-break: break-all;"><span style="word-break: break-all;">5).<span style="word-break: break-all; font-size: 7pt;">     </span></span></span><span style="word-break: break-all; font-family: 瀹嬩綋;">涓涓柊寤虹殑嫻嬭瘯宸ョ▼錛?/span><span style="word-break: break-all;">HelloWorldTest</span><span style="word-break: break-all; font-family: 瀹嬩綋;">錛夊氨鍒涘緩濂戒簡錛屽涓嬪浘錛?/span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; line-height: normal !important;"> <a target="_blank" style="word-break: break-all; color: #009999;"><img src="http://www.51testing.com/attachments/2010/11/115892_201011171143581wkfC.jpg" border="0" style="word-break: break-all; max-width: 400px;" alt="" /></a></span></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 18pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -18pt;"><strong style="word-break: break-all;"><span style="word-break: break-all;"><span style="word-break: break-all;">3.<span style="word-break: break-all; font-weight: normal; font-size: 7pt;">      </span></span></span></strong><strong style="word-break: break-all;"><span style="word-break: break-all; font-family: 瀹嬩綋;">鍒涘緩涓涓?/span><span style="word-break: break-all;">Test Case</span></strong></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 21pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -21pt;"><span style="word-break: break-all;"><span style="word-break: break-all;">1).<span style="word-break: break-all; font-size: 7pt;">     </span></span></span><span style="word-break: break-all; font-family: 瀹嬩綋;">鍦?/span><span style="word-break: break-all;">HelloWorldTest->src->com.liliandroid.helloworld.test</span><span style="word-break: break-all; font-family: 瀹嬩綋;">涓婏紝鍙沖嚮閫夋嫨</span><span style="word-break: break-all;">New->Class</span><span style="word-break: break-all; font-family: 瀹嬩綋;">錛屽垱寤轟竴涓?/span><span style="word-break: break-all;">Test Case</span><span style="word-break: break-all; font-family: 瀹嬩綋;">銆?/span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; line-height: normal !important;"> <a target="_blank" style="word-break: break-all; color: #009999;"><img src="http://www.51testing.com/attachments/2010/11/115892_2010111711444916FRr.jpg" border="0" style="word-break: break-all; max-width: 400px;" alt="" /></a></span></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 21pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -21pt;"><span style="word-break: break-all;"><span style="word-break: break-all;">2).<span style="word-break: break-all; font-size: 7pt;">     </span></span></span><span style="word-break: break-all; font-family: 瀹嬩綋;">鍦?/span><span style="word-break: break-all;">Name</span><span style="word-break: break-all; font-family: 瀹嬩綋;">涓緭鍏?/span><span style="word-break: break-all;">Test Case</span><span style="word-break: break-all; font-family: 瀹嬩綋;">鐨勫悕瀛楋紝濡傦細</span><span style="word-break: break-all;">UITextTest</span><span style="word-break: break-all; font-family: 瀹嬩綋;">銆?/span></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 21pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -21pt;"><span style="word-break: break-all; font-family: 瀹嬩綋;"><a target="_blank" style="word-break: break-all; color: #009999;"><img src="http://www.51testing.com/attachments/2010/11/115892_201011171146061ZqbX.jpg" border="0" style="word-break: break-all; max-width: 400px;" alt="" /></a></span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 21pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -21pt;"><span style="word-break: break-all;"><span style="word-break: break-all;">3).<span style="word-break: break-all; font-size: 7pt;">     </span></span></span><span style="word-break: break-all; font-family: 瀹嬩綋;">鍒涘緩濂界殑</span><span style="word-break: break-all;">Test Case</span><span style="word-break: break-all; font-family: 瀹嬩綋;">濡備笅鍥撅細</span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; line-height: normal !important;"> <a target="_blank" style="word-break: break-all; color: #009999;"><img src="http://www.51testing.com/attachments/2010/11/115892_2010111711470517ry2.jpg" border="0" style="word-break: break-all; max-width: 400px;" alt="" /></a></span></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 18pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -18pt;"><strong style="word-break: break-all;"><span style="word-break: break-all;"><span style="word-break: break-all;">4.<span style="word-break: break-all; font-weight: normal; font-size: 7pt;">      </span></span></span></strong><strong style="word-break: break-all;"><span style="word-break: break-all; font-family: 瀹嬩綋;">瀵煎叆</span><span style="word-break: break-all;">robotium.jar</span></strong></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 21pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -21pt;"><span style="word-break: break-all;"><span style="word-break: break-all;">1).<span style="word-break: break-all; font-size: 7pt;">     </span></span></span><span style="word-break: break-all; font-family: 瀹嬩綋;">閫夋嫨嫻嬭瘯宸ョ▼</span><span style="word-break: break-all;">HelloWorldTest</span><span style="word-break: break-all; font-family: 瀹嬩綋;">鍙沖嚮錛岄夋嫨</span><span style="word-break: break-all;">Build Path->Configure Build Path…</span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; line-height: normal !important;"> <a target="_blank" style="word-break: break-all; color: #009999;"><img src="http://www.51testing.com/attachments/2010/11/115892_201011171147451aNGl.jpg" border="0" style="word-break: break-all; max-width: 400px;" alt="" /></a></span></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 21pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -21pt;"><span style="word-break: break-all;"><span style="word-break: break-all;">2).<span style="word-break: break-all; font-size: 7pt;">     </span></span></span><span style="word-break: break-all; font-family: 瀹嬩綋;">鍦ㄦ墦寮鐨?/span><span style="word-break: break-all;">Properties for HelloWorldTest</span><span style="word-break: break-all; font-family: 瀹嬩綋;">涓偣鍑?/span><span style="word-break: break-all;">Add External JARs…</span><span style="word-break: break-all; font-family: 瀹嬩綋;">鎸夐挳銆?/span></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 21pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -21pt;"><span style="word-break: break-all; font-family: 瀹嬩綋;"><a target="_blank" style="word-break: break-all; color: #009999;"><img src="http://www.51testing.com/attachments/2010/11/115892_201011171148351A19g.jpg" border="0" style="word-break: break-all; max-width: 400px;" alt="" /></a></span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 21pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -21pt;"><span style="word-break: break-all;"><span style="word-break: break-all;">3).<span style="word-break: break-all; font-size: 7pt;">     </span></span></span><span style="word-break: break-all; font-family: 瀹嬩綋;">鍥犱負涔嬪墠鍒涘緩鐨勫伐紼嬬殑</span><span style="word-break: break-all;">SDK</span><span style="word-break: break-all; font-family: 瀹嬩綋;">鏄?/span><span style="word-break: break-all;">2.2</span><span style="word-break: break-all; font-family: 瀹嬩綋;">鐨勶紝鎵浠ラ夋嫨</span><span style="word-break: break-all;">robotium-solo-1.8.0.jar</span><span style="word-break: break-all; font-family: 瀹嬩綋;">銆?/span></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 21pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -21pt;"><span style="word-break: break-all; font-family: 瀹嬩綋;"><a target="_blank" style="word-break: break-all; color: #009999;"><img src="http://www.51testing.com/attachments/2010/11/115892_2010111711492218gV7.jpg" border="0" style="word-break: break-all; max-width: 400px;" alt="" /></a></span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 21pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -21pt;"><span style="word-break: break-all;"><span style="word-break: break-all;">4).<span style="word-break: break-all; font-size: 7pt;">     </span></span></span><span style="word-break: break-all; font-family: 瀹嬩綋;">鐐瑰嚮</span><span style="word-break: break-all;">OK</span><span style="word-break: break-all; font-family: 瀹嬩綋;">鎸夐挳銆?/span></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 21pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -21pt;"><span style="word-break: break-all; font-family: 瀹嬩綋;"><a target="_blank" style="word-break: break-all; color: #009999;"><img src="http://www.51testing.com/attachments/2010/11/115892_201011171150121INXF.jpg" border="0" style="word-break: break-all; max-width: 400px;" alt="" /></a></span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 18pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -18pt;"><strong style="word-break: break-all;"><span style="word-break: break-all;"><span style="word-break: break-all;">5.<span style="word-break: break-all; font-weight: normal; font-size: 7pt;">      </span></span></span></strong><strong style="word-break: break-all;"><span style="word-break: break-all; font-family: 瀹嬩綋;">淇敼</span><span style="word-break: break-all;">Test Case</span></strong></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-family: 瀹嬩綋;">鎵撳紑</span><span style="word-break: break-all;">UITextTest.java</span><span style="word-break: break-all; font-family: 瀹嬩綋;">錛岃緭鍏ヤ互涓嬪唴瀹瑰茍淇濆瓨錛?/span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"> </p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><strong style="word-break: break-all; line-height: normal !important;"><span style="word-break: break-all; font-size: 10pt; color: #7f0055; font-family: 'Courier New';">package</span></strong><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">com.liliandroid.helloworld.test;</span></p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"> </p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><strong style="word-break: break-all; line-height: normal !important;"><span style="word-break: break-all; font-size: 10pt; color: #7f0055; font-family: 'Courier New';">import</span></strong><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">android.test.ActivityInstrumentationTestCase2;</span></p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"> </p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><strong style="word-break: break-all; line-height: normal !important;"><span style="word-break: break-all; font-size: 10pt; color: #7f0055; font-family: 'Courier New';">import</span></strong><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">com.liliandroid.helloworld.ActivityMain;</span></p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><strong style="word-break: break-all; line-height: normal !important;"><span style="word-break: break-all; font-size: 10pt; color: #7f0055; font-family: 'Courier New';">import</span></strong><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">com.jayway.android.robotium.solo.Solo;</span></p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"> </p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><strong style="word-break: break-all; line-height: normal !important;"><span style="word-break: break-all; font-size: 10pt; color: #7f0055; font-family: 'Courier New';">public</span></strong><strong style="word-break: break-all; line-height: normal !important;"><span style="word-break: break-all; font-size: 10pt; color: #7f0055; font-family: 'Courier New';">class</span></strong><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">UITextTest</span><strong style="word-break: break-all; line-height: normal !important;"><span style="word-break: break-all; font-size: 10pt; color: #7f0055; font-family: 'Courier New';">extends</span></strong><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">ActivityInstrumentationTestCase2<ActivityMain>{</span></p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"> </p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">      </span><strong style="word-break: break-all; line-height: normal !important;"><span style="word-break: break-all; font-size: 10pt; color: #7f0055; font-family: 'Courier New';">private</span></strong><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">Solo</span><span style="word-break: break-all; line-height: normal !important; font-size: 10pt; color: #0000c0; font-family: 'Courier New';">solo</span><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">;</span></p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"> </p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">      </span><strong style="word-break: break-all; line-height: normal !important;"><span style="word-break: break-all; font-size: 10pt; color: #7f0055; font-family: 'Courier New';">public</span></strong><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">UITextTest() {</span></p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">          </span><strong style="word-break: break-all; line-height: normal !important;"><span style="word-break: break-all; font-size: 10pt; color: #7f0055; font-family: 'Courier New';">super</span></strong><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">(</span><span style="word-break: break-all; line-height: normal !important; font-size: 10pt; color: #2a00ff; font-family: 'Courier New';">"com.liliandroid.helloworld"</span><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">, ActivityMain.</span><strong style="word-break: break-all; line-height: normal !important;"><span style="word-break: break-all; font-size: 10pt; color: #7f0055; font-family: 'Courier New';">class</span></strong><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">);</span></p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;"><span style="word-break: break-all;">          </span>}</span></p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">          </span></p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">      </span><strong style="word-break: break-all; line-height: normal !important;"><span style="word-break: break-all; font-size: 10pt; color: #7f0055; font-family: 'Courier New';">public</span></strong><strong style="word-break: break-all; line-height: normal !important;"><span style="word-break: break-all; font-size: 10pt; color: #7f0055; font-family: 'Courier New';">void</span></strong><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">setUp()</span><strong style="word-break: break-all; line-height: normal !important;"><span style="word-break: break-all; font-size: 10pt; color: #7f0055; font-family: 'Courier New';">throws</span></strong><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">Exception {</span></p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">          </span><span style="word-break: break-all; line-height: normal !important; font-size: 10pt; color: #0000c0; font-family: 'Courier New';">solo</span><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">=</span><strong style="word-break: break-all; line-height: normal !important;"><span style="word-break: break-all; font-size: 10pt; color: #7f0055; font-family: 'Courier New';">new</span></strong><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">Solo(getInstrumentation(), getActivity());</span></p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;"><span style="word-break: break-all;">      </span><span style="word-break: break-all;">      </span> }</span></p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;"><span style="word-break: break-all;">          </span> <span style="word-break: break-all;">  </span></span></p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">      </span><strong style="word-break: break-all; line-height: normal !important;"><span style="word-break: break-all; font-size: 10pt; color: #7f0055; font-family: 'Courier New';">public</span></strong><strong style="word-break: break-all; line-height: normal !important;"><span style="word-break: break-all; font-size: 10pt; color: #7f0055; font-family: 'Courier New';">void</span></strong><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">testUI()</span><strong style="word-break: break-all; line-height: normal !important;"><span style="word-break: break-all; font-size: 10pt; color: #7f0055; font-family: 'Courier New';">throws</span></strong><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">Exception {</span></p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">          </span><strong style="word-break: break-all; line-height: normal !important;"><span style="word-break: break-all; font-size: 10pt; color: #7f0055; font-family: 'Courier New';">boolean</span></strong><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">expected =</span><strong style="word-break: break-all; line-height: normal !important;"><span style="word-break: break-all; font-size: 10pt; color: #7f0055; font-family: 'Courier New';">true</span></strong><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">;</span></p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">          </span><strong style="word-break: break-all; line-height: normal !important;"><span style="word-break: break-all; font-size: 10pt; color: #7f0055; font-family: 'Courier New';">boolean</span></strong><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">actual =</span><span style="word-break: break-all; line-height: normal !important; font-size: 10pt; color: #0000c0; font-family: 'Courier New';">solo</span><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">.searchText(</span><span style="word-break: break-all; line-height: normal !important; font-size: 10pt; color: #2a00ff; font-family: 'Courier New';">"This"</span><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">) &&</span><span style="word-break: break-all; line-height: normal !important; font-size: 10pt; color: #0000c0; font-family: 'Courier New';">solo</span><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">.searchText(</span><span style="word-break: break-all; line-height: normal !important; font-size: 10pt; color: #2a00ff; font-family: 'Courier New';">"is"</span><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">);</span></p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;"><span style="word-break: break-all;">          </span> <em style="word-break: break-all;">assertEquals</em>(</span><span style="word-break: break-all; line-height: normal !important; font-size: 10pt; color: #2a00ff; font-family: 'Courier New';">"This and/or is are not found"</span><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">, expected, actual);</span></p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">          </span></p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;"><span style="word-break: break-all;">      </span>}</span></p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"> </p><p align="left" style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">   </span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-size: 10pt; font-family: 'Courier New'; line-height: normal !important;">}</span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"> </p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-family: 瀹嬩綋;">娉細榪欎釜</span><span style="word-break: break-all;">Case</span><span style="word-break: break-all; font-family: 瀹嬩綋;">鏄祴璇曡繍琛屼簡</span><span style="word-break: break-all;">ActivityMain</span><span style="word-break: break-all; font-family: 瀹嬩綋;">鍚庣殑鐣岄潰涓婃槸鍚︽湁</span><span style="word-break: break-all;">This</span><span style="word-break: break-all; font-family: 瀹嬩綋;">鍜?/span><span style="word-break: break-all;">is</span><span style="word-break: break-all; font-family: 瀹嬩綋;">榪欎袱涓枃瀛椼?/span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; line-height: normal !important;"><a target="_blank" style="word-break: break-all; color: #009999;"><img src="http://www.51testing.com/attachments/2010/11/115892_201011171153451vQj9.jpg" border="0" style="word-break: break-all; max-width: 400px;" alt="" /></a> </span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"> </p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 18pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -18pt;"><strong style="word-break: break-all;"><span style="word-break: break-all;"><span style="word-break: break-all;">6.<span style="word-break: break-all; font-weight: normal; font-size: 7pt;">      </span></span></span></strong><strong style="word-break: break-all;"><span style="word-break: break-all; font-family: 瀹嬩綋;">榪愯嫻嬭瘯紼嬪簭</span></strong></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-family: 瀹嬩綋;">閫夋嫨嫻嬭瘯宸ョ▼</span><span style="word-break: break-all;">HelloWorldTest</span><span style="word-break: break-all; font-family: 瀹嬩綋;">鍙沖嚮錛岄夋嫨</span><span style="word-break: break-all;">Run As->Android <a target="_self" style="word-break: break-all; text-decoration: underline; color: #009999;"><u style="word-break: break-all;"><strong style="word-break: break-all;">JUnit</strong></u></a> Test</span><span style="word-break: break-all; font-family: 瀹嬩綋;">榪愯嫻嬭瘯紼嬪簭</span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-family: 瀹嬩綋;"><a target="_blank" style="word-break: break-all; color: #009999;"><img src="http://www.51testing.com/attachments/2010/11/115892_201011171154471v8KZ.jpg" border="0" style="word-break: break-all; max-width: 400px;" alt="" /></a></span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"> </p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-family: 瀹嬩綋;">榪愯瀹屽悗鐨勬祴璇曠粨鏋滅晫闈紙</span><span style="word-break: break-all;">Pass</span><span style="word-break: break-all; font-family: 瀹嬩綋;">錛?/span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; line-height: normal !important;"> <a target="_blank" style="word-break: break-all; color: #009999;"><img src="http://www.51testing.com/attachments/2010/11/115892_201011171155311zhue.jpg" border="0" style="word-break: break-all; max-width: 400px;" alt="" /></a></span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"> </p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; font-family: 瀹嬩綋;">榪愯瀹屽悗鐨勬祴璇曠粨鏋滅晫闈紙</span><span style="word-break: break-all;">Fail</span><span style="word-break: break-all; font-family: 瀹嬩綋;">錛?/span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; line-height: normal !important;"><a target="_blank" style="word-break: break-all; color: #009999;"><img src="http://www.51testing.com/attachments/2010/11/115892_201011171156021mehX.jpg" border="0" style="word-break: break-all; max-width: 400px;" alt="" /></a> </span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"> </p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"> </p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"><span style="word-break: break-all; line-height: normal !important; font-family: 瀹嬩綋;">娉細</span></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 18pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -18pt;"><span style="word-break: break-all;"><span style="word-break: break-all;">1.<span style="word-break: break-all; font-size: 7pt;">      </span></span></span><span style="word-break: break-all; font-family: 瀹嬩綋;">琚祴璇曠殑宸ョ▼鍜屾祴璇曠殑宸ョ▼鍙互鏄笉鍚岀殑</span><span style="word-break: break-all;">SDK</span><span style="word-break: break-all; font-family: 瀹嬩綋;">錛屼絾鏄笉鐭ラ亾鏈変粈涔堝獎鍝嶃?/span></p><p style="word-break: break-all; line-height: 21.59375px; margin: 0cm 0cm 0pt 18pt; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff; text-indent: -18pt;"><span style="word-break: break-all;"><span style="word-break: break-all;">2.<span style="word-break: break-all; font-size: 7pt;">      </span></span></span><span style="word-break: break-all; font-family: 瀹嬩綋;">榪欐槸鍦?/span><span style="word-break: break-all;">eclipse</span><span style="word-break: break-all; font-family: 瀹嬩綋;">涓繘琛屾祴璇曠殑錛屼篃鍙互鍦ㄦā鎷熷櫒鎴栬?a target="_self" style="word-break: break-all; text-decoration: underline; color: #009999;"><u style="word-break: break-all;"><strong style="word-break: break-all;">鎵嬫満</strong></u></a>涓婃祴璇曘傚鏋滈渶瑕佺洿鎺ュ湪妯℃嫙鍣ㄦ垨鑰呮墜鏈轟笂嫻嬭瘯錛岄渶瑕佸皢嫻嬭瘯鍖呭拰琚祴璇曞寘鏀規垚鐩稿悓鐨勭鍚嶃傦紙鍏充簬</span><span style="word-break: break-all;">apk</span><span style="word-break: break-all; font-family: 瀹嬩綋;">鍖呯殑絳懼悕鍜岄噸絳懼悕錛岃鍙傝冩湰浜烘棩蹇椼婇噸鏂扮鍚?/span><span style="word-break: break-all;">APK</span><span style="word-break: break-all; font-family: 瀹嬩綋;">鏂囦歡銆嬶級</span></p><p style="word-break: break-all; line-height: 21.59375px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"> </p><img src ="http://www.tkk7.com/qileilove/aggbug/413706.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/qileilove/" target="_blank">欏哄叾鑷劧EVO</a> 2014-05-15 21:20 <a href="http://www.tkk7.com/qileilove/articles/413706.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Robotium閽堝鍙湁apk鍖呯殑嫻嬭瘯鏂規硶http://www.tkk7.com/qileilove/articles/413705.html欏哄叾鑷劧EVO欏哄叾鑷劧EVOThu, 15 May 2014 13:16:00 GMThttp://www.tkk7.com/qileilove/articles/413705.htmlhttp://www.tkk7.com/qileilove/comments/413705.htmlhttp://www.tkk7.com/qileilove/articles/413705.html#Feedback0http://www.tkk7.com/qileilove/comments/commentRss/413705.htmlhttp://www.tkk7.com/qileilove/services/trackbacks/413705.html闃呰鍏ㄦ枃

欏哄叾鑷劧EVO 2014-05-15 21:16 鍙戣〃璇勮
]]>
Robotium鐜鎼緩涓庢柊鎵嬪叆闂ㄦ暀紼?/title><link>http://www.tkk7.com/qileilove/articles/413704.html</link><dc:creator>欏哄叾鑷劧EVO</dc:creator><author>欏哄叾鑷劧EVO</author><pubDate>Thu, 15 May 2014 13:15:00 GMT</pubDate><guid>http://www.tkk7.com/qileilove/articles/413704.html</guid><wfw:comment>http://www.tkk7.com/qileilove/comments/413704.html</wfw:comment><comments>http://www.tkk7.com/qileilove/articles/413704.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/qileilove/comments/commentRss/413704.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/qileilove/services/trackbacks/413704.html</trackback:ping><description><![CDATA[<ul style="margin: 1.5em 2.2em; padding: 0px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background-color: #ffffff; list-style: none outside; line-height: 1.5; color: #444444; font-family: Georgia, 'Times New Roman', Times, serif;"><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: disc;"><h1><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent;">鍑嗗宸ュ叿錛?a target="_blank" style="margin: 0px; padding: 0px; vertical-align: baseline; background-color: transparent; color: #e01222; text-decoration: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">Robotium璧勬枡涓嬭澆</a></strong></h1></li><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: disc;"><h1>鐭ヨ瘑鍑嗗錛?/h1></li></ul><ol style="margin: 1.5em 2.2em; padding: 0px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background-color: #ffffff; list-style: none outside; line-height: 1.5; color: #444444; font-family: Georgia, 'Times New Roman', Times, serif;"><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: decimal;">java鍩虹鐭ヨ瘑錛屽鍩烘湰鐨勬暟鎹粨鏋勩佽娉曠粨鏋勩佺被銆佺戶鎵跨瓑</li><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: decimal;">瀵笰ndroid緋葷粺杈冧負鐔熸倝錛屼簡瑙e洓澶х粍浠訛紝浼氱紪鍐欑畝鍗曠殑Android搴旂敤紼嬪簭</li><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: decimal;">鐔熸倝Eclipse IDE浣跨敤鏂規硶</li><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: decimal;">鏈夎凍澶熺殑鑰愬績涓庢帰绱㈢簿紲烇紝閬囧埌闂鍙互鐔熺粌鐨?a target="_blank" style="margin: 0px; padding: 0px; vertical-align: baseline; background-color: transparent; color: #e01222; text-decoration: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">Google</a></li></ol><ul style="margin: 1.5em 2.2em; padding: 0px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background-color: #ffffff; list-style: none outside; line-height: 1.5; color: #444444; font-family: Georgia, 'Times New Roman', Times, serif;"><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: disc;"><h1><span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; line-height: 26px;">鐜鎼緩</span></h1></li></ul><ol style="margin: 1.5em 2.2em; padding: 0px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background-color: #ffffff; list-style: none outside; line-height: 1.5; color: #444444; font-family: Georgia, 'Times New Roman', Times, serif;"><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: decimal;">瀹夎jdk錛岄厤緗幆澧冨彉閲忥紝濡傛灉涓嶄細璇瘋嚜琛?a target="_blank" style="margin: 0px; padding: 0px; vertical-align: baseline; background-color: transparent; color: #e01222; text-decoration: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">Google</a></li><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: decimal;">涓嬭澆瀹夎Android SDK錛屽茍鏇存柊</li><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: decimal;">涓嬭澆Eclipse錛屽茍瀹夎ADT鎻掍歡錛岄泦鎴怉ndroid SDK</li></ol><ul style="margin: 1.5em 2.2em; padding: 0px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background-color: #ffffff; list-style: none outside; line-height: 1.5; color: #444444; font-family: Georgia, 'Times New Roman', Times, serif;"><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: disc;"><h1>Robotium鏂版墜鍏ラ棬</h1></li></ul><ol style="margin: 1.5em 2.2em; padding: 0px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background-color: #ffffff; list-style: none outside; line-height: 1.5; color: #444444; font-family: Georgia, 'Times New Roman', Times, serif;"><ol style="margin: 1.5em 2.2em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style: none outside; line-height: 1.5;"><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: decimal;">涓嬭澆Robotium<a title=" ExampleTestProject_v4.0.zip" target="_blank" style="margin: 0px; padding: 0px; vertical-align: baseline; background-color: transparent; color: #e01222; text-decoration: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">瀹樻柟渚嬪瓙</a>浠ュ強鏈鏂扮殑<a title=" robotium-solo-4.0.jar" target="_blank" style="margin: 0px; padding: 0px; vertical-align: baseline; background-color: transparent; color: #e01222; text-decoration: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">JAR</a>鍖?/li><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: decimal;">鎵撳紑Eclipse瀵煎叆琚祴璇曞伐紼?p style="margin: 0px 0px 1.5em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; orphans: 4;"></p><div class="9np3bpp" id="attachment_211" aligncenter"="" style="margin: 0px auto 1.5em; padding-top: 5px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; box-sizing: border-box; clear: both; text-align: center; max-width: 100%; height: auto; width: 310px;"><a style="margin: 0px; padding: 0px; vertical-align: baseline; background-color: transparent; color: #e01222; text-decoration: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"><img wp-image-211"="" title="鐐瑰嚮鏌ョ湅澶у浘" alt="瀵煎叆琚祴宸ョ▼" src="http://www.robotium.cn/wp-content/uploads/2013/03/1-300x180.png" width="300" height="180" style="margin: 0.75em 0px 5px; padding: 0px; border: 0px none; outline: 0px; vertical-align: baseline; background-color: transparent; max-width: 100%; height: auto;" /></a><p style="margin: 0.6em 0px -0.2em; padding: 0px; border: 0px; outline: 0px; font-size: 0.8em; vertical-align: baseline; background-color: transparent; orphans: 4; font-style: italic; background-position: initial initial; background-repeat: initial initial;">鐐瑰嚮鏌ョ湅澶у浘</p></div></li><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: decimal;">鍒涘緩嫻嬭瘯宸ョ▼錛氶夋嫨Android Test Project錛屽茍鐐瑰嚮涓嬩竴姝?p style="margin: 0px 0px 1.5em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; orphans: 4;"></p><div class="pnnrtlr" id="attachment_220" aligncenter"="" style="margin: 0px auto 1.5em; padding-top: 5px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; box-sizing: border-box; clear: both; text-align: center; max-width: 100%; height: auto; width: 265px;"><a style="margin: 0px; padding: 0px; vertical-align: baseline; background-color: transparent; color: #e01222; text-decoration: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"><img wp-image-220"="" title="鐐瑰嚮鏌ョ湅澶у浘" alt="鐐瑰嚮鏌ョ湅澶у浘" src="http://www.robotium.cn/wp-content/uploads/2013/03/11-255x300.png" width="255" height="300" style="margin: 0.75em 0px 5px; padding: 0px; border: 0px none; outline: 0px; vertical-align: baseline; background-color: transparent; max-width: 100%; height: auto;" /></a><p style="margin: 0.6em 0px -0.2em; padding: 0px; border: 0px; outline: 0px; font-size: 0.8em; vertical-align: baseline; background-color: transparent; orphans: 4; font-style: italic; background-position: initial initial; background-repeat: initial initial;">鐐瑰嚮鏌ョ湅澶у浘</p></div></li><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: decimal;">杈撳叆宸ョ▼鍚嶏紝騫剁偣鍑諱笅涓姝?p style="margin: 0px 0px 1.5em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; orphans: 4;"></p><div class="3flxl9t" id="attachment_220" aligncenter"="" style="margin: 0px auto 1.5em; padding-top: 5px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; box-sizing: border-box; clear: both; text-align: center; max-width: 100%; height: auto; width: 265px;"><a style="margin: 0px; padding: 0px; vertical-align: baseline; background-color: transparent; color: #e01222; text-decoration: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"><img wp-image-220"="" alt="鐐瑰嚮鏌ョ湅澶у浘" src="http://www.robotium.cn/wp-content/uploads/2013/03/11-255x300.png" width="255" height="300" style="margin: 0.75em 0px 5px; padding: 0px; border: 0px none; outline: 0px; vertical-align: baseline; background-color: transparent; max-width: 100%; height: auto;" /></a><p style="margin: 0.6em 0px -0.2em; padding: 0px; border: 0px; outline: 0px; font-size: 0.8em; vertical-align: baseline; background-color: transparent; orphans: 4; font-style: italic; background-position: initial initial; background-repeat: initial initial;">鐐瑰嚮鏌ョ湅澶у浘</p></div></li><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: decimal;">閫夋嫨琚祴宸ョ▼NotePad錛屽茍鐐瑰嚮瀹屾垚<p style="margin: 0px 0px 1.5em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; orphans: 4;"></p><div class="pdh3jhj" id="attachment_214" aligncenter"="" style="margin: 0px auto 1.5em; padding-top: 5px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; box-sizing: border-box; clear: both; text-align: center; max-width: 100%; height: auto; width: 310px;"><a style="margin: 0px; padding: 0px; vertical-align: baseline; background-color: transparent; color: #e01222; text-decoration: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"><img wp-image-214"="" alt="4" src="http://www.robotium.cn/wp-content/uploads/2013/03/4-300x285.png" width="300" height="285" style="margin: 0.75em 0px 5px; padding: 0px; border: 0px none; outline: 0px; vertical-align: baseline; background-color: transparent; max-width: 100%; height: auto;" /></a><p style="margin: 0.6em 0px -0.2em; padding: 0px; border: 0px; outline: 0px; font-size: 0.8em; vertical-align: baseline; background-color: transparent; orphans: 4; font-style: italic; background-position: initial initial; background-repeat: initial initial;">鐐瑰嚮鏌ョ湅澶у浘</p></div></li><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: decimal;">鍦ㄦ祴璇曞伐紼嬩腑鏂板緩lib鏂囦歡澶?p style="margin: 0px 0px 1.5em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; orphans: 4;"></p><div class="x3xd9fn" id="attachment_215" aligncenter"="" style="margin: 0px auto 1.5em; padding-top: 5px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; box-sizing: border-box; clear: both; text-align: center; max-width: 100%; height: auto; width: 310px;"><a style="margin: 0px; padding: 0px; vertical-align: baseline; background-color: transparent; color: #e01222; text-decoration: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"><img wp-image-215"="" alt="5" src="http://www.robotium.cn/wp-content/uploads/2013/03/5-300x187.jpg" width="300" height="187" style="margin: 0.75em 0px 5px; padding: 0px; border: 0px none; outline: 0px; vertical-align: baseline; background-color: transparent; max-width: 100%; height: auto;" /></a><p style="margin: 0.6em 0px -0.2em; padding: 0px; border: 0px; outline: 0px; font-size: 0.8em; vertical-align: baseline; background-color: transparent; orphans: 4; font-style: italic; background-position: initial initial; background-repeat: initial initial;">鐐瑰嚮鏌ョ湅澶у浘</p></div></li><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: decimal;">灝嗕笅杞藉ソ鐨凴obotium jar鍖呮嫹鍏ib涓紝騫跺湪build path涓皢jar鍖呭紩鍏ュ伐紼?p style="margin: 0px 0px 1.5em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; orphans: 4;"></p><div class="xbdxldt" id="attachment_217" aligncenter"="" style="margin: 0px auto 1.5em; padding-top: 5px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; box-sizing: border-box; clear: both; text-align: center; max-width: 100%; height: auto; width: 120px;"><a style="margin: 0px; padding: 0px; vertical-align: baseline; background-color: transparent; color: #e01222; text-decoration: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"><img wp-image-217"="" alt="7" src="http://www.robotium.cn/wp-content/uploads/2013/03/7-110x300.jpg" width="110" height="300" style="margin: 0.75em 0px 5px; padding: 0px; border: 0px none; outline: 0px; vertical-align: baseline; background-color: transparent; max-width: 100%; height: auto;" /></a><p style="margin: 0.6em 0px -0.2em; padding: 0px; border: 0px; outline: 0px; font-size: 0.8em; vertical-align: baseline; background-color: transparent; orphans: 4; font-style: italic; background-position: initial initial; background-repeat: initial initial;">鐐瑰嚮鏌ョ湅澶у浘</p></div></li><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: decimal;">鎵撳紑嫻嬭瘯宸ョ▼涓殑manifest.xml鏂囦歡錛屼慨鏀瑰涓?p style="margin: 0px 0px 1.5em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; orphans: 4;"></p><div class="1x9r99b" id="attachment_221" aligncenter"="" style="margin: 0px auto 1.5em; padding-top: 5px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; box-sizing: border-box; clear: both; text-align: center; max-width: 100%; height: auto; width: 310px;"><a style="margin: 0px; padding: 0px; vertical-align: baseline; background-color: transparent; color: #e01222; text-decoration: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"><img wp-image-221"="" alt="12" src="http://www.robotium.cn/wp-content/uploads/2013/03/12-300x98.png" width="300" height="98" style="margin: 0.75em 0px 5px; padding: 0px; border: 0px none; outline: 0px; vertical-align: baseline; background-color: transparent; max-width: 100%; height: auto;" /></a><p style="margin: 0.6em 0px -0.2em; padding: 0px; border: 0px; outline: 0px; font-size: 0.8em; vertical-align: baseline; background-color: transparent; orphans: 4; font-style: italic; background-position: initial initial; background-repeat: initial initial;">鐐瑰嚮鏌ョ湅澶у浘</p></div></li></ol></ol><pre line="1" style="margin: 1.5em; padding: 15px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background-color: #ffffff; white-space: pre-line; word-wrap: break-word; font-family: monospace, sans-serif; color: #444444; line-height: 23px;"></pre><ol style="margin: 1.5em 2.2em; padding: 0px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background-color: #ffffff; list-style: none outside; line-height: 1.5; color: #444444; font-family: Georgia, 'Times New Roman', Times, serif;"><ol style="margin: 1.5em 2.2em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style: none outside; line-height: 1.5;"><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: decimal;">鏂板緩junit test case錛岄夋嫨junit4錛屽茍杈撳叆綾誨悕錛岀偣鍑誨畬鎴?p style="margin: 0px 0px 1.5em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; orphans: 4;"></p><div class="3ntn399" id="attachment_222" aligncenter"="" style="margin: 0px auto 1.5em; padding-top: 5px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; box-sizing: border-box; clear: both; text-align: center; max-width: 100%; height: auto; width: 262px;"><a style="margin: 0px; padding: 0px; vertical-align: baseline; background-color: transparent; color: #e01222; text-decoration: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"><img wp-image-222"="" alt="13" src="http://www.robotium.cn/wp-content/uploads/2013/03/13-252x300.png" width="252" height="300" style="margin: 0.75em 0px 5px; padding: 0px; border: 0px none; outline: 0px; vertical-align: baseline; background-color: transparent; max-width: 100%; height: auto;" /></a><p style="margin: 0.6em 0px -0.2em; padding: 0px; border: 0px; outline: 0px; font-size: 0.8em; vertical-align: baseline; background-color: transparent; orphans: 4; font-style: italic; background-position: initial initial; background-repeat: initial initial;">鐐瑰嚮鏌ョ湅澶у浘</p></div></li><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: decimal;">鎵撳紑鏂板緩鐨勬祴璇曠被錛屼慨鏀圭戶鎵緼ctivityInstrumentationTestCase2<NotesList>錛屽垱寤烘瀯閫犳柟娉曪紝騫剁紪鍐欐祴璇曚唬鐮侊紝鍏蜂綋濡傚浘<p style="margin: 0px 0px 1.5em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; orphans: 4;"></p><div class="rbl9jrp" id="attachment_223" aligncenter"="" style="margin: 0px auto 1.5em; padding-top: 5px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; box-sizing: border-box; clear: both; text-align: center; max-width: 100%; height: auto; width: 310px;"><a style="margin: 0px; padding: 0px; vertical-align: baseline; background-color: transparent; color: #e01222; text-decoration: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"><img wp-image-223"="" alt="14" src="http://www.robotium.cn/wp-content/uploads/2013/03/14-300x164.png" width="300" height="164" style="margin: 0.75em 0px 5px; padding: 0px; border: 0px none; outline: 0px; vertical-align: baseline; background-color: transparent; max-width: 100%; height: auto;" /></a><p style="margin: 0.6em 0px -0.2em; padding: 0px; border: 0px; outline: 0px; font-size: 0.8em; vertical-align: baseline; background-color: transparent; orphans: 4; font-style: italic; background-position: initial initial; background-repeat: initial initial;">鐐瑰嚮鏌ョ湅澶у浘</p></div></li></ol></ol><pre style="margin: 1.5em; padding: 15px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background-color: #ffffff; white-space: pre-line; word-wrap: break-word; font-family: monospace, sans-serif; color: #444444; line-height: 23px;">package com.example.android.notepad.test; import android.test.ActivityInstrumentationTestCase2; import com.example.android.notepad.NotesList; import com.jayway.android.robotium.solo.Solo; public class NotePadTest extends ActivityInstrumentationTestCase2 { private Solo solo;//澹版槑Solo public NotePadTest()//鏋勯犳柟娉?{ super(NotesList.class); } @Override public void setUp() throws Exception { solo = new Solo(getInstrumentation(), getActivity()); } @Override public void tearDown() throws Exception { solo.finishOpenedActivities(); } public void testAddNote() throws Exception { //鐐瑰嚮add note鎸夐挳 solo.clickOnMenuItem("Add note"); //姣斿緇撴灉 solo.assertCurrentActivity("Expected NoteEditor activity", "NoteEditor"); //鍦ㄧ涓涓猅extEdit鎺т歡涓婅緭鍏ュ唴瀹?solo.enterText(0, "Note 1"); //榪斿洖涓婁釜鐣岄潰 solo.goBack(); //鐐瑰嚮鑿滃崟涓殑Add note solo.clickOnMenuItem("Add note"); //鍦ㄧ涓涓狤ditText涓緭鍏ュ唴瀹?solo.enterText(0, "Note 2"); //榪斿洖NotesList activity solo.goBackToActivity("NotesList"); //鎴睆 solo.takeScreenshot(); boolean expected = true; boolean actual = solo.searchText("Note 1") ; solo.searchText("Note 2"); assertEquals("Note 1 and/or Note 2 are not found", expected, actual); } }</pre><ol style="margin: 1.5em 2.2em; padding: 0px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background-color: #ffffff; list-style: none outside; line-height: 1.5; color: #444444; font-family: Georgia, 'Times New Roman', Times, serif;"><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: decimal;">緙栧啓瀹屾垚鍚庯紝鎵撳紑妯℃嫙鍣ㄦ垨鑰呰繛鎺ヤ笂鐪熸満錛屽彸鍑繪祴璇曠被錛岄夋嫨Android junit Test<p style="margin: 0px 0px 1.5em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; orphans: 4;"></p><div class="9jlhjfn" id="attachment_224" aligncenter"="" style="margin: 0px auto 1.5em; padding-top: 5px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; box-sizing: border-box; clear: both; text-align: center; max-width: 100%; height: auto; width: 310px;"><a style="margin: 0px; padding: 0px; vertical-align: baseline; background-color: transparent; color: #e01222; text-decoration: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"><img wp-image-224"="" title="鐐瑰嚮鏌ョ湅澶у浘" alt="15" src="http://www.robotium.cn/wp-content/uploads/2013/03/15-300x180.png" width="300" height="180" style="margin: 0.75em 0px 5px; padding: 0px; border: 0px none; outline: 0px; vertical-align: baseline; background-color: transparent; max-width: 100%; height: auto;" /></a><p style="margin: 0.6em 0px -0.2em; padding: 0px; border: 0px; outline: 0px; font-size: 0.8em; vertical-align: baseline; background-color: transparent; orphans: 4; font-style: italic; background-position: initial initial; background-repeat: initial initial;">鐐瑰嚮鏌ョ湅澶у浘</p></div></li><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: decimal;">Eclipse浼氬垏鎹㈠埌junit鐣岄潰錛屾鏃舵ā鎷熷櫒錛堢湡鏈猴級浼氳嚜鍔ㄦ墽琛屾祴璇曪紝閫氳繃宸﹁竟鐣岄潰鍙互鐪嬪埌榪愯緇撴灉<p style="margin: 0px 0px 1.5em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; orphans: 4;"></p><div class="nz9bp9j" id="attachment_225" aligncenter"="" style="margin: 0px auto 1.5em; padding-top: 5px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; box-sizing: border-box; clear: both; text-align: center; max-width: 100%; height: auto; width: 310px;"><a style="margin: 0px; padding: 0px; vertical-align: baseline; background-color: transparent; color: #e01222; text-decoration: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"><img wp-image-225"="" title="鐐瑰嚮鏌ョ湅澶у浘" alt="16" src="http://www.robotium.cn/wp-content/uploads/2013/03/16-300x180.png" width="300" height="180" style="margin: 0.75em 0px 5px; padding: 0px; border: 0px none; outline: 0px; vertical-align: baseline; background-color: transparent; max-width: 100%; height: auto;" /></a><p style="margin: 0.6em 0px -0.2em; padding: 0px; border: 0px; outline: 0px; font-size: 0.8em; vertical-align: baseline; background-color: transparent; orphans: 4; font-style: italic; background-position: initial initial; background-repeat: initial initial;">鐐瑰嚮鏌ョ湅澶у浘</p></div></li><li style="margin: 0px 0px 0.75em; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; list-style-type: decimal;">涓涓畝鍗曠殑嫻嬭瘯灝辯粨鏉熶簡銆傚鏋滀綘娌℃湁閬囧埌闂錛岄偅涔堟伃鍠滀綘緇х畫鏇存繁涓姝ュ涔狅紝濡傛灉浣犻亣鍒伴棶棰樹簡錛屼笉瑕佹璇峰厛紜繚浣犵殑鎿嶄綔榪囩▼娌℃湁鍑轟換浣曢敊璇紝鍏舵鎴戝垪鍑轟綘鍙兘閬囧埌鐨勯敊璇紝濡傛灉榪樻槸娌℃湁瑙e喅璇?a target="_blank" style="margin: 0px; padding: 0px; vertical-align: baseline; background-color: transparent; color: #e01222; text-decoration: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">Google</a>鎴栬呰仈緋繪垜浠?/li></ol><h2>1銆佹渶甯歌鐨勶細java.lang.NoClassDefFoundError: com.jayway.android.robotium.solo.Solo</h2><h2>瑙e喅鏂規硶錛氬鍥炬搷浣滃悗鍐峜lean宸ョ▼<a style="margin: 0px; padding: 0px; font-size: 24px; vertical-align: baseline; color: #e01222; text-decoration: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"><img size-medium="" wp-image-229"="" alt="34" src="http://www.robotium.cn/wp-content/uploads/2013/03/34-300x224.png" width="300" height="224" style="margin: 0.75em auto 5px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; display: block; clear: both; max-width: 100%; height: auto;" /></a></h2><p style="margin: 0px 0px 1.5em; padding: 0px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background-color: #ffffff; orphans: 4; color: #444444; font-family: Georgia, 'Times New Roman', Times, serif; line-height: 23px;"> </p><p style="margin: 0px 0px 1.5em; padding: 0px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background-color: #ffffff; orphans: 4; color: #444444; font-family: Georgia, 'Times New Roman', Times, serif; line-height: 23px;"> </p><p style="margin: 0px 0px 1.5em; padding: 0px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background-color: #ffffff; orphans: 4; color: #444444; font-family: Georgia, 'Times New Roman', Times, serif; line-height: 23px;"> </p><p style="margin: 0px 0px 1.5em; padding: 0px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background-color: #ffffff; orphans: 4; color: #444444; font-family: Georgia, 'Times New Roman', Times, serif; line-height: 23px;"> </p><p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background-color: #ffffff; orphans: 4; color: #444444; font-family: Georgia, 'Times New Roman', Times, serif; line-height: 23px;"> </p><img src ="http://www.tkk7.com/qileilove/aggbug/413704.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/qileilove/" target="_blank">欏哄叾鑷劧EVO</a> 2014-05-15 21:15 <a href="http://www.tkk7.com/qileilove/articles/413704.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>android maven閰嶇疆http://www.tkk7.com/qileilove/articles/412327.html欏哄叾鑷劧EVO欏哄叾鑷劧EVOFri, 11 Apr 2014 10:56:00 GMThttp://www.tkk7.com/qileilove/articles/412327.htmlhttp://www.tkk7.com/qileilove/comments/412327.htmlhttp://www.tkk7.com/qileilove/articles/412327.html#Feedback0http://www.tkk7.com/qileilove/comments/commentRss/412327.htmlhttp://www.tkk7.com/qileilove/services/trackbacks/412327.html
  • http://code.google.com/p/maven-android-plugin/
    1. 瀹夎jdk 鐣ヨ繃  鎴戠殑鏄繖涓増鏈琂ava(TM) SE Runtime Environment (build 1.6.0_38-b05) 
    2. 瀹夎Android-sdk  
    3. 鍒癕aven鐨勫畼鏂逛笅杞芥渶鏂扮増鏈殑Maven
    • 涓嬭澆鍦板潃 http://maven.apache.org/download.html
    • 鎴戜笅杞界殑鏄?Maven 3.0.4
    • 鎵句釜鏂囦歡澶硅В鍘嬶紝騫墮厤緗埌緋葷粺鐨勭幆澧冨彉閲?br />
      • /home/wuyexiong/Android/tool/maven/apache-maven-3.0.4/bin 閰嶇疆鍒?etc/environment
      • ANDROID_HOME="/home/wuyexiong/Android/android-linux/adt-bundle-linux-x86_64/sdk"
        榪欎釜sdk  鍙互鍒╃敤anroidmanager鏉ヤ笅杞?sdk

  • 鎵撳紑璇ョ綉欏碉紝鐐瑰嚮 GettingStarted 璺寵漿鍒癶ttp://code.google.com/p/maven-android-plugin/wiki/GettingStarted 璇ラ〉闈?br />
    鎯崇紪璇慉ndroid欏圭洰榪樺樊鏈鍚庝竴閮?錛岀敤git鎶?nbsp;Maven AndroidSDK Deployer  欏圭洰杞藉埌鏈湴
      • 鍦ㄦ涔嬪墠鐨勭幆澧冮兘鎼緩瀹屾瘯鐨勫墠鎻愪笅錛岃繘鍏ヨ欏圭洰鐨勮窡鐩綍
      • 鎵ц mvn clean install 銆?灝變細鑷姩鏋勫緩Android-maven鐨勭紪璇戠幆澧?br />
        mvn install -P 4.0 浼氭妸 鐩稿叧鐨剆dk 涓婁紶鍒?maven浠撳簱涓? 鎶樿吘浜?鑰佸瓙涓澶? 鐢變簬瀹墮噷緗戜笉琛? maven渚濊禆鐨刯ar閮戒笅杞戒笉涓嬫潵  鍒板叕鍙擱兘OK
      • 涓斾細涓嬭澆涓浜涗笢瑗匡紝媯鏌ヤ綘鐨剆dk絳夌瓑錛岀◢浣滅瓑鍊欏嵆鍙?/li>
        1. [INFO] ------------------------------------------------------------------------  
        2. [INFO] Reactor Summary:  
        3. [INFO]   
        4. [INFO] Maven Android SDK Deployer ........................ SUCCESS [0.232s]  
        5. [INFO] Android Platforms ................................. SUCCESS [0.007s]  
        6. [INFO] Android Platform 1.5 API 3 ........................ SUCCESS [0.065s]  
        7. [INFO] Android Platform 1.6 API 4 ........................ SUCCESS [0.013s]  
        8. [INFO] Android Platform 2.1 API 7 ........................ SUCCESS [0.012s]  
        9. [INFO] Android Platform 2.2 API 8 ........................ SUCCESS [0.013s]  
        10. [INFO] Android Platform 2.3.3 API 10 ..................... SUCCESS [0.013s]  
        11. [INFO] Android Platform 3.0 API 11 ....................... SUCCESS [0.028s]  
        12. [INFO] Android Platform 3.1 API 12 ....................... SUCCESS [0.013s]  
        13. [INFO] Android Platform 3.2 API 13 ....................... SUCCESS [0.013s]  
        14. [INFO] Android Platform 4.0 API 14 ....................... SUCCESS [0.012s]  
        15. [INFO] Android Platform 4.0.3 API 15 ..................... SUCCESS [0.013s]  
        16. [INFO] Android Platform 4.1 API 16 ....................... SUCCESS [0.013s]  
        17. [INFO] Android Platform 4.2 API 17 ....................... SUCCESS [0.012s]  
        18. [INFO] Android Add-Ons ................................... SUCCESS [0.006s]  
        19. [INFO] Android Add-On Google Platform 1.5 API 3 (Maps) ... SUCCESS [0.018s]  
        20. [INFO] Android Add-On Google Platform 1.6 API 4 (Maps) ... SUCCESS [0.013s]  
        21. [INFO] Android Add-On Google Platform 2.1 API 7 (Maps) ... SUCCESS [0.013s]  
        22. [INFO] Android Add-On Google Platform 2.2 API 8 (Maps) ... SUCCESS [0.014s]  
        23. [INFO] Android Add-On Google Platform 2.3.3 API 10 (Maps and USB)  SUCCESS [0.017s]  
        24. [INFO] Android Add-On Google Platform 3.0 API 11 (Maps) .. SUCCESS [0.013s]  
        25. [INFO] Android Add-On Google Platform 3.1 API 12 (Maps and USB)  SUCCESS [0.017s]  
        26. [INFO] Android Add-On Google Platform 3.2 API 13 (Maps and USB)  SUCCESS [0.016s]  
        27. [INFO] Android Add-On Google Platform 4.0 API 14 (Maps and USB)  SUCCESS [0.017s]  
        28. [INFO] Android Add-On Google Platform 4.0.3 API 15 (Maps and USB)  SUCCESS [0.018s]  
        29. [INFO] Android Add-On Google Platform 4.1 API 16 (Maps and USB)  SUCCESS [0.019s]  
        30. [INFO] Android Add-On Google Platform 4.2 API 17 (Maps and USB)  SUCCESS [0.018s]  
        31. [INFO] Android Extras .................................... SUCCESS [0.009s]  
        32. [INFO] Android Compatibility Extra V4 .................... SUCCESS [0.013s]  
        33. [INFO] Android Compatibility Extra V7 Gridlayout Library . SUCCESS [1.999s]  
        34. [INFO] Android Compatibility Extra V13 ................... SUCCESS [0.009s]  
        35. [INFO] Android Google Analytics Extra .................... SUCCESS [0.009s]  
        36. [INFO] Android Google AdMob Ads Extra .................... SUCCESS [0.009s]  
        37. [INFO] Android Google Cloud Messaging Library Extra Parent  SUCCESS [0.006s]  
        38. [INFO] Android Google Cloud Messaging Client Library Extra  SUCCESS [0.010s]  
        39. [INFO] Android Google Cloud Messaging Server Library Extra  SUCCESS [0.010s]  
        40. [INFO] Android Google Play Services Extra ................ SUCCESS [0.460s]  
        41. [INFO] Android Google Play Licensing Extra ............... SUCCESS [0.297s]  
        42. [INFO] Android Extras - Apk Expansion .................... SUCCESS [0.006s]  
        43. [INFO] Android Google Play APK Expansion Extra - ZIP ..... SUCCESS [0.240s]  
        44. [INFO] Android Google Play APK Expansion Extra - Downloader  SUCCESS [0.314s]  
        45. [INFO] Android Tools ..................................... SUCCESS [0.004s]  
        46. [INFO] Android Annotations ............................... SUCCESS [0.007s]  
        47. [INFO] ------------------------------------------------------------------------  
        48. [INFO] BUILD SUCCESS  
        49. [INFO] ------------------------------------------------------------------------  
        50. [INFO] Total time: 5.277s  
        51. [INFO] Finished at: Mon Dec 31 16:42:23 CST 2012  
        52. [INFO] Final Memory: 24M/298M  
        53. [INFO] ------------------------------------------------------------------------  


      • 鍑虹幇浠ヤ笂錛屽氨浠h〃 android-maven鐨勫垵姝ョ幆澧冩瀯寤哄畬姣?br />
      • cd ~/.m2/ 鍒拌鐩綍涓嬫墦寮repository鐨勬枃浠跺す鍗沖彲鏌ョ湅鍒板凡緇忛厤緗ソ鐩稿叧鐨凙ndroid鐜浜?br />
    • 嫻嬭瘯android-maven
      • 涓嬭澆鍙緵緇欐墦鍖呮祴璇曠殑渚嬪瓙浠g爜 Download samples from the stable branch
      • 瑙e帇璇ラ」鐩紝榪涘叆 jayway-maven-android-plugin-samples-b17572a 鏂囦歡澶?/li>
        1. drwxrwxr-x  4 wuyexiong wuyexiong  4096 12鏈?nbsp;31 15:49 apidemos-android-10/  
        2. -rw-rw-r--  1 wuyexiong wuyexiong   136 12鏈?nbsp;19 10:25 .gitignore  
        3. drwxrwxr-x  4 wuyexiong wuyexiong  4096 12鏈?nbsp;19 10:25 helloflashlight/  
        4. drwxrwxr-x  6 wuyexiong wuyexiong  4096 12鏈?nbsp;19 10:25 libraryprojects/  
        5. -rw-rw-r--  1 wuyexiong wuyexiong 10173 12鏈?nbsp;19 10:25 LICENSE.txt  
        6. drwxrwxr-x  5 wuyexiong wuyexiong  4096 12鏈?nbsp;19 10:25 morseflash/  
        7. drwxrwxr-x 13 wuyexiong wuyexiong  4096 12鏈?nbsp;19 10:25 native/  
        8. -rw-rw-r--  1 wuyexiong wuyexiong  7548 12鏈?nbsp;19 10:25 pom.xml  
        9. -rw-rw-r--  1 wuyexiong wuyexiong   942 12鏈?nbsp;19 10:25 README.txt  
        10. drwxrwxr-x  4 wuyexiong wuyexiong  4096 12鏈?nbsp;19 10:25 scala/  
        11. drwxrwxr-x  5 wuyexiong wuyexiong  4096 12鏈?nbsp;31 15:34 support4demos/  
      • 鍙互鐪嬪埌閮芥槸涓浜涗緥瀛愮殑浠g爜銆?/li>
      • 榪欐椂鍊欏彲浠ヨ繘鍏ュ叿浣撶殑涓涓」鐩紝姣斿榪涘叆support4demos
        1. -rw-rw-r--  1 wuyexiong wuyexiong 10630 12鏈?nbsp;19 10:25 AndroidManifest.xml  
        2. -rw-rw-r--  1 wuyexiong wuyexiong  1909 12鏈?nbsp;19 10:25 pom.xml  
        3. -rw-rw-r--  1 wuyexiong wuyexiong   377 12鏈?nbsp;19 10:25 README.txt  
        4. drwxrwxr-x 10 wuyexiong wuyexiong  4096 12鏈?nbsp;19 10:25 res/  
        5. drwxrwxr-x  3 wuyexiong wuyexiong  4096 12鏈?nbsp;19 10:25 src/  
      • 榪欐槸瀹屾暣欏圭洰鐨勬枃浠朵簡
      • 鎵撳紑妯℃嫙鍣紝鎴栬呴摼鎺ヤ笂鎵嬫満錛屾墽琛?nbsp;mvn clean install 鍗沖彲緙栬紼嬪簭浜?/li>
      • 涔熷彲浠ュ彧鏄墽琛?span style="color: #3366ff;"> mvn package 鏉ヨ繘琛屾墦鍖咃紝 鍗沖彲鍦ㄩ」鐩笅鐢熸垚涓涓猼arget鐨勭洰褰曪紝鐩綍搴曚笅閮芥槸涓浜涚洰鏍囨枃浠?/li>
      • 榪欎袱縐嶉粯璁ら兘鏄互debug絳懼悕鐨勶紝鏇村寰呯爺絀朵簡銆傘傘?/li>
      • 鏈鍚庢墽琛?nbsp;mvn android:deploy 鍗沖彲瀹夎鍒版ā鎷熷櫒鎴栬呮墜鏈?/li>
      • 緙栬瘧騫跺畨瑁呮槸鎵ц mvn clean install android:deploy

        1. [INFO]                                                                           
        2. [INFO] ------------------------------------------------------------------------  
        3. [INFO] Building Android Support V4 Demos 1.0.0-SNAPSHOT  
        4. [INFO] ------------------------------------------------------------------------  
        5. [INFO]   
        6. [INFO] --- android-maven-plugin:3.5.0:deploy (default-cli) @ support4demos ---  
        7. [INFO] Waiting for initial device list from the Android Debug Bridge  
        8. [INFO] Found 1 devices connected with the Android Debug Bridge  
        9. [INFO] android.device parameter not set, using all attached devices  
        10. [INFO] Successfully installed /home/wuyexiong/Android/tool/maven/jayway-maven-android-plugin-samples-b17572a/support4demos/target/support4demos.apk to MX3ACA1ALGVA8Q1125_Meizu_M031  
        11. [INFO] ------------------------------------------------------------------------  
        12. [INFO] BUILD SUCCESS  
        13. [INFO] ------------------------------------------------------------------------  
        14. [INFO] Total time: 8.965s  
        15. [INFO] Finished at: Mon Dec 31 16:55:09 CST 2012  
        16. [INFO] Final Memory: 17M/146M  
        17. [INFO] ------------------------------------------------------------------------  


            鏈珷鍒版浜?鎴戜篃鏄垰鐮旂┒榪欎釜錛屽洜涓哄彂鐜癵ithub涓婇潰寰堝寮婧愰」鐩兘鏄甫鏈塸om.xml榪欎釜鏂囦歡鐨勶紝鎵浠ヤ笅浜嗚В涓涓嬶紝鏈濂借兘娣卞叆涓涓嬨?/div>
            
            寰簭娓愯繘鍚с傜瓑寰呯爺絀舵洿娣卞叆鐨勪笢瑗匡紝鎶婄瑪璁伴兘璁板埌榪欎笂闈?/div>


  • 欏哄叾鑷劧EVO 2014-04-11 18:56 鍙戣〃璇勮
    ]]>
    Win7 64浣嶆搷浣滅郴緇熷畨瑁卆ndroid寮鍙戠幆澧?/title><link>http://www.tkk7.com/qileilove/articles/410921.html</link><dc:creator>欏哄叾鑷劧EVO</dc:creator><author>欏哄叾鑷劧EVO</author><pubDate>Wed, 12 Mar 2014 02:58:00 GMT</pubDate><guid>http://www.tkk7.com/qileilove/articles/410921.html</guid><wfw:comment>http://www.tkk7.com/qileilove/comments/410921.html</wfw:comment><comments>http://www.tkk7.com/qileilove/articles/410921.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/qileilove/comments/commentRss/410921.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/qileilove/services/trackbacks/410921.html</trackback:ping><description><![CDATA[<div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;">銆銆<strong style="word-break: break-all; line-height: normal !important;">1.jdk</strong></div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;">銆銆涓嬭澆鍦板潃錛歨ttp://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html</div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;">銆銆瀹夎錛?/div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;">銆銆浣跨敤榛樿瀹夎鐩綍(C:\Program Files\Java)錛屼竴璺痭ext鍒版渶鍚?/div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;">銆銆閰嶇疆鐜鍙橀噺錛?/div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;">銆銆鎴戠殑鐢佃剳--灞炴?-楂樼駭緋葷粺璁劇疆--楂樼駭--鐜鍙橀噺</div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;">銆銆鍦≒ath鍚庢坊鍔狅細;C:\Program Files\Java\jdk1.7.0_51\bin;</div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;">銆銆鏂板緩CLASSPATH錛岀紪杈戯細杈撳叆鐨勫間負“.”</div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;">銆銆浠ヤ笂錛屽鏋滃畨瑁呯洰褰曚笉鍚岋紝闇瑕佸仛鐩稿簲鐨勬洿鏀?/div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;">銆銆媯嫻嬶細</div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;">銆銆瀹夎浜庨厤緗粨鏉熷悗錛岃繍琛?-cmd--javac錛屽鏋滅湅鍒幫細鐢ㄦ硶錛歫avac ...涔嬬被鐨勬枃瀛楀嚭鐜幫紝灝監K浜嗭紝緇х畫涓嬩竴姝?/div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;">銆銆濡傛灉娌℃湁鎴愬姛錛岃媯鏌?鐜鍙橀噺 閰嶇疆</div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;">銆銆<strong style="word-break: break-all; line-height: normal !important;">2.Android SDK 浠ュ強 Eclipse</strong></div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;">銆銆涓嬭澆鍦板潃錛歨ttp://developer.android.com/sdk/index.html</div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;">銆銆涓嬭澆錛?/div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;">銆銆鐐瑰嚮鎸夐挳 Download the SDK ADT Bundle for <a target="_self" style="word-break: break-all; color: #202859; line-height: normal !important;"><u style="word-break: break-all;"><strong style="word-break: break-all;">Windows</strong></u></a>錛岀劧鍚庡嬀閫塈 have...錛岄夋嫨64bit錛岀偣鍑籇ownload..鎸夐挳</div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;">銆銆瀹夎錛氱洿鎺ヨВ鍘嬪嵆鍙紝鍐呭惈Eclipse寮鍙戠幆澧冧互鍙婃渶鏂扮殑<a target="_self" style="word-break: break-all; color: #202859; line-height: normal !important;"><u style="word-break: break-all;"><strong style="word-break: break-all;">Android</strong></u></a> SDK</div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;">銆銆閰嶇疆鐜鍙橀噺錛?/div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;">銆銆鍦≒ath鍚庢坊鍔狅細platform-tools鐨勮礬寰勶紝姣斿錛欵:\Android\adt-bundle-windows-x86_64-20130219\sdk\platform-tools</div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;">銆銆濡傛灉闇瑕佸崌綰ф垨瀹夎鍏朵粬鐗堟湰鐨凷DK錛屽彲浠ヨ繍琛孲DK Manager.exe</div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;">銆銆鍙兘浼氶亣鍒頒竴闂岃繃鐨勬儏鍐碉紝榪欎釜鏃跺欙紝鍙互鎵懼埌sdk\tools閲岄潰鐨刟ndroid.bat錛岃繍琛岋紝灝卞彲浠ョ湅鍒扮浉搴旂殑鐣岄潰浜嗭紝閫夋嫨闇瑕佸畨瑁呯殑</div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;">銆銆OK錛屽熀鏈笂鍒拌繖閲屽氨綆楅厤緗ソ寮鍙戠幆澧冧簡錛屾墦寮Eclipse灝卞彲浠ュ紑濮嬪紑鍙慳ndroid紼嬪簭浜嗐?/div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;"></div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff;"></div><div style="word-break: break-all; line-height: 21.60000228881836px; margin: 10px 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 11.818181991577148px; background-color: #ffffff; height: 21px; position: relative; width: 627.1875px;"></div><img src ="http://www.tkk7.com/qileilove/aggbug/410921.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/qileilove/" target="_blank">欏哄叾鑷劧EVO</a> 2014-03-12 10:58 <a href="http://www.tkk7.com/qileilove/articles/410921.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Installing Android Studiohttp://www.tkk7.com/qileilove/articles/409684.html欏哄叾鑷劧EVO欏哄叾鑷劧EVOMon, 10 Feb 2014 11:02:00 GMThttp://www.tkk7.com/qileilove/articles/409684.htmlhttp://www.tkk7.com/qileilove/comments/409684.htmlhttp://www.tkk7.com/qileilove/articles/409684.html#Feedback0http://www.tkk7.com/qileilove/comments/commentRss/409684.htmlhttp://www.tkk7.com/qileilove/services/trackbacks/409684.htmlInstalling Android Studio
    1. Download the Android Studio package from above.
    2. Install Android Studio and the SDK tools:

      Windows:

      1. Launch the downloaded EXE file, android-studio-bundle-<version>.exe.
      2. Follow the setup wizard to install Android Studio.

        Known issue: On some Windows systems, the launcher script does not find where Java is installed. If you encounter this problem, you need to set an environment variable indicating the correct location.

        Select Start menu > Computer > System Properties > Advanced System Properties. Then open Advanced tab > Environment Variables and add a new system variable JAVA_HOME that points to your JDK folder, for exampleC:\Program Files\Java\jdk1.7.0_21.

      Mac OS X:

      1. Open the downloaded DMG file, android-studio-bundle-<version>.dmg.
      2. Drag and drop Android Studio into the Applications folder.

        Known issue: Depending on your security settings, when you attempt to open Android Studio, you might see a warning that says the package is damaged and should be moved to the trash. If this happens, go to System Preferences > Security & Privacy and under Allow applications downloaded from, select Anywhere. Then open Android Studio again.

      Linux:

      1. Unpack the downloaded Tar file, android-studio-bundle-<version>.tgz, into an appropriate location for your applications.
      2. To launch Android Studio, navigate to the android-studio/bin/ directory in a terminal and execute studio.sh.

        You may want to add android-studio/bin/ to your PATH environmental variable so that you can start Android Studio from any directory.

    That's it! You're ready to start developing apps with Android Studio.

    Note: On Windows and Mac, the individual tools and other SDK packages are saved within the Android Studio application directory. To access the tools directly, use a terminal to navigate into the application and locate the sdk/directory. For example:

    Windows: \Users\<user>\AppData\Local\Android\android-studio\sdk\

    Mac: /Applications/Android\ Studio.app/sdk/

    For a list of some known issues, see tools.android.com/knownissues.

    Starting a Project


    When you launch Android Studio for the first time, you'll see a Welcome screen that offers several ways to get started:

    • To start building a new app, click New Project.

      This starts the New Project wizard, which helps you set up a project using an app template.

    • To import an existing Android app project, click Import Project.

      Note: If you previously developed your Android project with Eclipse, you should first use the new export feature in the ADT plugin to prepare your project with the new Gradle build system. For more information, read Migrating from Eclipse.

    For additional help using Android Studio, read Tips and Tricks.

    As you continue developing apps, you may need to install additional versions of Android for the emulator and other packages such as the Android Support Library. To install more packages, use the SDK Manager, which you can open from Android Studio by clicking SDK Manager  in the toolbar.

    鑿滈笩鏃ヨ1-20130604 錛?/p>

    濡備綍鍦ㄦ病鏈夊畨瑁呰繃JAVA鐨刉IN7 32浣嶇郴緇熼噷瀹夎鍜岄厤緗?Android Studio

    1錛?a target="_blank" style="word-wrap: break-word; outline-style: none; color: #336699;">http://developer.android.com/sdk/installing/studio.html 鍦ㄨ繖閲屼笅杞絎INDOWS鐗堟湰鐨凙ndroid Studio錛涘湪鏈湴璁$畻鏈轟笂鑾峰緱瀹夎鏂囦歡錛歛ndroid-studio-bundle-130.677228-windows.exe錛?/p>

    2錛岃繍琛屽畨瑁呮枃浠訛細android-studio-bundle-130.677228-windows.exe錛屽湪瀹夎榪囩▼涓細鍙戠幇娌℃湁JDK,鏍規嵁鎻愮ず涓嬭澆騫惰繍琛岃繖涓枃浠訛細jdk-7u21-windows-i586.exe錛?/p>

    3錛屽洖鍒癮ndroid-studio-bundle-130.677228-windows.exe鐨勫畨瑁呯晫闈紝鐐逛笅涓姝ョ戶緇畬鎴愬畨瑁咃紱

    4錛屽垵嬈¤繍琛?Android Studio 鍙兘浼氭棤娉曞惎鍔紝涓嬮潰閲嶇偣璁蹭竴涓嬫垜鐨勪慨鏀癸紱涓嶅悓鐨勭郴緇熷彲鑳藉仛娉曚笉澶竴鏍鳳紒

    璁$畻鏈哄睘鎬?楂樼駭-鐜鍙橀噺-緋葷粺鍙橀噺鏂板緩錛?/p>鍙橀噺鍚嶏細ANDROID_STUDIO_JDK 鍙橀噺鍊鹼細C:\Program Files\Java\jdk1.7.0_21

    5錛屽湪C:\Program Files\Android\android-studio\bin 涓嬫壘鍒皊tudio.bat錛屼慨鏀癸細

    SET BITS= 涓?SET BITS=32

    6錛岃繍琛?Android Studio 錛岀瓑5縐掑乏鍙籌紝鍑虹幇浜嗘槸鍚﹀鍏ュ師鏉ラ厤緗殑瀵硅瘽妗嗭紱鐩存帴鐐筼k;

    7,鍚姩姝e父錛?/p>



    欏哄叾鑷劧EVO 2014-02-10 19:02 鍙戣〃璇勮
    ]]>
    Android寮鍙戠幆澧冩惌寤哄叏紼嬫紨紺?jdk+eclipse+android sdk)http://www.tkk7.com/qileilove/articles/409626.html欏哄叾鑷劧EVO欏哄叾鑷劧EVOSat, 08 Feb 2014 10:31:00 GMThttp://www.tkk7.com/qileilove/articles/409626.htmlhttp://www.tkk7.com/qileilove/comments/409626.htmlhttp://www.tkk7.com/qileilove/articles/409626.html#Feedback0http://www.tkk7.com/qileilove/comments/commentRss/409626.htmlhttp://www.tkk7.com/qileilove/services/trackbacks/409626.html

    Android寮鍙戠幆澧冩惌寤哄叏紼嬫紨紺?jdk+eclipse+android sdk)

             鍏ㄧ▼婕旂ずandroid寮鍙戠幆澧冪殑鎼緩榪囩▼錛屾棤闇閰嶇疆鐜鍙橀噺銆傛墍鏈夎蔣浠墮兘鏄啓璇ユ枃绔犳椂鏈鏂扮増鏈?br />

    涓 鐩稿叧涓嬭澆

    (1) java JDK涓嬭澆:

    榪涘叆璇ョ綉欏? http://java.sun.com/javase/downloads/index.jsp(鎴栬呯洿鎺?a target="_blank" style="color: #f87070;">鐐瑰嚮涓嬭澆)濡備笅鍥?
    閫夋嫨 Download JDK 鍙笅杞絁DK錛屾棤闇涓嬭澆jre. 

    (2)eclipse涓嬭澆

       榪涘叆璇ョ綉欏? http://www.eclipse.org/downloads/(鎴栬呯洿鎺ョ偣鍑諱笅杞?BT涓嬭澆    HTTP涓嬭澆) 濡備笅鍥?


    鎴戜滑閫夋嫨絎竴涓?鍗砮clipse IDE for java EE Developers)

    (3)涓嬭澆Android SDK

       璇存槑: Android SDK涓ょ涓嬭澆鐗堟湰錛屼竴縐嶆槸鍖呭惈鍏蜂綋鐗堟湰鐨凷DK鐨勶紝涓縐嶆槸鍙湁鍗囩駭宸ュ叿錛岃屼笉鍖呭惈鍏蜂綋鐨凷DK鐗堟湰錛屽悗涓縐嶅ぇ姒?0澶歁錛屽墠涓縐?0澶歁銆?/p>

        瀹屽叏鐗堜笅杞?/a>(android sdk 2.1 r01)     鍗囩駭鐗堜笅杞?/a>(寤鴻浣跨敤榪欎釜錛屾湰渚嬪瓙灝辨槸浣跨敤榪欎釜榪欓噷闈笉鍖呭惈鍏蜂綋鐗堟湰錛屾兂瑕佷粈涔堢増鏈湪Eclipse閲岄潰鍗囩駭灝辮)

    浜?nbsp;杞歡瀹夎

       (1)瀹夎jdk 6u19   瀹夎瀹屾垚鍗沖彲錛屾棤闇閰嶇疆鐜鍙橀噺

       (2)瑙e帇eclipse       eclipse鏃犻渶瀹夎錛岃В鍘嬪悗錛岀洿鎺ユ墦寮灝辮

       (3)瑙e帇android sdk     榪欎釜涔熸棤闇瀹夎錛岃В鍘嬪悗渚涘悗闈嬌鐢?/p>

       (4)鏈緇堟湁涓変釜鏂囦歡澶癸紝濡備笅鍥?

       

    涓?nbsp;Eclipse閰嶇疆

       1 瀹夎android 寮鍙戞彃浠?/p>

         (1)鎵撳紑Eclipse, 鍦ㄨ彍鍗曟爮涓婇夋嫨 help->Install New SoftWare 鍑虹幇濡備笅鐣岄潰:


        鐐瑰嚮 Add鎸夐挳,鍑虹幇濡備笅鐣岄潰


         杈撳叆緗戝潃: https://dl-ssl.google.com/android/eclipse/    (濡傛灉鍑洪敊錛岃灝唄ttps鏀規垚http)

         鍚嶇О: Android (榪欓噷鍙互鑷畾涔?

       鐐瑰嚮OK錛屽皢鍑虹幇濡備笅鐣岄潰


    鐐瑰嚮 Next鎸夐挳 錛屽嚭鐜板涓嬬晫闈?


      

    鐐瑰嚮Next鎸夐挳錛屽嚭鐜板涓嬬晫闈?


    閫夋嫨 I accept the terms of the license agreements   鐐瑰嚮Next,榪涘叆瀹夎鎻掍歡鐣岄潰

    瀹夎瀹屾垚鍚庯紝鍑虹幇濡備笅鐣岄潰


    鐐瑰嚮Yes鎸夐挳錛岄噸鍚疎clipse

    2 閰嶇疆android sdk

         (1)鐐瑰嚮鑿滃崟window->preferences,榪涘叆濡備笅鐣岄潰


       閫夋嫨浣犵殑android SDK瑙e帇鍚庣殑鐩綍錛岄夐敊浜嗗氨浼氭姤閿欙紝榪欎釜鏄崌綰у伐鍏鳳紝鐩墠榪樻病鏈変竴涓増鏈殑SDK

    錛?錛夊崌綰DK鐗堟湰,閫夋嫨鑿滃崟 window->Android sdk and avd manager 鍑虹幇濡備笅鐣岄潰

          

       閫夋嫨update all鎸夐挳錛屽嚭鐜板涓嬬晫闈?/p>


    閫夋嫨宸﹁竟鐨勬煇涓欏癸紝鐐瑰嚮accept琛ㄧず瀹夎錛岀偣鍑籸eject琛ㄧず涓嶅畨瑁咃紝鎴戣繖閲屽彧閫変簡SDK 2.1 鍜宻amples for api 7 , 鑷繁鍙互浠繪剰鑷畾涔夛紝紜畾鍚庯紝閫夋嫨install鎸夐挳錛岃繘鍏ュ畨瑁呯晫闈㈠涓?

    瀹夎瀹屾垚濡備笅:

    (3)鏂板緩AVD(android vitural device)    鍜屼笂闈竴鏍鳳紝榪涘叆android sdk and avd manager,閫変腑Vitural Devices 鍦ㄧ偣鍑籒ew鎸夐挳

    鐐瑰嚮New鎸夐挳鍚庯紝榪涘叆濡備笅鐣岄潰:

    鍚嶇О鍙互闅忎究鍙栵紝target閫夋嫨浣犻渶瑕佺殑SDK鐗堟湰錛孲D鍗″ぇ灝忚嚜瀹氫箟,鐐瑰嚮 Create AVD,寰楀埌濡備笅緇撴灉

    濡備笂鏄劇ず鍒涘緩AVD瀹屾瘯





    3 鏂板緩Android欏圭洰

    (1)閫夋嫨鑿滃崟file->new->other 榪涘叆濡備笅鐣岄潰:

    閫夋嫨鏂板緩Android Project欏圭洰錛岀偣鍑籒ext鎸夐挳錛岃繘鍏ュ涓嬬晫闈?/p>


    鍚嶇О鑷畾涔夛紝搴旂敤紼嬪簭鍚嶈嚜瀹氫箟錛屾姤鍚嶅繀欏誨寘鍚竴涓偣浠ヤ笂錛宮in SDK version閲岄潰蹇呴』杈撳叆鏁存暟

    鐐瑰嚮Next鍑虹幇濡備笅鐣岄潰:


    娉? 鑻ユ湁閿欒濡? Project ... is missing required source folder: 'gen' ,鍒欏皢gen->Android.Test->R.java榪欎釜鏂囦歡鍒犳帀錛孍clipse浼氫負鎴戜滑閲嶆柊鐢熸垚榪欎釜鏂囦歡錛屽茍涓斾笉浼氭姤閿欍?/p>

    (3)閰嶇疆榪愯

       鍙抽敭欏圭洰->Run as -> Run Configuration 榪涘叆濡備笅鐣岄潰:
    璇ョ晫闈紝鐐瑰嚮Browse 鎸夐挳錛岄夋嫨浣犺榪愯鐨勯」鐩?/p>

    閫夋嫨Target鍒囨崲鍒頒互涓嬬晫闈?/p>


    璇ョ晫闈㈤夋嫨榪愯鐨凙VD錛屽皢AVD鍓嶉潰鐨勬柟妗嗚緗負閫夋嫨鐘舵併?/p>

    (4)嫻嬭瘯欏圭洰榪愯

       鍙抽敭欏圭洰鍚嶇О->run as ->Android Application 鍗沖彲鍚姩榪愯璇ndroid紼嬪簭錛屽涓嬫墍紺?


    姝e湪榪涘叆


    嫻嬭瘯紼嬪簭榪愯緇撴灉

    鍥?nbsp;緇撴潫璇?/p>

           鑷蟲錛宎ndroid寮鍙戠幆澧冩惌寤哄畬姣曪紝鏈夐棶棰樿鐣欒█銆傚湪榪欓噷瑕佹敞鎰忥紝鎴戣繖閲屽彧鏄笅杞戒簡android sdk r4鍗囩駭宸ュ叿錛屾病鏈変笅杞藉叿浣撶殑SDK錛岃屾槸閫氳繃鍦‥clipse閲岄潰鐨凙ndroid Sdk綆$悊宸ュ叿鍗囩駭鐨勶紝浣犱篃鍙互鐩存帴涓嬭澆鍏蜂綋鐨凷DK鐗堟湰錛屽: Android sdk 2.1 r1 涓婇潰鏈夎繖涓殑涓嬭澆閾炬帴錛屼絾鎴戜換鍔$敤鍗囩駭宸ュ叿鏇村ソ銆?/p>



    欏哄叾鑷劧EVO 2014-02-08 18:31 鍙戣〃璇勮
    ]]>
    主站蜘蛛池模板: 99亚洲乱人伦aⅴ精品| 亚洲www77777| 好久久免费视频高清| 国产AV无码专区亚洲AV漫画 | 亚洲成AV人综合在线观看| 午夜不卡久久精品无码免费 | 国产成人亚洲精品播放器下载 | 成人毛片18岁女人毛片免费看 | 日日摸夜夜添夜夜免费视频| 免费人成视频在线观看不卡| 一级特黄特色的免费大片视频| 亚洲乱亚洲乱少妇无码| 中文字幕在线观看免费| 久久精品国产精品亚洲艾| 2022久久国产精品免费热麻豆| 亚洲伊人久久大香线蕉| 看全色黄大色大片免费久久| 免费精品国产自产拍在线观看| 精品国产亚洲一区二区在线观看| a级毛片在线免费| 亚洲美女中文字幕| 全免费a级毛片免费看不卡| 高潮毛片无遮挡高清免费| 亚洲人成在线播放网站| 精品久久8x国产免费观看| 亚洲一区二区三区写真| 亚洲欧洲久久久精品| 免费看男人j放进女人j免费看| 亚洲一区二区三区免费在线观看| 99re在线免费视频| 亚洲第一区视频在线观看| 天天天欲色欲色WWW免费| 一个人看的hd免费视频| 亚洲日产2021三区| 四虎影视在线永久免费看黄| 丁香花在线视频观看免费| 亚洲a级成人片在线观看| 2022中文字字幕久亚洲| 免费观看激色视频网站bd| 日韩在线观看免费| 亚洲精品自在线拍|