{"id":91083,"date":"2026-08-06T20:00:45","date_gmt":"2026-08-06T12:00:45","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/91083.html"},"modified":"2026-08-06T20:00:45","modified_gmt":"2026-08-06T12:00:45","slug":"%e4%bd%a0%e4%bb%ac%e7%9a%84-flaky-test-%e6%9c%89%e5%a4%9a%e4%b8%a5%e9%87%8d%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/91083.html","title":{"rendered":"\u4f60\u4eec\u7684 Flaky Test \u6709\u591a\u4e25\u91cd\uff1f"},"content":{"rendered":"<p>\u505a\u4e86\u5341\u51e0\u5e74\u6d4b\u8bd5&#xff0c;\u7ecf\u5386\u8fc7\u65e0\u6570\u6b21&#034;\u91cd\u8dd1\u4e00\u4e0b\u5c31\u597d\u4e86&#034;\u3002\u76f4\u5230\u628a\u6570\u636e\u6446\u51fa\u6765&#xff0c;\u624d\u53d1\u73b0\u8fd9\u4e2a\u95ee\u9898\u6bd4\u6240\u6709\u4eba\u60f3\u8c61\u7684\u90fd\u4e25\u91cd\u3002<\/p>\n<h3 id=\"toc-cee63a403dfb9b60efa12fc7fc69deac\">\u4e00\u3001&#034;\u91cd\u8dd1\u4e00\u4e0b\u5c31\u597d\u4e86&#034;\u2014\u2014\u4e09\u4e2a\u5b57\u7684\u4ee3\u4ef7<\/h3>\n<p>\u4f60\u4e00\u5b9a\u542c\u8fc7\u8fd9\u53e5\u8bdd\u3002<\/p>\n<p>CI \u4e00\u7247\u7ea2&#xff0c;\u4f60\u70b9\u5f00\u65e5\u5fd7&#xff0c;\u662f\u90a3\u4e2a\u719f\u6089\u7684\u7528\u4f8b\u2014\u2014\u6628\u5929\u6302\u4e86&#xff0c;\u4eca\u5929\u65e9\u4e0a\u8fc7\u4e86&#xff0c;\u73b0\u5728\u53c8\u6302\u4e86\u3002\u4f60\u70b9\u4e86 Re-run&#xff0c;\u7eff\u706f\u4eae\u4e86&#xff0c;\u6240\u6709\u4eba\u7ee7\u7eed\u5e72\u6d3b\u3002<\/p>\n<p>\u6ca1\u6709\u4eba\u5728\u610f\u3002<\/p>\n<p>Google \u7684\u6d4b\u8bd5\u56e2\u961f\u5728\u610f\u4e86\u3002\u4ed6\u4eec\u505a\u4e86\u4e00\u4ef6\u5f88\u786c\u6838\u7684\u4e8b&#xff1a;\u7edf\u8ba1\u4e86 CI \u91cc\u6240\u6709&#034;\u4ece\u7eff\u53d8\u7ea2&#034;\u7684 case&#xff0c;\u53d1\u73b0\u00a084% \u7684\u6d4b\u8bd5\u5931\u8d25\u662f\u7531 Flaky Test \u5f15\u8d77\u7684\u3002\u4e5f\u5c31\u662f\u8bf4&#xff0c;\u4f60\u7684 CI \u91cc\u6bcf\u62a5 10 \u4e2a&#034;\u5931\u8d25&#034;&#xff0c;8 \u4e2a\u534a\u662f\u5047\u7684\u3002<\/p>\n<p>Atlassian \u66f4\u76f4\u63a5&#xff1a;Jira \u540e\u7aef\u4ed3\u5e93\u00a015% \u7684\u6784\u5efa\u5931\u8d25\u662f Flaky Test&#xff0c;\u524d\u7aef\u66f4\u5938\u5f20\u2014\u201421%\u00a0\u3002\u4ed6\u4eec\u4e13\u95e8\u505a\u4e86\u5de5\u5177\u6765\u6cbb\u7406&#xff0c;\u7ed3\u679c\u5462&#xff1f;\u4e00\u5e74\u8fd8\u662f\u6d6a\u8d39\u4e86\u8d85\u8fc7\u00a015 \u4e07\u5c0f\u65f6\u7684\u5f00\u53d1\u8005\u65f6\u95f4\u3002<\/p>\n<p>15 \u4e07\u5c0f\u65f6\u3002\u6309\u4e00\u4e2a\u4eba\u4e00\u5e74 2000 \u5de5\u65f6\u7b97&#xff0c;\u76f8\u5f53\u4e8e 75 \u4e2a\u4eba\u4e00\u5e74\u7684\u5de5\u4f5c\u91cf&#xff0c;\u5168\u82b1\u5728\u4e86\u8ddf Flaky Test \u640f\u6597\u4e0a\u3002<\/p>\n<h3 id=\"toc-6d159a02052b4ad4d73949169883f25e\">\u4e8c\u3001\u6570\u636e\u8bf4\u8bdd&#xff1a;\u8fd9\u4e2a\u95ee\u9898\u5728\u6076\u5316&#xff0c;\u4e0d\u662f\u5728\u597d\u8f6c<\/h3>\n<p>\u4f60\u4ee5\u4e3a\u6846\u67b6\u8d8a\u6765\u8d8a\u6210\u719f\u3001AI \u8d8a\u6765\u8d8a\u5f3a&#xff0c;Flaky Test \u5e94\u8be5\u8d8a\u6765\u8d8a\u5c11&#xff1f;<\/p>\n<p>Bitrise \u505a\u4e86\u4e00\u4efd\u8986\u76d6\u00a01000 \u4e07&#043;\u6b21\u6784\u5efa&#xff08;2022.1 \u5230 2025.6&#xff09;\u7684\u5206\u6790\u62a5\u544a&#xff0c;\u7ed3\u8bba\u5f88\u624e\u5fc3&#xff1a;<\/p>\n<table>\n<tr>\u5e74\u4efd\u906d\u9047 Flaky Test \u7684\u56e2\u961f\u5360\u6bd4\u6d41\u6c34\u7ebf\u590d\u6742\u5ea6\u53d8\u5316<\/tr>\n<tbody>\n<tr>\n<td>2022<\/td>\n<td>10%<\/td>\n<td>\u57fa\u51c6\u7ebf<\/td>\n<\/tr>\n<tr>\n<td>2025<\/td>\n<td>26%<\/td>\n<td>&#043;23%<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e09\u5e74\u65f6\u95f4&#xff0c;\u53d7 Flaky Test \u56f0\u6270\u7684\u56e2\u961f\u6bd4\u4f8b\u6da8\u4e86\u00a0160%\u00a0\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48\u5728\u6076\u5316&#xff1f;<\/p>\n<ul>\n<li>\u6d4b\u8bd5\u4f53\u91cf\u7206\u70b8&#xff1a;\u5355\u5143\u3001\u96c6\u6210\u3001E2E \u8d8a\u5199\u8d8a\u591a&#xff0c;\u51fa\u95ee\u9898\u7684\u8868\u9762\u79ef\u8d8a\u6765\u8d8a\u5927<\/li>\n<li>\u6d41\u6c34\u7ebf\u590d\u6742\u5ea6\u4e0a\u5347&#xff1a;\u6b65\u9aa4\u591a\u4e86\u3001\u73af\u5883\u591a\u4e86\u3001\u975e\u786e\u5b9a\u6027\u884c\u4e3a\u7684\u89e6\u53d1\u70b9\u4e5f\u591a\u4e86<\/li>\n<li>\u5e76\u884c\u6267\u884c\u5f15\u5165\u65b0\u6545\u969c\u6a21\u5f0f&#xff1a;\u591a\u5bb9\u5668\u3001\u591a\u5206\u7247\u8dd1\u6d4b\u8bd5&#xff0c;\u65f6\u5e8f\u7ade\u4e89\u548c\u72b6\u6001\u5171\u4eab\u7684\u95ee\u9898\u5728\u4e32\u884c\u65f6\u4ee3\u6839\u672c\u4e0d\u5b58\u5728<\/li>\n<li>\u5916\u90e8\u4f9d\u8d56\u6210\u500d\u589e\u957f&#xff1a;\u6bcf\u4e2a API \u8c03\u7528\u3001\u4e91\u670d\u52a1\u3001\u7b2c\u4e09\u65b9\u6570\u636e\u5e93\u90fd\u662f\u4e00\u4e2a\u65b0\u7684\u4e0d\u7a33\u5b9a\u56e0\u5b50<\/li>\n<\/ul>\n<p>\u8bf4\u767d\u4e86&#xff1a;\u6d4b\u8bd5\u7684\u95ee\u9898\u7a7a\u95f4\u589e\u957f\u901f\u5ea6&#xff0c;\u8d85\u8fc7\u4e86\u5de5\u5177\u548c\u5b9e\u8df5\u7684\u8ddf\u8fdb\u901f\u5ea6\u3002<\/p>\n<h3 id=\"toc-dfe5697ae16c40d700f57e1e3b7738ec\">\u4e09\u3001\u5927\u5382\u7684 Flaky Rate \u957f\u4ec0\u4e48\u6837&#xff1f;<\/h3>\n<p>\u8fd9\u4e0d\u662f\u5c0f\u516c\u53f8\u624d\u6709\u7684\u95ee\u9898\u3002\u770b\u770b\u516c\u5f00\u6570\u636e\u7684\u5934\u90e8\u516c\u53f8&#xff1a;<\/p>\n<table>\n<tr>\u516c\u53f8\u6307\u6807\u6570\u503c\u6765\u6e90<\/tr>\n<tbody>\n<tr>\n<td>Google<\/td>\n<td>\u5b58\u5728 Flaky \u884c\u4e3a\u7684\u6d4b\u8bd5\u5360\u6bd4<\/td>\n<td>16%<\/td>\n<td>Google Testing Blog<\/td>\n<\/tr>\n<tr>\n<td>Google<\/td>\n<td>\u5355\u6b21\u6267\u884c\u7684 Flaky \u7387<\/td>\n<td>1.5%<\/td>\n<td>Google Testing Blog<\/td>\n<\/tr>\n<tr>\n<td>Google<\/td>\n<td>&#034;\u7eff\u2192\u7ea2&#034;\u8f6c\u6362\u4e2d\u7531 Flaky \u5bfc\u81f4\u7684\u5360\u6bd4<\/td>\n<td>84%<\/td>\n<td>Google Testing Blog<\/td>\n<\/tr>\n<tr>\n<td>Atlassian<\/td>\n<td>Jira \u540e\u7aef\u4ed3\u5e93\u5931\u8d25\u4e2d Flaky \u5360\u6bd4<\/td>\n<td>15%<\/td>\n<td>Atlassian Engineering<\/td>\n<\/tr>\n<tr>\n<td>Atlassian<\/td>\n<td>Jira \u524d\u7aef master \u6784\u5efa\u5931\u8d25\u4e2d Flaky \u5360\u6bd4<\/td>\n<td>21%<\/td>\n<td>Atlassian Engineering<\/td>\n<\/tr>\n<tr>\n<td>Microsoft<\/td>\n<td>\u6d4b\u8bd5\u5931\u8d25\u4e2d Flaky \u5360\u6bd4<\/td>\n<td>13%<\/td>\n<td>Microsoft Research<\/td>\n<\/tr>\n<tr>\n<td>GitHub<\/td>\n<td>\u4ea7\u751f Flaky \u7ea2\u6784\u5efa\u7684\u63d0\u4ea4\u5360\u6bd4<\/td>\n<td>9%<\/td>\n<td>GitHub<\/td>\n<\/tr>\n<tr>\n<td>\u5927\u578b\u4f01\u4e1a\u8c03\u7814<\/td>\n<td>\u8d85\u8fc7 5% \u975e\u786e\u5b9a\u6027\u7ed3\u679c\u7684\u7ec4\u7ec7\u5360\u6bd4<\/td>\n<td>24%<\/td>\n<td>LambdaTest 2026<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Google \u90a3\u4e2a 1.5% \u7684\u5355\u6b21\u6267\u884c\u7387\u770b\u7740\u5f88\u4f4e\u5bf9\u5427&#xff1f;\u4f46\u522b\u5fd8\u4e86\u5206\u6bcd\u2014\u2014Google \u6bcf\u5929\u8dd1\u6570\u767e\u4e07\u6b21\u6d4b\u8bd5\u30021.5% \u4e58\u4ee5\u51e0\u767e\u4e07&#xff0c;\u5c31\u662f\u51e0\u4e07\u6b21\u5047\u5931\u8d25\u3002\u800c\u4e14 16% \u7684\u6d4b\u8bd5\u5e93\u5b58\u5728 Flaky \u884c\u4e3a&#xff0c;\u610f\u5473\u7740\u4f60\u968f\u4fbf\u62bd 7 \u4e2a\u6d4b\u8bd5&#xff0c;\u5c31\u6709 1 \u4e2a\u4f1a\u5728\u67d0\u4e2a\u65f6\u523b\u8868\u73b0\u5f02\u5e38\u3002<\/p>\n<p>\u518d\u770b\u90a3\u4e2a 84%&#xff1a;\u4f60\u7684 CI \u6bcf\u6b21\u62a5\u7ea2&#xff0c;\u4f60\u7b2c\u4e00\u53cd\u5e94\u662f&#034;\u6211\u4ee3\u7801\u51fa Bug \u4e86&#034;\u3002\u4f46\u6709 84% \u7684\u6982\u7387&#xff0c;\u90a3\u53ea\u662f Flaky Test \u5728\u53eb\u4f60\u53bb\u770b\u5b83\u4e00\u773c\u3002<\/p>\n<p>\u8fd9\u5c31\u662f\u4fe1\u4efb\u4fb5\u8680\u7684\u5f00\u59cb\u3002<\/p>\n<h3 id=\"toc-a08e7a01d7ffac03973c2ed849d0858e\">\u56db\u3001Flaky Test \u7684 6 \u5927\u6839\u56e0&#xff08;\u9644\u771f\u5b9e\u573a\u666f&#xff09;<\/h3>\n<p>\u5b66\u672f\u754c\u6709 Luo et al. \u5bf9 Apache \u9879\u76ee 201 \u4e2a Flaky \u4fee\u590d commit \u7684\u7ecf\u5178\u5206\u7c7b&#xff0c;\u4e5f\u6709 2025 \u5e74 ICST \u5bf9 49 \u4e2a\u5f00\u6e90 Web \u9879\u76ee 123 \u4e2a Flaky Test \u7684\u5b9e\u8bc1\u7814\u7a76\u3002\u7ed3\u5408\u5de5\u4e1a\u754c\u5b9e\u8df5&#xff0c;\u6839\u56e0\u57fa\u672c\u8dd1\u4e0d\u51fa\u8fd9 6 \u7c7b&#xff1a;<\/p>\n<h4 id=\"toc-4015ec1e78e5dbbd1659b65925711728\">1. \u5f02\u6b65\u7b49\u5f85\u95ee\u9898&#xff08;\u5360\u6bd4\u7ea6 45%\u2014\u2014\u7b2c\u4e00\u5927\u6740\u624b&#xff09;<\/h4>\n<p>\u6d4b\u8bd5\u4ee3\u7801\u7528\u00a0time.sleep(2)\u00a0\u7b49\u4e00\u4e2a\u5143\u7d20\u51fa\u73b0\u3002CI \u8d1f\u8f7d\u4e00\u91cd&#xff0c;\u6e32\u67d3\u8981 2.3 \u79d2&#xff0c;\u6302\u4e86\u3002\u4e0b\u6b21\u8dd1\u5feb\u4e86&#xff0c;\u53c8\u8fc7\u4e86\u3002<\/p>\n<p>\u771f\u5b9e\u573a\u666f&#xff1a;E2E \u6d4b\u8bd5\u7b49\u4e00\u4e2a\u5f39\u7a97\u52a8\u753b\u7ed3\u675f&#xff0c;\u672c\u5730\u673a\u5668 1.8 \u79d2\u641e\u5b9a&#xff0c;CI \u4e0a\u8dd1\u4e86 2.5 \u79d2\u3002\u6d4b\u8bd5\u56e2\u961f\u52a0\u4e86\u00a0time.sleep(3)&#xff0c;\u4e09\u4e2a\u6708\u540e CI \u5347\u7ea7\u914d\u7f6e\u53d8\u6162\u4e86&#xff0c;3 \u79d2\u4e5f\u4e0d\u591f&#xff0c;\u53c8\u52a0\u5230 5 \u79d2\u3002\u73b0\u5728 suite \u91cc\u5230\u5904\u90fd\u662f\u00a0sleep(5)&#xff0c;\u6574\u4e2a\u56de\u5f52\u8dd1\u5b8c\u8981 40 \u5206\u949f\u3002<\/p>\n<p>\u6b63\u786e\u505a\u6cd5&#xff1a;\u7528\u663e\u5f0f\u6761\u4ef6\u7b49\u5f85&#xff08;waitForSelector\u3001WebDriverWait&#xff09;&#xff0c;\u7b49\u72b6\u6001\u53d8\u5316\u800c\u4e0d\u662f\u7b49\u65f6\u95f4\u6d41\u901d\u3002<\/p>\n<h4 id=\"toc-a8ccf55a0a0df355aa9481534ddcd07b\">2. \u5e76\u53d1\u4e0e\u7ade\u6001\u6761\u4ef6&#xff08;\u7ea6 20%&#xff09;<\/h4>\n<p>\u6d4b\u8bd5\u5047\u8bbe\u4e86\u7ebf\u7a0b\u6267\u884c\u987a\u5e8f&#xff0c;\u4f46\u7cfb\u7edf\u4e0d\u4fdd\u8bc1\u8fd9\u4e2a\u987a\u5e8f\u3002\u901a\u8fc7\u4e86\u662f\u8fd0\u6c14&#xff0c;\u4e0d\u901a\u8fc7\u624d\u662f\u771f\u76f8\u3002<\/p>\n<p>\u771f\u5b9e\u573a\u666f&#xff1a;\u591a\u7ebf\u7a0b\u670d\u52a1\u6d4b\u8bd5\u91cc&#xff0c;\u4e3b\u7ebf\u7a0b\u5199\u4e86\u6570\u636e\u3001\u5b50\u7ebf\u7a0b\u8bfb\u6570\u636e\u3002\u672c\u5730\u4e32\u884c\u8dd1\u6ca1\u95ee\u9898&#xff0c;CI \u5f00\u4e86 8 \u4e2a worker \u5e76\u884c\u8dd1&#xff0c;\u5b50\u7ebf\u7a0b\u5076\u5c14\u62a2\u5728\u4e3b\u7ebf\u7a0b\u524d\u9762\u8bfb&#xff0c;\u8bfb\u5230\u7a7a\u503c\u5c31\u6302\u4e86\u3002<\/p>\n<p>\u6ce8\u610f&#xff1a;\u7ea6 1\/3 \u7684\u5e76\u53d1\u7c7b Flaky&#xff0c;\u95ee\u9898\u4e0d\u5728\u6d4b\u8bd5\u4ee3\u7801&#xff0c;\u800c\u5728\u751f\u4ea7\u4ee3\u7801\u7684\u5e76\u53d1 bug\u3002\u4fee\u6d4b\u8bd5\u53ea\u662f\u5728\u63a9\u76d6\u771f\u5b9e\u7f3a\u9677\u3002<\/p>\n<h4 id=\"toc-20a7c1a40ad765343bef022fb72c719e\">3. \u6d4b\u8bd5\u987a\u5e8f\u4f9d\u8d56&#xff08;Python \u9879\u76ee\u7684\u7b2c\u4e00\u5927\u6839\u56e0&#xff09;<\/h4>\n<p>\u6d4b\u8bd5 A \u521b\u5efa\u4e86\u4e00\u4e2a\u7528\u6237&#xff0c;\u6d4b\u8bd5 B \u4f9d\u8d56\u8fd9\u4e2a\u7528\u6237\u5b58\u5728\u3002\u5982\u679c B \u5728 A \u524d\u9762\u8dd1\u2014\u2014\u6302\u4e86\u3002\u672c\u5730\u987a\u5e8f\u8dd1\u6ca1\u4e8b&#xff0c;CI \u4e00\u5e76\u884c\u5c31\u70b8\u3002<\/p>\n<p>\u771f\u5b9e\u573a\u666f&#xff1a;\u4e00\u4e2a Python \u9879\u76ee\u8dd1\u4e86 1000&#043; \u6d4b\u8bd5&#xff0c;\u53d1\u73b0 30% \u7684 Flaky \u6765\u81ea\u6d4b\u8bd5\u95f4\u5171\u4eab\u4e86\u6570\u636e\u5e93\u72b6\u6001\u3002\u6d4b\u8bd5 C \u5220\u4e86\u67d0\u6761\u8bb0\u5f55&#xff0c;\u6d4b\u8bd5 D \u671f\u671b\u90a3\u6761\u8bb0\u5f55\u5b58\u5728\u3002\u5355\u72ec\u8dd1 D \u6ca1\u95ee\u9898&#xff0c;C\u2192D \u8dd1\u5c31\u70b8\u3002<\/p>\n<p>\u6838\u5fc3\u95ee\u9898&#xff1a;\u6bcf\u4e2a\u6d4b\u8bd5\u5e94\u8be5\u662f\u5b8c\u5168\u72ec\u7acb\u7684\u2014\u2014\u81ea\u5df1 setup\u3001\u81ea\u5df1 teardown\u3002\u4e0d\u5171\u4eab\u6570\u636e\u5e93\u8bb0\u5f55\u3001\u4e0d\u5171\u4eab Session\u3001\u4e0d\u5171\u4eab\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<h4 id=\"toc-43485172c705bcd3220051354b092289\">4. \u73af\u5883\u4e0e\u5e73\u53f0\u5dee\u5f02&#xff08;\u7ea6 28% of Python Flaky&#xff09;<\/h4>\n<p>\u672c\u5730\u8dd1\u7684\u8fc7&#xff0c;CI \u4e0a\u8dd1\u4e0d\u8fc7\u3002\u6587\u4ef6\u8def\u5f84\u5206\u9694\u7b26\u4e0d\u540c\u3001\u65f6\u533a\u4e0d\u540c\u3001Node \u7248\u672c\u4e0d\u540c\u3001\u7cfb\u7edf\u4f9d\u8d56\u7f3a\u5931\u3002<\/p>\n<p>\u771f\u5b9e\u573a\u666f&#xff1a;\u4e00\u4e2a Node.js \u9879\u76ee&#xff0c;macOS \u5f00\u53d1\u673a\u4e0a\u5168\u8fc7&#xff0c;Linux CI \u4e0a 3 \u4e2a\u6d4b\u8bd5\u56fa\u5b9a\u6302\u3002\u6392\u67e5\u4e86\u4e00\u5468\u53d1\u73b0\u662f\u65f6\u533a\u95ee\u9898\u2014\u2014\u6d4b\u8bd5\u91cc\u7528\u4e86\u00a0Date.now()\u00a0\u505a\u65ad\u8a00&#xff0c;UTC&#043;8 \u548c UTC \u8dd1\u51fa\u6765\u7ed3\u679c\u4e0d\u540c\u3002<\/p>\n<h4 id=\"toc-75ea7df2444e8abcb1bcb854cd7a729f\">5. \u5916\u90e8\u670d\u52a1\u4f9d\u8d56<\/h4>\n<p>\u6d4b\u8bd5\u8c03\u4e86\u4e00\u4e2a\u7b2c\u4e09\u65b9\u652f\u4ed8 API&#xff0c;\u5bf9\u65b9\u77ed\u6682 503&#xff0c;\u6d4b\u8bd5\u6302\u4e86\u3002\u5e94\u7528\u4ee3\u7801\u6ca1\u95ee\u9898&#xff0c;\u4f46 CI \u7ea2\u4e86\u3002<\/p>\n<p>\u771f\u5b9e\u573a\u666f&#xff1a;\u56de\u5f52\u6d4b\u8bd5\u91cc\u6709 5 \u4e2a\u7528\u4f8b\u4f9d\u8d56\u5916\u90e8\u77ed\u4fe1\u670d\u52a1\u3002\u6bcf\u6b21\u77ed\u4fe1\u670d\u52a1\u9650\u6d41\u6216\u6296\u52a8&#xff0c;\u5c31\u6302\u4e00\u4e24\u4e2a\u3002\u6d4b\u8bd5\u56e2\u961f\u4e00\u5f00\u59cb\u4ee5\u4e3a\u662f\u5076\u53d1\u95ee\u9898&#xff0c;\u52a0\u4e86 retry\u3002\u534a\u5e74\u540e\u7edf\u8ba1&#xff0c;\u8fd9 5 \u4e2a\u7528\u4f8b\u8d21\u732e\u4e86 40% \u7684&#034;\u5931\u8d25&#034;\u8bb0\u5f55\u3002<\/p>\n<h4 id=\"toc-63e0b8901919c61192ec4468625a9101\">6. UI \u5b9a\u4f4d\u5668\u8106\u5f31<\/h4>\n<p>\u5f00\u53d1\u6539\u4e86\u6309\u94ae\u6587\u6848\u4ece&#034;\u63d0\u4ea4&#034;\u6539\u6210&#034;\u53d1\u9001\u8bf7\u6c42&#034;&#xff0c;\u6d4b\u8bd5\u6309\u6587\u6848\u5b9a\u4f4d&#xff0c;\u6302\u4e86\u3002<\/p>\n<p>\u771f\u5b9e\u573a\u666f&#xff1a;\u524d\u7aef\u91cd\u6784\u4e86\u7ec4\u4ef6\u6811&#xff0c;DOM \u7ed3\u6784\u5168\u53d8\u4e86\u300280 \u4e2a E2E \u7528\u4f8b\u4e00\u591c\u4e4b\u95f4\u5168\u7ea2&#xff0c;\u4f46\u540e\u7aef\u4e00\u884c\u4ee3\u7801\u6ca1\u6539\u3002<\/p>\n<h3 id=\"toc-648d544ac21b28ebcde98eefa7b8bcdb\">\u4e94\u3001\u771f\u6b63\u7684\u4ee3\u4ef7\u4e0d\u662f\u65f6\u95f4&#xff0c;\u662f\u4fe1\u4efb<\/h3>\n<p>\u65f6\u95f4\u6210\u672c\u5df2\u7ecf\u591f\u5413\u4eba\u4e86&#xff1a;Google \u7684\u6570\u636e\u663e\u793a&#xff0c;\u5f00\u53d1\u8005\u00a02% \u7684\u7f16\u7801\u65f6\u95f4\u82b1\u5728 Flaky Test \u8c03\u67e5\u4e0a\u300250 \u4eba\u7684\u56e2\u961f&#xff0c;\u6309\u4eba\u5747\u5e74\u85aa 12 \u4e07\u7f8e\u5143\u7b97&#xff0c;\u4e00\u5e74\u5c31\u662f\u00a012 \u4e07\u7f8e\u5143\u7eaf\u6d6a\u8d39\u3002\u4f01\u4e1a\u7ea7\u56e2\u961f\u66f4\u5938\u5f20\u2014\u2014LambdaTest \u8c03\u7814\u663e\u793a&#xff0c;QA \u56e2\u961f\u00a08% \u7684\u65f6\u95f4\u82b1\u5728 Flaky Test \u4e0a\u3002<\/p>\n<p>\u4f46\u66f4\u5927\u7684\u4ee3\u4ef7\u662f\u9690\u6027\u7684&#xff1a;\u4fe1\u4efb\u4fb5\u8680\u3002<\/p>\n<p>\u5f53 CI \u91cc 84% \u7684&#034;\u5931\u8d25&#034;\u662f\u5047\u8b66\u62a5&#xff0c;\u5f00\u53d1\u8005\u7684\u884c\u4e3a\u6a21\u5f0f\u4f1a\u53d8\u6210&#xff1a;<\/p>\n<ul>\n<li>\u770b\u5230\u7ea2\u706f \u2192 \u4e0d\u770b\u65e5\u5fd7 \u2192 \u76f4\u63a5 Re-run<\/li>\n<li>Re-run \u8fc7\u4e86 \u2192 &#034;\u679c\u7136\u4e0d\u662f\u6211\u7684\u95ee\u9898&#034; \u2192 \u7ee7\u7eed\u5e72\u6d3b<\/li>\n<li>Re-run \u8fd8\u7ea2 \u2192 \u518d Re-run \u4e00\u6b21 \u2192 \u4e09\u6b21\u90fd\u7ea2\u624d\u53bb\u67e5<\/li>\n<\/ul>\n<p>\u8fd9\u5c31\u662f&#034;\u91cd\u8bd5\u9677\u9631&#034;\u3002<\/p>\n<p>\u771f\u6b63\u7684\u707e\u96be\u5728\u4e8e&#xff1a;\u5f53\u56e2\u961f\u4e60\u60ef\u4e86\u65e0\u89c6\u7ea2\u706f&#xff0c;\u90a3\u4e00\u6b21\u771f\u6b63\u7531 Bug \u5bfc\u81f4\u7684\u5931\u8d25\u4e5f\u4f1a\u88ab\u65e0\u89c6\u3002<\/p>\n<p>Google \u81ea\u5df1\u7684\u5e94\u5bf9\u65b9\u5f0f&#xff1a;\u6d4b\u8bd5\u6700\u591a\u91cd\u8bd5 3 \u6b21&#xff0c;3 \u6b21\u90fd\u5931\u8d25\u624d\u62a5\u7ea2\u3002\u8fd9\u4e0d\u662f\u56e0\u4e3a\u91cd\u8bd5\u662f\u5bf9\u7684&#xff0c;\u800c\u662f\u56e0\u4e3a\u5230\u4e86 Google \u8fd9\u4e2a\u89c4\u6a21&#xff0c;\u91cd\u8bd5\u662f&#034;\u4f24\u5bb3\u6700\u5c0f&#034;\u7684\u59a5\u534f\u65b9\u6848\u3002<\/p>\n<p>GitLab \u7684\u505a\u6cd5\u662f\u9694\u79bb&#xff1a;Flaky Test \u4e00\u65e6\u786e\u8ba4&#xff0c;\u7acb\u5373 quarantine&#xff08;\u9694\u79bb&#xff09;&#xff0c;\u4e0d\u963b\u585e\u4e3b\u5206\u652f&#xff0c;\u5f02\u6b65\u4fee\u590d\u3002<\/p>\n<p>Spotify \u7684 Master Guardian \u7b56\u7565&#xff1a;\u5df2\u77e5\u7684 Flaky Test \u5728\u5408\u5e76\u524d\u76f4\u63a5\u8df3\u8fc7&#xff0c;\u4e0d\u8ba1\u5165\u95e8\u7981\u7ed3\u679c\u3002<\/p>\n<p>\u8fd9\u4e9b\u5927\u5382\u7684\u5171\u8bc6\u662f&#xff1a;Flaky Test \u4e0d\u80fd\u963b\u585e\u6d41\u6c34\u7ebf&#xff0c;\u4f46\u4e5f\u4e0d\u80fd\u653e\u4efb\u4e0d\u7ba1\u2014\u2014\u5fc5\u987b\u53ef\u89c1\u3001\u53ef\u8ffd\u8e2a\u3001\u6709 SLA \u5730\u4fee\u590d\u3002<\/p>\n<h3 id=\"toc-61a870a35ad2d4b10b7784233b17cd46\">\u516d\u3001\u4f60\u56e2\u961f\u7684 Flaky Rate \u662f\u591a\u5c11&#xff1f;<\/h3>\n<p>\u8bf4\u5230\u8fd9\u513f&#xff0c;\u6709\u51e0\u4e2a\u95ee\u9898\u6211\u60f3\u505a\u4e2a\u8c03\u7814\u3002<\/p>\n<p>\u505a\u4e86\u8fd9\u4e48\u591a\u5e74\u6d4b\u8bd5&#xff0c;\u6211\u5728\u4e0d\u540c\u56e2\u961f\u89c1\u8fc7\u4ece 0.5% \u5230 30% \u7684 Flaky Rate\u3002\u5dee\u5f02\u5de8\u5927&#xff0c;\u5173\u952e\u533a\u522b\u5728\u4e8e&#xff1a;\u56e2\u961f\u662f\u5426\u5728\u505a\u5ea6\u91cf\u3002<\/p>\n<p>\u5927\u90e8\u5206\u56e2\u961f\u4e0d\u505a\u5ea6\u91cf\u3002\u4ed6\u4eec\u4e0d\u77e5\u9053\u81ea\u5df1\u7684 Flaky Rate \u662f\u591a\u5c11&#xff0c;\u4e0d\u77e5\u9053\u54ea\u4e9b\u7528\u4f8b\u662f\u9ad8\u9891 Flaky&#xff0c;\u4e0d\u77e5\u9053 Flaky \u5728\u5403\u6389\u591a\u5c11 CI \u8d44\u6e90\u3002\u4ed6\u4eec\u53ea\u77e5\u9053&#034;CI \u6709\u65f6\u5019\u4f1a\u83ab\u540d\u5176\u5999\u6302&#034;\u3002<\/p>\n<p>\u5982\u679c\u4f60\u4e5f\u4e0d\u786e\u5b9a\u81ea\u5df1\u56e2\u961f\u7684\u72b6\u51b5&#xff0c;\u53ef\u4ee5\u8fd9\u6837\u7b97&#xff1a;<\/p>\n<li>\u6311\u4e00\u4e2a 30 \u5929\u7684\u7a97\u53e3<\/li>\n<li>\u7edf\u8ba1\u671f\u95f4\u5185\u51fa\u73b0\u8fc7&#034;\u540c\u4ee3\u7801\u540c\u73af\u5883\u6709\u65f6\u8fc7\u6709\u65f6\u4e0d\u8fc7&#034;\u7684\u6d4b\u8bd5\u7528\u4f8b\u6570\u91cf<\/li>\n<li>\u9664\u4ee5\u603b\u6d4b\u8bd5\u7528\u4f8b\u6570<\/li>\n<li>\u8fd9\u5c31\u662f\u4f60\u7684 Flaky Rate<\/li>\n<p>\u62ff\u8fd9\u4e2a\u6570\u53bb\u5bf9\u6bd4\u4e0a\u9762\u7684\u5927\u5382\u57fa\u51c6\u7ebf&#xff0c;\u770b\u770b\u81ea\u5df1\u5728\u4ec0\u4e48\u6c34\u5e73\u3002<\/p>\n<h3 id=\"toc-12e5e07726e36f0bb013cb1e7572f767\">\u4e03\u3001\u6211\u60f3\u542c\u542c\u4f60\u4eec\u7684\u60c5\u51b5<\/h3>\n<p>\u8fd9\u7bc7\u6587\u7ae0\u7684\u6838\u5fc3\u76ee\u7684\u4e0d\u662f\u7ed9\u7b54\u6848&#xff0c;\u800c\u662f\u6536\u96c6\u771f\u5b9e\u53cd\u9988\u3002\u56e0\u4e3a Flaky Test \u8fd9\u4e2a\u8bdd\u9898&#xff0c;\u5b66\u672f\u7814\u7a76\u548c\u5de5\u4e1a\u5b9e\u8df5\u4e4b\u95f4\u6709\u5f88\u5927\u7684 gap&#xff0c;\u800c gap \u91cc\u85cf\u7740\u771f\u6b63\u6709\u4ef7\u503c\u7684\u4e00\u624b\u7ecf\u9a8c\u3002<\/p>\n<p>\u6211\u60f3\u4e86\u89e3\u7684\u95ee\u9898&#xff1a;<\/p>\n<li>\u4f60\u56e2\u961f\u7684 Flaky Rate \u5927\u6982\u662f\u591a\u5c11&#xff1f;\u00a0&#xff08;\u4e0d\u7528\u7cbe\u786e&#xff0c;\u4e00\u4e2a\u4f53\u611f\u6570\u5b57\u5c31\u884c&#xff09;<\/li>\n<li>\u4f60\u4eec\u6709\u5728\u505a Flaky Test \u7684\u7cfb\u7edf\u6027\u5ea6\u91cf\u5417&#xff1f;\u00a0\u8fd8\u662f\u5168\u9760&#034;\u91cd\u8dd1&#034;&#xff1f;<\/li>\n<li>\u4f60\u9047\u5230\u6700\u591a\u7684 Flaky \u6839\u56e0\u662f\u54ea\u7c7b&#xff1f;\u00a0\u5f02\u6b65\u7b49\u5f85&#xff1f;\u73af\u5883\u5dee\u5f02&#xff1f;\u6570\u636e\u4f9d\u8d56&#xff1f;<\/li>\n<li>\u4f60\u4eec\u600e\u4e48\u6cbb\u7406 Flaky Test&#xff1f;\u00a0\u9694\u79bb&#xff1f;\u91cd\u8bd5&#xff1f;\u4fee\u590d&#xff1f;\u5220\u9664&#xff1f;\u6709\u6ca1\u6709\u660e\u786e\u7684 SLA&#xff1f;<\/li>\n<li>Flaky Test \u5bf9\u56e2\u961f\u7684 CI\/CD \u4fe1\u5fc3\u5f71\u54cd\u6709\u591a\u5927&#xff1f;\u00a0\u5f00\u53d1\u8005\u770b\u5230\u7ea2\u706f\u7b2c\u4e00\u53cd\u5e94\u662f\u4ec0\u4e48&#xff1f;<\/li>\n<li>\u6709\u6ca1\u6709\u4ec0\u4e48\u5de5\u5177\u6216\u65b9\u6cd5\u8bba\u4f60\u89c9\u5f97\u7279\u522b\u7ba1\u7528&#xff1f;<\/li>\n<p>\u4e0d\u7ba1\u4f60\u662f 5 \u4eba\u521b\u4e1a\u56e2\u961f\u8fd8\u662f\u5927\u5382\u7684 QA&#xff0c;\u4f60\u7684\u4e00\u624b\u6570\u636e\u90fd\u5f88\u6709\u4ef7\u503c\u3002\u8bc4\u8bba\u533a\u804a&#xff0c;\u4e5f\u53ef\u4ee5\u79c1\u4fe1\u4ea4\u6d41\u3002<\/p>\n<p>\u6211\u4f1a\u628a\u6536\u96c6\u5230\u7684\u53cd\u9988\u505a\u4e00\u671f\u6c47\u603b\u5206\u6790&#xff0c;\u770b\u770b\u4e0d\u540c\u56e2\u961f\u3001\u4e0d\u540c\u89c4\u6a21\u3001\u4e0d\u540c\u6280\u672f\u6808\u4e4b\u95f4&#xff0c;Flaky Test \u7684\u771f\u5b9e\u9762\u8c8c\u5230\u5e95\u957f\u4ec0\u4e48\u6837\u3002<\/p>\n<p>\u53c2\u8003\u8d44\u6599&#xff1a;<\/p>\n<ul>\n<li>Bitrise Mobile Insights 2025&#xff08;\u8986\u76d6 10M&#043; \u6784\u5efa\u6570\u636e&#xff09;<\/li>\n<li>Google Testing Blog&#xff08;Flaky Test \u7cfb\u5217\u7814\u7a76&#xff09;<\/li>\n<li>Atlassian Engineering Blog 2025&#xff08;Jira Flaky Test \u6cbb\u7406&#xff09;<\/li>\n<li>Microsoft Research&#xff08;Flaky Test \u5206\u7c7b\u4e0e\u68c0\u6d4b&#xff09;<\/li>\n<li>Luo et al.&#xff08;Apache \u9879\u76ee Flaky Test \u6839\u56e0\u5206\u6790&#xff09;<\/li>\n<li>LambdaTest State of Testing Survey 2026<\/li>\n<li>ICST 2024\/2025 \u591a\u7bc7\u5b9e\u8bc1\u7814\u7a76<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u505a\u4e86\u5341\u51e0\u5e74\u6d4b\u8bd5&#xff0c;\u7ecf\u5386\u8fc7\u65e0\u6570\u6b21\\&#8221;\u91cd\u8dd1\u4e00\u4e0b\u5c31\u597d\u4e86\\&#8221;\u3002\u76f4\u5230\u628a\u6570\u636e\u6446\u51fa\u6765&#xff0c;\u624d\u53d1\u73b0\u8fd9\u4e2a\u95ee\u9898\u6bd4\u6240\u6709\u4eba\u60f3\u8c61\u7684\u90fd\u4e25\u91cd\u3002\u4e00\u3001\\&#8221;\u91cd\u8dd1\u4e00\u4e0b\u5c31\u597d\u4e86\\&#8221;\u2014\u2014\u4e09\u4e2a\u5b57\u7684\u4ee3\u4ef7\u4f60\u4e00\u5b9a\u542c\u8fc7\u8fd9\u53e5\u8bdd\u3002CI \u4e00\u7247\u7ea2&#xff0c;\u4f60\u70b9\u5f00\u65e5\u5fd7&#xff0c;\u662f\u90a3\u4e2a\u719f\u6089\u7684\u7528\u4f8b\u2014\u2014\u6628\u5929\u6302\u4e86&#xff0c;\u4eca\u5929\u65e9\u4e0a\u8fc7\u4e86&#xff0c;\u73b0\u5728\u53c8\u6302\u4e86\u3002\u4f60\u70b9\u4e86 Re-run&#xff0c;\u7eff\u706f\u4eae\u4e86&#xff0c;\u6240\u6709\u4eba\u7ee7\u7eed\u5e72\u6d3b\u3002\u6ca1\u6709\u4eba\u5728\u610f\u3002Google \u7684\u6d4b\u8bd5\u56e2\u961f\u5728\u610f\u4e86\u3002\u4ed6\u4eec\u505a\u4e86\u4e00\u4ef6\u5f88\u786c\u6838\u7684\u4e8b&amp;#xff1a<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[50],"topic":[],"class_list":["post-91083","post","type-post","status-publish","format-standard","hentry","category-server","tag-50"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f60\u4eec\u7684 Flaky Test \u6709\u591a\u4e25\u91cd\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/91083.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f60\u4eec\u7684 Flaky Test \u6709\u591a\u4e25\u91cd\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u505a\u4e86\u5341\u51e0\u5e74\u6d4b\u8bd5&#xff0c;\u7ecf\u5386\u8fc7\u65e0\u6570\u6b21&quot;\u91cd\u8dd1\u4e00\u4e0b\u5c31\u597d\u4e86&quot;\u3002\u76f4\u5230\u628a\u6570\u636e\u6446\u51fa\u6765&#xff0c;\u624d\u53d1\u73b0\u8fd9\u4e2a\u95ee\u9898\u6bd4\u6240\u6709\u4eba\u60f3\u8c61\u7684\u90fd\u4e25\u91cd\u3002\u4e00\u3001&quot;\u91cd\u8dd1\u4e00\u4e0b\u5c31\u597d\u4e86&quot;\u2014\u2014\u4e09\u4e2a\u5b57\u7684\u4ee3\u4ef7\u4f60\u4e00\u5b9a\u542c\u8fc7\u8fd9\u53e5\u8bdd\u3002CI \u4e00\u7247\u7ea2&#xff0c;\u4f60\u70b9\u5f00\u65e5\u5fd7&#xff0c;\u662f\u90a3\u4e2a\u719f\u6089\u7684\u7528\u4f8b\u2014\u2014\u6628\u5929\u6302\u4e86&#xff0c;\u4eca\u5929\u65e9\u4e0a\u8fc7\u4e86&#xff0c;\u73b0\u5728\u53c8\u6302\u4e86\u3002\u4f60\u70b9\u4e86 Re-run&#xff0c;\u7eff\u706f\u4eae\u4e86&#xff0c;\u6240\u6709\u4eba\u7ee7\u7eed\u5e72\u6d3b\u3002\u6ca1\u6709\u4eba\u5728\u610f\u3002Google \u7684\u6d4b\u8bd5\u56e2\u961f\u5728\u610f\u4e86\u3002\u4ed6\u4eec\u505a\u4e86\u4e00\u4ef6\u5f88\u786c\u6838\u7684\u4e8b&amp;#xff1a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/91083.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-06T12:00:45+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/91083.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/91083.html\",\"name\":\"\u4f60\u4eec\u7684 Flaky Test \u6709\u591a\u4e25\u91cd\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-06T12:00:45+00:00\",\"dateModified\":\"2026-08-06T12:00:45+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/91083.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/91083.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/91083.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f60\u4eec\u7684 Flaky Test \u6709\u591a\u4e25\u91cd\uff1f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4f60\u4eec\u7684 Flaky Test \u6709\u591a\u4e25\u91cd\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/91083.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4f60\u4eec\u7684 Flaky Test \u6709\u591a\u4e25\u91cd\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u505a\u4e86\u5341\u51e0\u5e74\u6d4b\u8bd5&#xff0c;\u7ecf\u5386\u8fc7\u65e0\u6570\u6b21\"\u91cd\u8dd1\u4e00\u4e0b\u5c31\u597d\u4e86\"\u3002\u76f4\u5230\u628a\u6570\u636e\u6446\u51fa\u6765&#xff0c;\u624d\u53d1\u73b0\u8fd9\u4e2a\u95ee\u9898\u6bd4\u6240\u6709\u4eba\u60f3\u8c61\u7684\u90fd\u4e25\u91cd\u3002\u4e00\u3001\"\u91cd\u8dd1\u4e00\u4e0b\u5c31\u597d\u4e86\"\u2014\u2014\u4e09\u4e2a\u5b57\u7684\u4ee3\u4ef7\u4f60\u4e00\u5b9a\u542c\u8fc7\u8fd9\u53e5\u8bdd\u3002CI \u4e00\u7247\u7ea2&#xff0c;\u4f60\u70b9\u5f00\u65e5\u5fd7&#xff0c;\u662f\u90a3\u4e2a\u719f\u6089\u7684\u7528\u4f8b\u2014\u2014\u6628\u5929\u6302\u4e86&#xff0c;\u4eca\u5929\u65e9\u4e0a\u8fc7\u4e86&#xff0c;\u73b0\u5728\u53c8\u6302\u4e86\u3002\u4f60\u70b9\u4e86 Re-run&#xff0c;\u7eff\u706f\u4eae\u4e86&#xff0c;\u6240\u6709\u4eba\u7ee7\u7eed\u5e72\u6d3b\u3002\u6ca1\u6709\u4eba\u5728\u610f\u3002Google \u7684\u6d4b\u8bd5\u56e2\u961f\u5728\u610f\u4e86\u3002\u4ed6\u4eec\u505a\u4e86\u4e00\u4ef6\u5f88\u786c\u6838\u7684\u4e8b&amp;#xff1a","og_url":"https:\/\/www.wsisp.com\/helps\/91083.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-06T12:00:45+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/91083.html","url":"https:\/\/www.wsisp.com\/helps\/91083.html","name":"\u4f60\u4eec\u7684 Flaky Test \u6709\u591a\u4e25\u91cd\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-06T12:00:45+00:00","dateModified":"2026-08-06T12:00:45+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/91083.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/91083.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/91083.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4f60\u4eec\u7684 Flaky Test \u6709\u591a\u4e25\u91cd\uff1f"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/91083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=91083"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/91083\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=91083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=91083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=91083"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=91083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}