{"id":10008047,"date":"2023-07-06T15:02:07","date_gmt":"2023-07-06T07:02:07","guid":{"rendered":"https:\/\/ityet.com\/?p=10008047"},"modified":"2023-07-06T15:02:07","modified_gmt":"2023-07-06T07:02:07","slug":"app%e6%b5%81%e6%b0%b4%e7%ba%bf%e6%b5%8b%e8%af%95%e9%a2%86%e5%9f%9f%e6%8e%a2%e7%b4%a2%e4%b8%8e%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5-%e4%ba%ac%e4%b8%9c%e7%89%a9%e6%b5%81%e6%8a%80%e6%9c%af%e5%9b%a2","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10008047","title":{"rendered":"APP\u6d41\u6c34\u7ebf\u6d4b\u8bd5\u9886\u57df\u63a2\u7d22\u4e0e\u6700\u4f73\u5b9e\u8df5 | \u4eac\u4e1c\u7269\u6d41\u6280\u672f\u56e2\u961f"},"content":{"rendered":"<h2>1 \u80cc\u666f<\/h2>\n<p>APP\u7aefUI\u81ea\u52a8\u5316\u56e0\u5176\u7279\u6b8a\u6027\uff08\u9700\u8fde\u63a5\u6d4b\u8bd5\u673a\uff09\u4e00\u822c\u90fd\u5728\u672c\u5730\u6267\u884c\uff0c\u8fd9\u79cd\u6267\u884c\u65b9\u5f0f\u7684\u5c40\u9650\u6027\u6709\u4ee5\u4e0b\u5f0a\u7aef\uff1a<\/p>\n<ol>\n<li>\u65f6\u6548\u6027\u4f4e\uff1a\u7814\u53d1\u6bcf\u6b21\u6253\u5305\u540e\u90fd\u9700\u8981\u901a\u77e5\u6d4b\u8bd5\uff0c\u6d4b\u8bd5\u518d\u53bb\u6253\u5305\u5e73\u53f0\u53d6\u5305\uff0c\u5b58\u5728\u65f6\u95f4\u5dee<\/li>\n<li>\u7814\u53d1\u81ea\u6d4b\u6216\u4ea7\u54c1\u9a8c\u6536\u65e0\u6cd5\u4f7f\u7528\u81ea\u52a8\u5316\u811a\u672c\uff1a\u7814\u53d1\u81ea\u6d4b\u53ca\u4ea7\u54c1\u9a8c\u6536\u65f6\u5982\u679c\u60f3\u7528\u81ea\u52a8\u5316\u811a\u672c\u9700\u8981\u642d\u5efa\u76f8\u5e94\u7684\u8fd0\u884c\u73af\u5883\u5e76\u51c6\u5907\u6d4b\u8bd5\u673a\uff0c\u7e41\u7410\u7684\u6b65\u9aa4\u5bfc\u81f4\u7814\u53d1\/\u4ea7\u54c1\u653e\u5f03\u4f7f\u7528\u81ea\u52a8\u5316\u3002\u800c\u624b\u5de5\u9a8c\u8bc1\u7684\u8fc7\u7a0b\u4e2d\u7ecf\u5e38\u9700\u8981\u6d4b\u8bd5\u534f\u52a9\u4e0b\u5355\u3001\u6539\u6570\u636e\uff0c\u6548\u7387\u4f4e<\/li>\n<li>\u672c\u5730\u6267\u884c\u7684\u7ed3\u679c\u6ca1\u6709\u6301\u4e45\u5316\u5b58\u50a8\uff0c\u4e0d\u5229\u4e8e\u8fdb\u884c\u7ed3\u679c\u5ea6\u91cf<\/li>\n<\/ol>\n<h2>2 \u65b9\u6848\u5206\u6790<\/h2>\n<p>\u4e3a\u89e3\u51b3\u4ee5\u4e0a\u95ee\u9898\u9700\u8981\u642d\u5efa\u6d41\u6c34\u7ebf\uff0cCI\/CD\u9886\u57df\u5e38\u7528\u7684\u6d41\u6c34\u7ebf\u5e73\u53f0\u975eJenkins\u83ab\u5c5e\uff0cJenkins\u529f\u80fd\u5f3a\u5927\u3001\u53ef\u4e8c\u6b21\u5f00\u53d1\uff0c\u4f46\u6267\u884cAPP\u81ea\u52a8\u5316\u9700\u8981windows\u6267\u884c\u673a\u3001\u6a21\u62df\u5668\/\u771f\u673a\uff0c\u8fd9\u4e9b\u8981\u6c42\u65e0\u7591\u589e\u52a0\u4e86\u6d4b\u8bd5\u6210\u672c\u3002\u4e0e\u4e4b\u76f8\u6bd4\uff0cBamboo\u5e73\u53f0\u662f\u57fa\u4e8eJenkins\u5f00\u53d1\u7684\u6d41\u6c34\u7ebf\u5e73\u53f0\uff0c\u4e0d\u4ec5\u7ee7\u627f\u4e86Jenkins\u7684\u4f17\u591a\u529f\u80fd\uff0c\u4e14\u652f\u6301\u56fe\u5f62\u5316\u914d\u7f6e\uff0c\u5e76\u5bf9\u63a5\u4e86\u8d5b\u535a\u5e73\u53f0\u7b49\u5176\u4ed6\u5e73\u53f0\u3002 <\/p>\n<p>\u4ece\u4e0b\u56fe\u5bf9\u6bd4\u4e2d\u53ef\u4ee5\u770b\u51fa\uff0c\u590d\u7528\u73b0\u6709\u7684Bamboo\u5e73\u53f0\u6210\u672c\u66f4\u4f4e\uff0c\u540c\u65f6\u9700\u8981\u505a\u4ee5\u4e0b\u6539\u53d8\uff1a\u4e00\u3001\u81ea\u52a8\u5316\u6846\u67b6\u9700\u8981\u6539\u4e3aairtest\u6846\u67b6\uff1b\u4e8c\u3001\u9700\u8981\u5bf9\u6d4b\u8bd5\u62a5\u544a\u8fdb\u884c\u5904\u7406\u4ee5\u7b26\u5408\u9884\u671f\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000043977221\" alt=\"\" title=\"\" loading=\"lazy\">[]()<\/p>\n<h2>3 \u65b9\u6848\u5b9e\u65bd<\/h2>\n<p>\u67b6\u6784\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000043977222\" alt=\"\" title=\"\" loading=\"lazy\">[]()<\/p>\n<p>\u6d41\u7a0b\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000043977223\" alt=\"\" title=\"\" loading=\"lazy\">[]()<\/p>\n<p>\u6267\u884c\u7ed3\u679c\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000043977224\" alt=\"\" title=\"\" loading=\"lazy\">[]()<\/p>\n<h2>4 \u6267\u884c\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6848<\/h2>\n<p>1.bamboo\u6253debug\u5305\u6210\uff0crelease\u5305\u4e0d\u6210\u529f  <\/p>\n<p>\u89e3\u51b3\uff1a\u8bc1\u4e66\u7ba1\u7406\u4e2d\u4e0a\u4f20 sign.properties \u6587\u4ef6\uff0c\u8be5\u6587\u4ef6\u4e2d\u53bb\u6389\u7edd\u5bf9\u8def\u5f84\u4fe1\u606f\uff0c\u4f7f\u7528\u76f8\u5bf9\u8def\u5f84<\/p>\n<p>2.\u8d5b\u535a\u5e73\u53f0\u65e0\u6cd5\u8f93\u5165\u6c49\u5b57  <\/p>\n<p>\u89e3\u51b3\uff1a\u7528poco().set_text()\u66ff\u4ee3text()\u65b9\u6cd5  <\/p>\n<p>3.\u8dd1\u811a\u672c\u5931\u8d25\u63d0\u793a RuntimeError: unable to launch AndroidUiautomationPoco  <\/p>\n<p>\u89e3\u51b3\uff1a\u8d5b\u535a\u7684\u673a\u5668\u6709ATX,\u4f1a\u5f71\u54cdpoco\u521d\u59cb\u5316\u3002poco\u521d\u59cb\u5316\u524d\u52a0\u4ee3\u7801\uff1a<\/p>\n<pre><code># \u505c\u6b62ATX\ntry:\nshell(&quot;am force-stop com.github.uiautomator&quot;)\nshell(&quot;\/data\/local\/tmp\/atx-agent server --stop&quot;)\nexcept Exception as e:\nprint(&quot;\u517c\u5bb9\u975e\u8d5b\u535a\u673a\u5668&quot;)<\/code><\/pre>\n<h2>5 \u5f85\u89e3\u51b3\u95ee\u9898<\/h2>\n<ol>\n<li>\u63a5\u5165coding\u5e73\u53f0\uff0c\u53ea\u652f\u6301airtest\u6846\u67b6  <br \/>\u5f71\u54cd\uff1a\u9700\u8981\u5bf9\u539f\u6846\u67b6\u8fdb\u884c\u6539\u52a8\uff0c\u6210\u672c\u8f83\u9ad8\u3002\u4e0e\u8d5b\u535a\u5e73\u53f0\u8d1f\u8d23\u4ea7\u54c1\u6c9f\u901a\u8fc7\uff0c\u8d5b\u535a\u5e73\u53f0\u540e\u671f\u4f1a\u5f00\u53d1\u5bf9\u63a5\u5176\u4ed6\u6846\u67b6\u7684\u529f\u80fd\u3002<\/li>\n<li>\u624b\u52a8\u914d\u7f6e\u7684\u6570\u636e\u6bd4\u8f83\u591a\uff1a\u6a21\u5757\u3001\u7528\u4f8b\u3001\u7528\u4f8b\u96c6  <br \/>\u5f71\u54cd\uff1a\u9664\u4e86\u6d4b\u8bd5\u811a\u672c\u5916\u8fd8\u9700\u5355\u72ec\u914d\u7f6e\u6a21\u5757\u3001\u7528\u4f8b\u3001\u7528\u4f8b\u96c6\uff0c\u4eba\u5de5\u6210\u672c\u8f83\u9ad8\u3002\u540e\u9700\u53ef\u8003\u8651coding\u5e73\u53f0\u4ee3\u7801\u5408\u5e76\u540e\u89e6\u53d1\u5b9a\u65f6\u4efb\u52a1\u81ea\u52a8\u751f\u6210\u5bf9\u5e94\u7684\u6a21\u5757\u3001\u7528\u4f8b\u3001\u7528\u4f8b\u96c6\u3002<\/li>\n<li>\u65e0\u6cd5\u6307\u5b9a\u673a\u578b  <br \/>\u5f71\u54cd\uff1a\u65e0\u6cd5\u6307\u5b9a\u673a\u578b\u8fdb\u884c\u517c\u5bb9\u6027\u6d4b\u8bd5\uff0c\u4e0e\u8d5b\u535a\u5e73\u53f0\u5206\u5219\u4ea7\u54c1\u6c9f\u901a\u8fc7\uff0c\u6682\u672a\u6709\u8ba1\u5212\u4fee\u6539\u6b64\u9879\u3002<\/li>\n<li>\u4eac\u7ba1\u5bb6\u672a\u63a5\u5165\u7ebf\u4e0a\u6253\u5305\u5e73\u53f0  <br \/>\u5f71\u54cd\uff1a\u6d4b\u8bd5\u8fc7\u7a0b\u4e2d\u9700\u8981\u672c\u5730\u4fdd\u7559apk\u5305\uff0c\u5360\u672c\u5730\u5185\u5b58\u4e14\u5bb9\u6613\u6df7\u6dc6\uff1b\u65e0\u6cd5\u8fdb\u884c\u7248\u672c\u7ba1\u7406\uff0c\u9700\u8981\u590d\u73b0\u95ee\u9898\u65f6\u4e0d\u80fd\u53ca\u65f6\u63d0\u4f9b\u5386\u53f2\u7248\u672c\uff1bUED\u8d70\u67e5\u6216\u4ea7\u54c1\u9a8c\u6536\u65f6\u53ea\u80fd\u4eacME\u8054\u7cfb\u7814\u53d1\u53d6\u5305\uff0c\u65f6\u6548\u6027\u5dee\uff1b\u65e0\u6cd5\u63a5\u5165\u6d41\u6c34\u7ebf\u3002<\/li>\n<\/ol>\n<h2>6 \u9884\u671f\u6536\u76ca<\/h2>\n<p>\u6d41\u6c34\u7ebf\u4e0d\u4ec5\u89e3\u51b3\u4e86\u73af\u5883\u914d\u7f6e\u53ca\u6d4b\u8bd5\u673a\u4e0d\u8db3\u7684\u95ee\u9898\u8fd8\u6709\u4ee5\u4e0b\u4f18\u52bf\uff1a<\/p>\n<ol>\n<li>\u5b66\u4e60\u6210\u672c\u4f4e\uff0c\u64cd\u4f5c\u7b80\u5355\uff0c\u9884\u8ba1\u53ef\u8282\u7701\u4e09\u5206\u4e4b\u4e8c\u7684\u5de5\u65f6<\/li>\n<li>\u6267\u884c\u7ed3\u679c\u53ef\u4ee5\u505a\u6301\u4e45\u5316\u5b58\u50a8\uff0c\u540e\u671f\u53ef\u4e0e\u81ea\u52a8\u5316\u5ea6\u91cf\u5e73\u53f0\u76f8\u7ed3\u5408\u8fdb\u884c\u6570\u636e\u5206\u6790<\/li>\n<li>\u6d41\u6c34\u7ebf\u4e2d\u53ef\u52a0\u5165Sunglasses\u539f\u5b50\uff0cUI\u81ea\u52a8\u5316\u6d4b\u8bd5\u8fc7\u7a0b\u4e2d\u76d1\u63a7Flutter\u5f02\u5e38<\/li>\n<li>\u7ebf\u4e0a\u7248\u672c\u53ef\u505a\u65e5\u5e38\u5316\u76d1\u63a7\uff0c\u53ca\u65f6\u53d1\u73b0\u95ee\u9898<\/li>\n<\/ol>\n<blockquote>\n<p>\u4f5c\u8005\uff1a\u4eac\u4e1c\u7269\u6d41 \u8303\u6587\u541b<\/p>\n<p>\u6765\u6e90\uff1a\u4eac\u4e1c\u4e91\u5f00\u53d1\u8005\u793e\u533a \u81ea\u733f\u5176\u8bf4Tech<\/p>\n<\/blockquote>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000043977219\">https:\/\/segmentfault.com\/a\/1190000043977219<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1 \u80cc\u666f APP\u7aefUI\u81ea\u52a8\u5316\u56e0\u5176\u7279\u6b8a\u6027\uff08\u9700\u8fde\u63a5\u6d4b\u8bd5\u673a\uff09\u4e00\u822c\u90fd\u5728\u672c\u5730\u6267\u884c\uff0c\u8fd9\u79cd\u6267\u884c\u65b9\u5f0f\u7684\u5c40\u9650\u6027\u6709\u4ee5\u4e0b\u5f0a\u7aef\uff1a \u65f6\u6548 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10008047","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10008047","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10008047"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10008047\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10008047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10008047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10008047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}