{"id":393730,"date":"2024-06-29T11:11:15","date_gmt":"2024-06-29T11:11:15","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=393730"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=393730","title":{"rendered":"<span>TestRail \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0414\u0435\u043b\u0430\u0435\u043c \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e: \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0440\u0435\u043f\u043e\u0440\u0442\u044b<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e, \u043c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0418\u043b\u044c\u044f, \u0438 \u044f QA-\u0433\u043e\u043b\u0438\u043a.<\/p>\n<p>\u041d\u043e \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0440\u0435\u0447\u044c \u043d\u0435 \u043e\u0431\u043e \u043c\u043d\u0435, \u043a\u0430\u043a \u0434\u043e\u043b\u0433\u043e \u044f \u044d\u0442\u0438\u043c \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c, \u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u0438\u0448\u044c \u043e\u0431 \u043e\u0434\u043d\u043e\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0435, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u0435\u043d\u044f \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u044e\u0442 \u043b\u0435\u0442 \u043f\u044f\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b. \u0420\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0451\u0442 \u043e <strong><em>TestRails<\/em><\/strong>. \u042f \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u0447\u0442\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043d\u0435 \u043d\u043e\u0432\u044b\u0439, \u043d\u043e \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u043e\u043d \u0435\u0449\u0451 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0434\u043b\u044f \u0440\u0443\u0447\u043d\u043e\u0433\u043e, \u0438, \u0447\u0442\u043e \u0440\u0435\u0436\u0435 \u0438 \u0431\u043e\u043b\u044c\u043d\u0435\u0435 &#8212; \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041f\u043e-\u0445\u043e\u0440\u043e\u0448\u0435\u043c\u0443, \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0438\u043c\u0438 \u043d\u0430\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0440\u0430\u043d\u044c\u0448\u0435, \u043d\u043e \u0433\u043b\u0430\u0432\u043d\u043e\u0435 &#8212; \u044d\u0442\u043e \u043e\u0441\u043e\u0437\u043d\u0430\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c, \u043d\u0435 \u043f\u0440\u0430\u0432\u0434\u0430 \u043b\u0438?<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/475\/3e8\/154\/4753e815402ac23c7b510a0164af058a.png\" width=\"375\" height=\"281\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/475\/3e8\/154\/4753e815402ac23c7b510a0164af058a.png\"\/><\/figure>\n<p>\u0418\u0442\u0430\u043a, \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043a\u043e\u0433\u0434\u0430-\u043b\u0438\u0431\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0441 <a href=\"https:\/\/www.testrail.com\/\" rel=\"noopener noreferrer nofollow\">TestRails<\/a>, \u043d\u0435 \u0441\u0435\u043a\u0440\u0435\u0442, \u0447\u0442\u043e \u0435\u0433\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f\\\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043e\u043c\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e. \u041d\u043e, \u043a\u0430\u043a \u044d\u0442\u043e \u0447\u0430\u0441\u0442\u043e \u0431\u044b\u0432\u0430\u0435\u0442 &#8212; \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0441\u043e\u043b\u0438\u0434\u043d\u0430\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c, \u0442\u044b\u0441\u044f\u0447\u0430 \u0440\u0443\u0447\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u043f\u043e\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u0442\u0435\u0441\u0442\u0430\u043c\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u043c <em>pytest\/selenium<\/em>. \u0410 \u043f\u043e \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e \u0436\u0435\u043b\u0430\u043d\u0438\u044e \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u043e\u0432, \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c\u00a0 \u0432 \u201c\u043e\u0434\u043d\u043e\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\u201d.\u00a0 \u041a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c?<\/p>\n<p>\u0412\u0441\u0451 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0432\u0430\u0448\u0435\u0433\u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435. \u0421\u0430\u043c\u044b\u0439 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u043e\u0442\u0432\u0435\u0442 &#8212; \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u0443 <a href=\"https:\/\/github.com\/gurock\/trcli\" rel=\"noopener noreferrer nofollow\">trcli<\/a> \u043e\u0442 <em>Gurock<\/em> \u0438 \u043e\u0442\u0441\u044b\u043b\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0435\u0451. \u0415\u0441\u0442\u044c \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044b &#8212; \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043c\u0435\u0442\u043a\u0438 \u0438\u043b\u0438 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u0430\u043f\u0438\u043d\u0433 \u0432 \u0434\u043e\u043ac\u0442\u0440\u0438\u043d\u0433\u0430\u0445 \u0442\u0435\u0441\u0442\u0430 \u0441 \u043f\u043e\u043b\u0435\u043c <strong><em>TestRails<\/em><\/strong> \u0438 \u0434\u0451\u0440\u0433\u0430\u0442\u044c <a href=\"https:\/\/support.testrail.com\/hc\/en-us\/categories\/7076541806228-API-Manual\" rel=\"noopener noreferrer nofollow\">API<\/a>. \u0412-\u043e\u0431\u0449\u0435\u043c, \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0439\u0442\u0435\u0441\u044c \u0441\u0430\u043c\u0438. \u0417\u0434\u0435\u0441\u044c \u0438 \u0434\u0430\u043b\u0435\u0435 \u043c\u043e\u0439 \u043e\u043f\u044b\u0442 \u0438 \u043c\u043e\u0451 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043d\u0438\u043a\u0448\u0438\u0445 \u0437\u0430 \u043f\u044f\u0442\u044c \u043b\u0435\u0442 \u0437\u0430\u0434\u0430\u0447. <\/p>\n<h4>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0430\u0432\u0442\u043e\u0442\u0435\u0441\u0442\u043e\u0432 \u0432 TestRails<\/h4>\n<p>\u0418\u0442\u0430\u043a, \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0432 <a href=\"https:\/\/github.com\/gurock\/trcli\" rel=\"noopener noreferrer nofollow\">trcli<\/a>, \u0431\u0435\u0437 \u0432\u043e\u0441\u0442\u043e\u0440\u0433\u0430, \u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b, \u0447\u0442\u043e \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438 \u043e\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0435 \u0442\u0430\u043a, \u043a\u0430\u043a \u044f \u043e\u0436\u0438\u0434\u0430\u044e. \u041d\u0435 \u0431\u0443\u0434\u0443 \u0432\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438, \u0447\u0442\u043e API \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u043e\u0434\u0432\u0438\u0441\u0430\u0435\u0442, \u0432\u044b\u0434\u0430\u0451\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u043e \u0438 \u043f\u0440\u043e\u0447\u0430\u044f\u2026 \u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u043c\u043d\u0435 \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0435 \u0438 \u0434\u0430\u043b\u0451\u043a\u043e\u0435 \u043e\u0442 \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e <em>Gurock<\/em>. \u0418 \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u201c\u0440\u0435\u043f\u043e\u0440\u0442\u0435\u0440\u201d \u0441 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u0446\u0430\u043c\u0438 \u0438 \u043f\u0438\u0442\u043e\u043d\u044f\u0447\u0438\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u043e\u043c.\u00a0<\/p>\n<p>\u0418\u0442\u0430\u043a, \u0431\u0435\u0440\u0451\u043c \u0438 \u0441\u0442\u0430\u0432\u0438\u043c \u043f\u0430\u043a\u0435\u0442:<\/p>\n<pre><code class=\"bash\"> pip install testrail-api-reporter<\/code><\/pre>\n<p>\u0412\u0441\u0451, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e &#8212; \u044d\u0442\u043e \u043a\u0430\u043a \u0438 \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u0435 <strong><em>automation_id<\/em><\/strong> \u043a \u0442\u0435\u0441\u0442-\u043a\u0435\u0439\u0441\u0430\u043c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435(\u0430\u0445) <strong><em>TestRail<\/em><\/strong>, \u0430 \u0441\u0430\u043c\u0438 \u0442\u0435\u0441\u0442\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441 \u043a\u043b\u044e\u0447\u043e\u043c <strong><em>junitxml<\/em><\/strong>, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"bash\">pytest --junitxml \"junit-report.xml\" \".\/tests\"<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u043e\u0432 pytest \u0441\u043e\u0437\u0434\u0430\u0442\u044c xml-\u0440\u0435\u043f\u043e\u0440\u0442 \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u043e\u0432. \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0435\u0433\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432 <strong><em>TestRails<\/em><\/strong>:<\/p>\n<pre><code class=\"python\">url=https:\/\/your_tr.testrail.io` email=your@email.com password=your_password project_number=42 test_suite_number=66 api=TestRailResultsReporter(url=url, email=email, password=password, project_id=project_id, \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 suite_id=test_suite_id, xml_report='junit-report.xml') # \u0410 \u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c api.send_results()<\/code><\/pre>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b, \u0438 \u0441\u043e\u0437\u0434\u0430\u043d \u0442\u0435\u0441\u0442-\u0440\u0430\u043d \u0432\u0440\u043e\u0434\u0435:<br \/> <code>AT run 2022-09-01T20:25:51<\/code><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/038\/7f7\/f38\/0387f7f38334feeda1fe96745f2a2b53.png\" width=\"1896\" height=\"734\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/038\/7f7\/f38\/0387f7f38334feeda1fe96745f2a2b53.png\"\/><\/figure>\n<p>\u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0435\u0441\u043b\u0438 \u0432 <strong><em>TestRail<\/em><\/strong> \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u0430\u043a\u043e\u0439 \u0442\u0435\u0441\u0442, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u043f\u043e\u043b\u0435 <strong><em>automation_id<\/em><\/strong>, \u0438 \u0435\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0435\u0440\u043d\u044b\u0439, \u0432\u0440\u043e\u0434\u0435 <code>\u043f\u0443\u0442\u044c.\u043a.\u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c\u0443_\u0444\u0430\u0439\u043b\u0443.\u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439_\u043a\u043b\u0430\u0441\u0441.\u0442\u0435\u0441\u0442<\/code>, \u0442\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0434\u043b\u044f \u043d\u0435\u0433\u043e, \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 &#8212; \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0435 \u0442\u0435\u0441\u0442\u044b \u0432 \u043f\u0430\u043f\u043a\u0435 <strong><em>pytest<\/em><\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/dd4\/6c7\/fda\/dd46c7fdac9bfd42949c58e587dc350e.png\" width=\"1996\" height=\"1364\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/dd4\/6c7\/fda\/dd46c7fdac9bfd42949c58e587dc350e.png\"\/><\/figure>\n<p>\u0412\u043e\u043e\u0431\u0449\u0435 \u0440\u0435\u043f\u043e\u0440\u0442 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u043e\u0434 \u0432\u0430\u0448\u0438 \u043d\u0443\u0436\u0434\u044b, \u043f\u0435\u0440\u0435\u0434\u0430\u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 <strong><em>send_results()<\/em><\/strong><\/p>\n<ul>\n<li>\n<p><code>title<\/code>\u00a0&#8212; \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0437\u0430\u043c\u0435\u043d\u0438\u0442 \u0438\u043c\u044f \u0442\u0435\u0441\u0442-\u0440\u0430\u043d\u0430.<\/p>\n<\/li>\n<li>\n<p><code>environment<\/code>\u00a0&#8212; \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435, \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043e \u0432 \u043a\u043e\u043d\u0446\u0435 \u0438\u043c\u0435\u043d\u0438 \u0440\u0430\u043d\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 AT run 2022-09-01T20:25:51 on ENV.<\/p>\n<\/li>\n<li>\n<p><code>timestamp<\/code>\u00a0&#8212; \u0442\u0430\u0439\u043c-\u043a\u043e\u0434, \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043c\u0435\u043d\u0451\u043d \u043a\u043e\u0434 \u0438\u0437 xml-\u0440\u0435\u043f\u043e\u0440\u0442\u0430.<\/p>\n<\/li>\n<li>\n<p><code>run_id<\/code>\u00a0&#8212; id \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0442\u0435\u0441\u0442-\u0440\u0430\u043d\u0430, \u0435\u0441\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d, \u0442\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u043a \u043d\u0435\u043c\u0443, \u043d\u043e\u0432\u044b\u0439 \u0442\u0435\u0441\u0442-\u0440\u0430\u043d \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d.<\/p>\n<\/li>\n<li>\n<p><code>close_run<\/code>\u00a0&#8212; \u0435\u0441\u043b\u0438 True, \u0442\u043e \u043b\u044e\u0431\u043e\u0439 \u0442\u0435\u0441\u0442-\u0440\u0430\u043d \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043a\u0440\u044b\u0442, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e True.<\/p>\n<\/li>\n<li>\n<p><code>run_name<\/code>\u00a0&#8212; \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u0435 run_id \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0439\u0442\u0438 \u0442\u0435\u0441\u0442-\u0440\u0430\u043d \u043f\u043e \u0435\u0433\u043e \u0438\u043c\u0435\u043d\u0438, \u0438 \u0442\u043e\u0433\u0434\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 run_id \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u043d, \u0435\u0441\u043b\u0438 \u0434\u0430\u0436\u0435 \u0431\u044b\u043b \u0443\u043a\u0430\u0437\u0430\u043d.<\/p>\n<\/li>\n<li>\n<p><code>delete_old_run<\/code>\u00a0&#8212; \u0435\u0441\u043b\u0438 \u0442\u0435\u0441\u0442-\u0440\u0430\u043d \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c id \u0438\u043b\u0438 \u0438\u043c\u0435\u043d\u0435\u043c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u0440\u0430\u043d\u0435\u0435, \u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u0430\u043b\u0451\u043d, \u0435\u0441\u043b\u0438 True.<\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u0430\u043a\u0436\u0435, \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 <em>reporter<\/em>, \u0435\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u043f\u043e\u0440\u0442 \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u043e\u0433\u043e suite, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0437\u043e\u0432\u0438\u0442\u0435 <strong><em>api.method_name()<\/em><\/strong>, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e:<\/p>\n<p><code>set_project_id(project_id)<\/code> &#8212; change project id;<\/p>\n<p><code>set_suite_id(suite_id)<\/code> &#8212; \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c id suite;<\/p>\n<p><code>set_xml_filename(xml_filename)<\/code> &#8212; \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0443\u0442\u044c \u043a \u0440\u0435\u043f\u043e\u0440\u0442\u0443 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e;<\/p>\n<p><code>set_at_report_section(section_name)<\/code> &#8212; \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u043f\u043a\u0443 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0433\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0435 \u0442\u0435\u0441\u0442\u044b.<\/p>\n<h2>\u041e\u0442\u0447\u0451\u0442 \u043f\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044e<\/h2>\n<p>\u0418\u0442\u0430\u043a, \u0441 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0435\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0432 <strong><em>TestRail<\/em><\/strong> \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c, \u0430 \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043c\u0435\u0442\u0440\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u0442 \u0432 <strong><em>TestRail<\/em><\/strong>, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044e \u0430\u0432\u0442\u043e\u0442\u0435\u0441\u0442\u0430\u043c\u0438 \u043d\u0430\u0448\u0435\u0439 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438? \u041e \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u043f\u0440\u043e\u0447\u0435\u043c? \u041d\u0430\u0448 \u043c\u0435\u043d\u0435\u0434\u0436\u043c\u0435\u043d\u0442 \u0436\u0438\u0432\u0451\u0442 \u0432 <strong><em>Confluence<\/em><\/strong>, \u0438, \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0435 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u043f\u0440\u044f\u043c\u043e \u0442\u0430\u043c? \u0427\u0442\u043e \u0436, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u0436\u0435 \u0435\u0441\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435!<\/p>\n<pre><code class=\"python\"># \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c Confluence Reporter confluence_reporter = ConfluenceReporter(username='Liberator', password='NoWar', url=\"https:\/\/my.confluence.com\", confluence_page=\"1234\")  # \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u0440\u0430\u0437\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u043f\u043e\u0440\u0442\u043e\u0432! confluence_reporter.generate_report(reports=automation_distribution, cases=area_distribution, values=priority_distribution, type_platforms=my_platforms, automation_platforms=my_automation_platforms)  # \u041d\u0443 \u0438\u043b\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0435\u043f\u043e\u0440\u0442 \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 confluence_reporter.history_type_chart(type_platforms=my_platforms)\u00a0 # \u0433\u0440\u0430\u0444\u0438\u043a \u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438, \u0440\u0430\u0437\u0431\u0438\u0442\u043e\u0439 \u043f\u043e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u043c confluence_reporter.history_state_chart(automation_platforms=my_automation_platforms)\u00a0 # \u0433\u0440\u0430\u0444\u0438\u043a \u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044f \u0430\u0432\u0442\u043e\u0442\u0435\u0441\u0442\u0430\u043c\u0438 \u043f\u043e \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0443 confluence_reporter.test_case_area_distribution(cases=area_distribution)\u00a0 # \u0433\u0440\u0430\u0444\u0438\u043a \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u043e\u0432 \u043f\u043e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u043c (\u043a\u0440\u0443\u0433\u043e\u0432\u0430\u044f \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430) confluence_reporter.test_case_priority_distribution(values=priority_distribution)\u00a0 # \u0433\u0440\u0430\u0444\u0438\u043a \u0440\u0430\u0437\u0431\u0438\u0435\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u043e\u0432 \u043f\u043e \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u0443 (\u043a\u0440\u0443\u0433\u043e\u0432\u0430\u044f \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430) confluence_reporter.automation_state(reports=automation_distribution)\u00a0 # \u0433\u0440\u0430\u0444\u0438\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044f \u043f\u043e \u043f\u0430\u043b\u0442\u0444\u043e\u0440\u043c\u0430\u043c (\u0441\u0442\u043e\u043b\u0431\u0447\u0430\u0442\u0430\u044f \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430)<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/067\/ae4\/d43\/067ae4d434ae98ff48ee17f4c2be2baf.png\" width=\"2064\" height=\"1330\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/067\/ae4\/d43\/067ae4d434ae98ff48ee17f4c2be2baf.png\"\/><\/figure>\n<p>\u041e\u043a\u0435\u0439, \u0442\u0443\u0442, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043d\u0443\u0436\u043d\u044b \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u0447\u0442\u043e \u043e\u0442\u043a\u0443\u0434\u0430 \u0431\u0435\u0440\u0451\u0442\u0441\u044f. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0435\u0440\u0443\u0442\u0441\u044f \u0438\u0437 <strong><em>TestRail<\/em><\/strong>. \u0414\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"python\"> testrails_adapter = ATCoverageReporter(url=tr_url, email=tr_client_email, password=tr_client_password, \u00a0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 project=tr_default_project, priority=4, type_platforms=my_platforms, \u00a0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 automation_platforms=automation_platforms)  # \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0442\u0438\u043f\u0443 values = tr_reporter.test_case_by_priority() cases = tr_reporter.test_case_by_type() reports = tr_reporter.automation_state_report()\u00a0<\/code><\/pre>\n<p>\u041d\u0443 \u043b\u0430\u0434\u043d\u043e, \u043d\u043e \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u201c\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b\u201d? \u041f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b &#8212; \u044d\u0442\u043e \u0443\u0447\u0430\u0441\u0442\u043a\u0438 (\u043f\u0430\u043f\u043a\u0438 <strong><em>TestRail<\/em><\/strong>), \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u0438\u0445 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435\\\u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u044f, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u044b \u0431\u0435\u0440\u0451\u043c \u0434\u0430\u043d\u043d\u044b\u0435. \u0422\u043e \u0435\u0441\u0442\u044c, \u0423 \u043d\u0430\u0441 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043e\u0431\u0449\u0438\u0435 \u0442\u0435\u0441\u0442\u044b \u0434\u043b\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430, \u0442\u0430\u043a \u0438 \u0440\u0430\u0437\u043d\u044b\u0435, \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u044b\u0435, \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0435\\\u0434\u0435\u0441\u043a\u0442\u043e\u043f \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u044b).<\/p>\n<pre><code class=\"python\"># \u0412\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0435\u0440\u0445\u043d\u044e \u0441\u0435\u043a\u0446\u0438\u044e(\u0438) (\u043f\u0430\u043f\u043a\u0443(\u0438), \u0433\u0434\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0442\u0435\u0441\u0442\u044b \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 \u0432\u0430\u0448\u0438\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c, \u0440\u0435\u043f\u043e\u0440\u0442\u0435\u0440 \u043f\u0440\u043e\u0439\u0434\u0451\u0442\u0441\u044f \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u0438 \u0441\u043e\u0431\u0435\u0440\u0451\u0442 \u0432\u0441\u0435 \u0442\u0435\u0441\u0442\u044b \u0432\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u043f\u0430\u043f\u043a\u0430\u0445. # \u0422\u0430\u043a\u0436\u0435 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043c\u044f \u043f\u043e\u043b\u044f, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u044c \u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u2018internal_name\u2019, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u2018type_id' # \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \"Automated\", \"Functional\", \"Other\", \u0438 \u043f\u0440\u043e\u0447\u0430\u044f  automation_platforms = ( \u00a0 \u00a0 {'name': 'Desktop Chrome', 'internal_name': 'type_id', 'sections': [4242, 1111]}, \u00a0 \u00a0 {'name': 'Desktop Firefox', 'internal_name': 'custom_firefox', 'sections': [2424]})  # \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0431\u0435\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u044f: type_platforms = ( \u00a0 \u00a0 {'name': 'UI', 'sections': [6969, 8888]}, \u00a0 \u00a0 {'name': 'API', 'sections': [9696]})<\/code><\/pre>\n<p>\u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u0442\u0430\u0442\u044c \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435. \u041d\u043e, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432\u044b \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 <strong><em>Confluence<\/em><\/strong>? \u0422\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u0440\u0438\u0441\u0443\u0439\u0442\u0435 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0432 \u0432\u0438\u0434\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a!<\/p>\n<pre><code class=\"python\">plotly_reporter = PlotlyReporter(type_platforms=type_platforms) plotly_reporter.draw_test_case_by_priority(filename='stacked_bar_chart.png', values=values) plotly_reporter.draw_test_case_by_area(filename='pie_chart1.png', cases=cases) plotly_reporter.draw_automation_state_report(filename=\"pie_chart2.png\", reports=reports) plotly_reporter.draw_history_type_chart(filename=\"line_stacked_chart.png\")  for item in automation_platforms: \u00a0 \u00a0 plotly_reporter.draw_history_state_chart(chart_name=item['name'])<\/code><\/pre>\n<h2>\u0414\u0440\u0443\u0433\u0438\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u043c\u0438<\/h2>\n<p>\u041b\u0430\u0434\u043d\u043e-\u043b\u0430\u0434\u043d\u043e, \u043d\u0435 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0436\u0435 \u043f\u043e\u0441\u044b\u043b\u0430\u0442\u044c \u043d\u0430\u0448\u0435\u043c\u0443 \u043c\u0435\u043d\u0435\u0434\u0436\u043c\u0435\u043d\u0442\u0443 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438, \u043f\u0440\u0430\u0432\u0434\u0430? \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0443 \u043c\u0435\u043d\u044f \u0442\u043e\u0436\u0435 \u0435\u0441\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435!<\/p>\n<p> \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0441\u043b\u0430\u0442\u044c \u0440\u0435\u043f\u043e\u0440\u0442 \u0432 \u0432\u0438\u0434\u0435 e-mail:<\/p>\n<pre><code class=\"python\">chart_drawings = ['report_chart.png', 'path\/to\/more_graphics.png'] chart_captions = ['Priority distribution', 'AT coverage'] emailer = EmailSender(email=\"my_personal@email.com\", \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 password=\"my_secure_password\", \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 server_smtp=\"smtp.email_server.com\", \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 server_port=587) emailer.send_message(files=chart_drawings, captions=chart_captions, recipients=['buddy@email.com', 'boss@email.com'])<\/code><\/pre>\n<p> \u041f\u0440\u0430\u0432\u0434\u0430, \u0435\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 <strong><em>GMail<\/em><\/strong>, \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c <em>oauth \u0442\u043e\u043a\u0435\u043d<\/em> \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e. \u0422\u043e\u0433\u0434\u0430 <strong><em>EmailSender<\/em><\/strong> \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d \u0442\u0430\u043a:<\/p>\n<pre><code class=\"python\"> emailer = EmailSender(email=\"my_personal@gmail.com\", \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 gmail_token=\"token.json\")<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d01\/700\/052\/d01700052fb6f4eaafd3572467f4f254.png\" width=\"2256\" height=\"1252\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d01\/700\/052\/d01700052fb6f4eaafd3572467f4f254.png\"\/><\/figure>\n<p>\u041a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0435\u043c\u0435\u0439\u043b &#8212; \u044d\u0442\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0430\u0440\u0445\u0430\u0438\u0437\u043c? \u041d\u0443 \u0442\u043e\u0433\u0434\u0430 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0448\u043b\u0451\u043c \u0440\u0435\u043f\u043e\u0440\u0442 \u0432 <strong><em>Slack<\/em><\/strong>! \u0422\u043e\u043b\u044c\u043a\u043e \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d!<\/p>\n<pre><code class=\"python\">slack_sender = SlackSender(hook_url='https:\/\/hooks.slack.com\/services\/{your}\/{api}\/{key}') slack_sender.send_message(files=chart_drawings, captions=chart_captions)<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/fa8\/6d4\/260\/fa86d4260dc04b1d6259d9c9a9e581fb.png\" width=\"978\" height=\"1266\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/fa8\/6d4\/260\/fa86d4260dc04b1d6259d9c9a9e581fb.png\"\/><\/figure>\n<h2>\u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c \u043f\u0440\u043e \u0431\u044d\u043a\u0430\u043f!<\/h2>\n<p>\u041f\u043e\u043a\u0430 \u043c\u044b \u0440\u0435\u0437\u0432\u0438\u043b\u0438\u0441\u044c \u0441 <strong><em>TestRail<\/em><\/strong>, \u043d\u0435 \u043c\u043e\u0433\u043b\u0438 \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u044b &#8212; \u0430 \u043c\u044b \u0442\u0430\u043a\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043b\u0438, \u0430 \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0438 \u043d\u0430\u0448\u0438 \u0442\u0435\u0441\u0442\u044b \u043f\u043e\u0442\u0435\u0440\u044f\u044e\u0442\u0441\u044f. \u041c\u043e\u0436\u043d\u043e \u0438\u0445 \u043a\u0430\u043a-\u0442\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043b\u0430\u0442\u043d\u044b\u043c\u0438 \u0431\u044d\u043a\u0430\u043f\u0430\u043c\u0438. \u041d\u043e \u0434\u043e\u0440\u043e\u0433\u043e? \u041d\u0435 \u0434\u0430\u0451\u0442 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u0434\u0435\u043d\u0435\u0433, \u0433\u043e\u0432\u043e\u0440\u0438\u0442, \u0440\u0430\u0437 \u0442\u044b \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b <strong><em>trcli<\/em><\/strong>, \u0434\u0430\u0432\u0430\u0439 \u0438 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0439.<\/p>\n<pre><code class=\"python\">tc_backup = TCBackup(tr_url, tr_email, tr_password, test_rails_suite=3) tc_backup.backup()\u00a0 # \u0422\u0430\u043a \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c backup.xml \u0444\u0430\u0439\u043b \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0442\u0435\u0441\u0442\u0430\u043c\u0438 tc_backup.get_archive_backup(suffix='')\u00a0 # \u0410 \u0442\u0430\u043a \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c backup.zip \u0430\u0440\u0445\u0438\u0432 \u0441 \u0442\u0435\u0441\u0442\u0430\u043c\u0438<\/code><\/pre>\n<p> \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0435 \u044d\u0442\u0438 \u0442\u0435\u0441\u0442\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0433\u0434\u0435-\u0442\u043e \u0432 \u043e\u0431\u043b\u0430\u043a\u0435? \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u0438\u0445 \u0432 \u043e\u0431\u043b\u0430\u043a\u0435 <strong><em>GoogleDrive<\/em><\/strong>!<\/p>\n<pre><code class=\"python\"># \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 Google \u0442\u043e\u043a\u0435\u043d, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435: # https:\/\/console.developers.google.com\/apis\/credentials?pli=1 # \u041f\u0440\u043e\u0439\u0434\u0438\u0442\u0435: Create Credentials => OAuth client ID => TV and limited Input Devices \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 client_id \u0438 client_secret  # \u0422\u0435\u043f\u0435\u0440\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0438\u0445 \u0447\u0442\u043e\u0431\u044b \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438: google_id = client_id \u0438 google_secret = client_secret gdrive = GoogleDriveUploader(google_id=client_id, google_secret=client_secret)  # \u041f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0432\u0430\u0441 \u0441\u043f\u0440\u043e\u0441\u044f\u0442 \u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 user_code \u043e\u0442 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c API token,\u00a0 # \u041d\u043e \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0442\u043e\u043a\u0435\u043d\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430, \u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435: gdrive = GoogleDriveUploader(google_id=client_id, google_secret=client_secret, google_api_refresh_token=refresh_token)  # \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0444\u0430\u043a\u0442, \u043d\u043e \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0430\u043c \u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043d\u0430 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0431\u044d\u043a\u0430\u043f \u0441 \u0442\u0435\u0441\u0442\u0430\u043c\u0438 backup.zip gdrive.upload(filename='backup.zip', mime_type=\u2018application\/zip')<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/082\/24a\/5ff\/08224a5ffd122d107204240eb74ee70e.png\" width=\"1560\" height=\"898\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/082\/24a\/5ff\/08224a5ffd122d107204240eb74ee70e.png\"\/><\/figure>\n<h2>\u0427\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435 \u0442\u0430\u043a?<\/h2>\n<p>\u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 <a href=\"https:\/\/plotly.com\/python\/\" rel=\"noopener noreferrer nofollow\"><strong><em>plotly<\/em><\/strong><\/a> \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c <a href=\"https:\/\/www.npmjs.com\/package\/orca\" rel=\"noopener noreferrer nofollow\"><strong><em>orca<\/em><\/strong><\/a>:<\/p>\n<pre><code class=\"bash\"> npm install -g electron orca<\/code><\/pre>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e <strong><em>Slack<\/em><\/strong> \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u0430 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043d\u0438\u0445. \u0427\u0442\u043e\u0431\u044b \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 <strong><em>Slack<\/em><\/strong>, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0445 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u043a\u0430\u0436\u0435\u043c \u043d\u0430 <a href=\"https:\/\/freeimage.host\/\" rel=\"noopener noreferrer nofollow\"><em>https:\/\/freeimage.host<\/em><\/a> . \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0430\u043a (\u0443\u0442\u0438\u043b\u0438\u0442\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u0432 \u043f\u0430\u043a\u0435\u0442):<\/p>\n<pre><code class=\"python\">image_uploaded = upload_image(filename=chart_drawings[0], api_token=YOUR_SECRET_TOKEN)  # \u0414\u043e\u0441\u0442\u0430\u0451\u043c URL \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f image_url = image_uploaded['image']  # \u0418\u043b\u0438 \u0435\u0433\u043e thumbnail image_thumb = image_uploaded[\u2018thumb']<\/code><\/pre>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0451. \u0415\u0441\u043b\u0438 \u044d\u0442\u043e\u0442 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u0431\u044b\u043b \u0432\u0430\u043c \u043f\u043e\u043b\u0435\u0437\u0435\u043d, \u0442\u043e \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043b\u0430\u0439\u043a \u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0441\u0442\u0443, \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439, \u0430 \u0442\u0430\u043a \u0436\u0435, \u0435\u0441\u043b\u0438 \u0432\u043e\u043e\u0434\u0443\u0448\u0435\u0432\u0438\u0442\u0435\u0441\u044c &#8212; \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043c\u043e\u043d\u0435\u0442\u043a\u043e\u0439:<\/p>\n<p> <a href=\"https:\/\/www.donationalerts.com\/r\/rocketsciencegeek\" rel=\"noopener noreferrer nofollow\">https:\/\/www.donationalerts.com\/r\/rocketsciencegeek<\/a><\/p>\n<p> C\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 <strong><em>GitHub<\/em><\/strong>:<br \/> <a href=\"https:\/\/github.com\/wwakabobik\/testrail_api_reporter\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/wwakabobik\/testrail_api_reporter<\/a><\/p>\n<p> \u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430\u00a0 <strong><em>pypi<\/em><\/strong>:<br \/> <a href=\"https:\/\/pypi.org\/project\/testrail-api-reporter\/\" rel=\"noopener noreferrer nofollow\">https:\/\/pypi.org\/project\/testrail-api-reporter\/<\/a> <\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/735838\/\"> https:\/\/habr.com\/ru\/articles\/735838\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e, \u043c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0418\u043b\u044c\u044f, \u0438 \u044f QA-\u0433\u043e\u043b\u0438\u043a.<\/p>\n<p>\u041d\u043e \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0440\u0435\u0447\u044c \u043d\u0435 \u043e\u0431\u043e \u043c\u043d\u0435, \u043a\u0430\u043a \u0434\u043e\u043b\u0433\u043e \u044f \u044d\u0442\u0438\u043c \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c, \u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u0438\u0448\u044c \u043e\u0431 \u043e\u0434\u043d\u043e\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0435, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u0435\u043d\u044f \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u044e\u0442 \u043b\u0435\u0442 \u043f\u044f\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b. \u0420\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0451\u0442 \u043e <strong><em>TestRails<\/em><\/strong>. \u042f \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u0447\u0442\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043d\u0435 \u043d\u043e\u0432\u044b\u0439, \u043d\u043e \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u043e\u043d \u0435\u0449\u0451 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0434\u043b\u044f \u0440\u0443\u0447\u043d\u043e\u0433\u043e, \u0438, \u0447\u0442\u043e \u0440\u0435\u0436\u0435 \u0438 \u0431\u043e\u043b\u044c\u043d\u0435\u0435 &#8212; \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041f\u043e-\u0445\u043e\u0440\u043e\u0448\u0435\u043c\u0443, \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0438\u043c\u0438 \u043d\u0430\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0440\u0430\u043d\u044c\u0448\u0435, \u043d\u043e \u0433\u043b\u0430\u0432\u043d\u043e\u0435 &#8212; \u044d\u0442\u043e \u043e\u0441\u043e\u0437\u043d\u0430\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c, \u043d\u0435 \u043f\u0440\u0430\u0432\u0434\u0430 \u043b\u0438?<\/p>\n<figure class=\"\"><\/figure>\n<p>\u0418\u0442\u0430\u043a, \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043a\u043e\u0433\u0434\u0430-\u043b\u0438\u0431\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0441 <a href=\"https:\/\/www.testrail.com\/\" rel=\"noopener noreferrer nofollow\">TestRails<\/a>, \u043d\u0435 \u0441\u0435\u043a\u0440\u0435\u0442, \u0447\u0442\u043e \u0435\u0433\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f\\\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043e\u043c\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e. \u041d\u043e, \u043a\u0430\u043a \u044d\u0442\u043e \u0447\u0430\u0441\u0442\u043e \u0431\u044b\u0432\u0430\u0435\u0442 &#8212; \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0441\u043e\u043b\u0438\u0434\u043d\u0430\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c, \u0442\u044b\u0441\u044f\u0447\u0430 \u0440\u0443\u0447\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u043f\u043e\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u0442\u0435\u0441\u0442\u0430\u043c\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u043c <em>pytest\/selenium<\/em>. \u0410 \u043f\u043e \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e \u0436\u0435\u043b\u0430\u043d\u0438\u044e \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u043e\u0432, \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c\u00a0 \u0432 \u201c\u043e\u0434\u043d\u043e\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\u201d.\u00a0 \u041a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c?<\/p>\n<p>\u0412\u0441\u0451 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0432\u0430\u0448\u0435\u0433\u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435. \u0421\u0430\u043c\u044b\u0439 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u043e\u0442\u0432\u0435\u0442 &#8212; \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u0443 <a href=\"https:\/\/github.com\/gurock\/trcli\" rel=\"noopener noreferrer nofollow\">trcli<\/a> \u043e\u0442 <em>Gurock<\/em> \u0438 \u043e\u0442\u0441\u044b\u043b\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0435\u0451. \u0415\u0441\u0442\u044c \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044b &#8212; \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043c\u0435\u0442\u043a\u0438 \u0438\u043b\u0438 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u0430\u043f\u0438\u043d\u0433 \u0432 \u0434\u043e\u043ac\u0442\u0440\u0438\u043d\u0433\u0430\u0445 \u0442\u0435\u0441\u0442\u0430 \u0441 \u043f\u043e\u043b\u0435\u043c <strong><em>TestRails<\/em><\/strong> \u0438 \u0434\u0451\u0440\u0433\u0430\u0442\u044c <a href=\"https:\/\/support.testrail.com\/hc\/en-us\/categories\/7076541806228-API-Manual\" rel=\"noopener noreferrer nofollow\">API<\/a>. \u0412-\u043e\u0431\u0449\u0435\u043c, \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0439\u0442\u0435\u0441\u044c \u0441\u0430\u043c\u0438. \u0417\u0434\u0435\u0441\u044c \u0438 \u0434\u0430\u043b\u0435\u0435 \u043c\u043e\u0439 \u043e\u043f\u044b\u0442 \u0438 \u043c\u043e\u0451 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043d\u0438\u043a\u0448\u0438\u0445 \u0437\u0430 \u043f\u044f\u0442\u044c \u043b\u0435\u0442 \u0437\u0430\u0434\u0430\u0447. <\/p>\n<h4>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0430\u0432\u0442\u043e\u0442\u0435\u0441\u0442\u043e\u0432 \u0432 TestRails<\/h4>\n<p>\u0418\u0442\u0430\u043a, \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0432 <a href=\"https:\/\/github.com\/gurock\/trcli\" rel=\"noopener noreferrer nofollow\">trcli<\/a>, \u0431\u0435\u0437 \u0432\u043e\u0441\u0442\u043e\u0440\u0433\u0430, \u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b, \u0447\u0442\u043e \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438 \u043e\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0435 \u0442\u0430\u043a, \u043a\u0430\u043a \u044f \u043e\u0436\u0438\u0434\u0430\u044e. \u041d\u0435 \u0431\u0443\u0434\u0443 \u0432\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438, \u0447\u0442\u043e API \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u043e\u0434\u0432\u0438\u0441\u0430\u0435\u0442, \u0432\u044b\u0434\u0430\u0451\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u043e \u0438 \u043f\u0440\u043e\u0447\u0430\u044f\u2026 \u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u043c\u043d\u0435 \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0435 \u0438 \u0434\u0430\u043b\u0451\u043a\u043e\u0435 \u043e\u0442 \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e <em>Gurock<\/em>. \u0418 \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u201c\u0440\u0435\u043f\u043e\u0440\u0442\u0435\u0440\u201d \u0441 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u0446\u0430\u043c\u0438 \u0438 \u043f\u0438\u0442\u043e\u043d\u044f\u0447\u0438\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u043e\u043c.\u00a0<\/p>\n<p>\u0418\u0442\u0430\u043a, \u0431\u0435\u0440\u0451\u043c \u0438 \u0441\u0442\u0430\u0432\u0438\u043c \u043f\u0430\u043a\u0435\u0442:<\/p>\n<pre><code class=\"bash\"> pip install testrail-api-reporter<\/code><\/pre>\n<p>\u0412\u0441\u0451, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e &#8212; \u044d\u0442\u043e \u043a\u0430\u043a \u0438 \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u0435 <strong><em>automation_id<\/em><\/strong> \u043a \u0442\u0435\u0441\u0442-\u043a\u0435\u0439\u0441\u0430\u043c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435(\u0430\u0445) <strong><em>TestRail<\/em><\/strong>, \u0430 \u0441\u0430\u043c\u0438 \u0442\u0435\u0441\u0442\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441 \u043a\u043b\u044e\u0447\u043e\u043c <strong><em>junitxml<\/em><\/strong>, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"bash\">pytest --junitxml \"junit-report.xml\" \".\/tests\"<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u043e\u0432 pytest \u0441\u043e\u0437\u0434\u0430\u0442\u044c xml-\u0440\u0435\u043f\u043e\u0440\u0442 \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u043e\u0432. \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0435\u0433\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432 <strong><em>TestRails<\/em><\/strong>:<\/p>\n<pre><code class=\"python\">url=https:\/\/your_tr.testrail.io` email=your@email.com password=your_password project_number=42 test_suite_number=66 api=TestRailResultsReporter(url=url, email=email, password=password, project_id=project_id, \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 suite_id=test_suite_id, xml_report='junit-report.xml') # \u0410 \u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c api.send_results()<\/code><\/pre>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b, \u0438 \u0441\u043e\u0437\u0434\u0430\u043d \u0442\u0435\u0441\u0442-\u0440\u0430\u043d \u0432\u0440\u043e\u0434\u0435:<br \/> <code>AT run 2022-09-01T20:25:51<\/code><\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0435\u0441\u043b\u0438 \u0432 <strong><em>TestRail<\/em><\/strong> \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u0430\u043a\u043e\u0439 \u0442\u0435\u0441\u0442, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u043f\u043e\u043b\u0435 <strong><em>automation_id<\/em><\/strong>, \u0438 \u0435\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0435\u0440\u043d\u044b\u0439, \u0432\u0440\u043e\u0434\u0435 <code>\u043f\u0443\u0442\u044c.\u043a.\u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c\u0443_\u0444\u0430\u0439\u043b\u0443.\u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439_\u043a\u043b\u0430\u0441\u0441.\u0442\u0435\u0441\u0442<\/code>, \u0442\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0434\u043b\u044f \u043d\u0435\u0433\u043e, \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 &#8212; \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0435 \u0442\u0435\u0441\u0442\u044b \u0432 \u043f\u0430\u043f\u043a\u0435 <strong><em>pytest<\/em><\/strong>.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0412\u043e\u043e\u0431\u0449\u0435 \u0440\u0435\u043f\u043e\u0440\u0442 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u043e\u0434 \u0432\u0430\u0448\u0438 \u043d\u0443\u0436\u0434\u044b, \u043f\u0435\u0440\u0435\u0434\u0430\u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 <strong><em>send_results()<\/em><\/strong><\/p>\n<ul>\n<li>\n<p><code>title<\/code>\u00a0&#8212; \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0437\u0430\u043c\u0435\u043d\u0438\u0442 \u0438\u043c\u044f \u0442\u0435\u0441\u0442-\u0440\u0430\u043d\u0430.<\/p>\n<\/li>\n<li>\n<p><code>environment<\/code>\u00a0&#8212; \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435, \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043e \u0432 \u043a\u043e\u043d\u0446\u0435 \u0438\u043c\u0435\u043d\u0438 \u0440\u0430\u043d\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 AT run 2022-09-01T20:25:51 on ENV.<\/p>\n<\/li>\n<li>\n<p><code>timestamp<\/code>\u00a0&#8212; \u0442\u0430\u0439\u043c-\u043a\u043e\u0434, \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043c\u0435\u043d\u0451\u043d \u043a\u043e\u0434 \u0438\u0437 xml-\u0440\u0435\u043f\u043e\u0440\u0442\u0430.<\/p>\n<\/li>\n<li>\n<p><code>run_id<\/code>\u00a0&#8212; id \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0442\u0435\u0441\u0442-\u0440\u0430\u043d\u0430, \u0435\u0441\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d, \u0442\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u043a \u043d\u0435\u043c\u0443, \u043d\u043e\u0432\u044b\u0439 \u0442\u0435\u0441\u0442-\u0440\u0430\u043d \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d.<\/p>\n<\/li>\n<li>\n<p><code>close_run<\/code>\u00a0&#8212; \u0435\u0441\u043b\u0438 True, \u0442\u043e \u043b\u044e\u0431\u043e\u0439 \u0442\u0435\u0441\u0442-\u0440\u0430\u043d \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043a\u0440\u044b\u0442, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e True.<\/p>\n<\/li>\n<li>\n<p><code>run_name<\/code>\u00a0&#8212; \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u0435 run_id \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0439\u0442\u0438 \u0442\u0435\u0441\u0442-\u0440\u0430\u043d \u043f\u043e \u0435\u0433\u043e \u0438\u043c\u0435\u043d\u0438, \u0438 \u0442\u043e\u0433\u0434\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 run_id \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u043d, \u0435\u0441\u043b\u0438 \u0434\u0430\u0436\u0435 \u0431\u044b\u043b \u0443\u043a\u0430\u0437\u0430\u043d.<\/p>\n<\/li>\n<li>\n<p><code>delete_old_run<\/code>\u00a0&#8212; \u0435\u0441\u043b\u0438 \u0442\u0435\u0441\u0442-\u0440\u0430\u043d \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c id \u0438\u043b\u0438 \u0438\u043c\u0435\u043d\u0435\u043c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u0440\u0430\u043d\u0435\u0435, \u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u0430\u043b\u0451\u043d, \u0435\u0441\u043b\u0438 True.<\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u0430\u043a\u0436\u0435, \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 <em>reporter<\/em>, \u0435\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u043f\u043e\u0440\u0442 \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u043e\u0433\u043e suite, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0437\u043e\u0432\u0438\u0442\u0435 <strong><em>api.method_name()<\/em><\/strong>, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e:<\/p>\n<p><code>set_project_id(project_id)<\/code> &#8212; change project id;<\/p>\n<p><code>set_suite_id(suite_id)<\/code> &#8212; \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c id suite;<\/p>\n<p><code>set_xml_filename(xml_filename)<\/code> &#8212; \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0443\u0442\u044c \u043a \u0440\u0435\u043f\u043e\u0440\u0442\u0443 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e;<\/p>\n<p><code>set_at_report_section(section_name)<\/code> &#8212; \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u043f\u043a\u0443 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0433\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0435 \u0442\u0435\u0441\u0442\u044b.<\/p>\n<h2>\u041e\u0442\u0447\u0451\u0442 \u043f\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044e<\/h2>\n<p>\u0418\u0442\u0430\u043a, \u0441 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0435\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0432 <strong><em>TestRail<\/em><\/strong> \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c, \u0430 \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043c\u0435\u0442\u0440\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u0442 \u0432 <strong><em>TestRail<\/em><\/strong>, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044e \u0430\u0432\u0442\u043e\u0442\u0435\u0441\u0442\u0430\u043c\u0438 \u043d\u0430\u0448\u0435\u0439 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438? \u041e \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u043f\u0440\u043e\u0447\u0435\u043c? \u041d\u0430\u0448 \u043c\u0435\u043d\u0435\u0434\u0436\u043c\u0435\u043d\u0442 \u0436\u0438\u0432\u0451\u0442 \u0432 <strong><em>Confluence<\/em><\/strong>, \u0438, \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0435 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u043f\u0440\u044f\u043c\u043e \u0442\u0430\u043c? \u0427\u0442\u043e \u0436, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u0436\u0435 \u0435\u0441\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435!<\/p>\n<pre><code class=\"python\"># \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c Confluence Reporter confluence_reporter = ConfluenceReporter(username='Liberator', password='NoWar', url=\"https:\/\/my.confluence.com\", confluence_page=\"1234\")  # \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u0440\u0430\u0437\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u043f\u043e\u0440\u0442\u043e\u0432! confluence_reporter.generate_report(reports=automation_distribution, cases=area_distribution, values=priority_distribution, type_platforms=my_platforms, automation_platforms=my_automation_platforms)  # \u041d\u0443 \u0438\u043b\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0435\u043f\u043e\u0440\u0442 \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 confluence_reporter.history_type_chart(type_platforms=my_platforms)\u00a0 # \u0433\u0440\u0430\u0444\u0438\u043a \u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438, \u0440\u0430\u0437\u0431\u0438\u0442\u043e\u0439 \u043f\u043e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u043c confluence_reporter.history_state_chart(automation_platforms=my_automation_platforms)\u00a0 # \u0433\u0440\u0430\u0444\u0438\u043a \u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044f \u0430\u0432\u0442\u043e\u0442\u0435\u0441\u0442\u0430\u043c\u0438 \u043f\u043e \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0443 confluence_reporter.test_case_area_distribution(cases=area_distribution)\u00a0 # \u0433\u0440\u0430\u0444\u0438\u043a \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u043e\u0432 \u043f\u043e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u043c (\u043a\u0440\u0443\u0433\u043e\u0432\u0430\u044f \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430) confluence_reporter.test_case_priority_distribution(values=priority_distribution)\u00a0 # \u0433\u0440\u0430\u0444\u0438\u043a \u0440\u0430\u0437\u0431\u0438\u0435\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u043e\u0432 \u043f\u043e \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u0443 (\u043a\u0440\u0443\u0433\u043e\u0432\u0430\u044f \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430) confluence_reporter.automation_state(reports=automation_distribution)\u00a0 # \u0433\u0440\u0430\u0444\u0438\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044f \u043f\u043e \u043f\u0430\u043b\u0442\u0444\u043e\u0440\u043c\u0430\u043c (\u0441\u0442\u043e\u043b\u0431\u0447\u0430\u0442\u0430\u044f \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430)<\/code><\/pre>\n<figure class=\"full-width\"><\/figure>\n<p>\u041e\u043a\u0435\u0439, \u0442\u0443\u0442, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043d\u0443\u0436\u043d\u044b \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u0447\u0442\u043e \u043e\u0442\u043a\u0443\u0434\u0430 \u0431\u0435\u0440\u0451\u0442\u0441\u044f. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0435\u0440\u0443\u0442\u0441\u044f \u0438\u0437 <strong><em>TestRail<\/em><\/strong>. \u0414\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"python\"> testrails_adapter = ATCoverageReporter(url=tr_url, email=tr_client_email, password=tr_client_password, \u00a0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 project=tr_default_project, priority=4, type_platforms=my_platforms, \u00a0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 automation_platforms=automation_platforms)  # \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0442\u0438\u043f\u0443 values = tr_reporter.test_case_by_priority() cases = tr_reporter.test_case_by_type() reports = tr_reporter.automation_state_report()\u00a0<\/code><\/pre>\n<p>\u041d\u0443 \u043b\u0430\u0434\u043d\u043e, \u043d\u043e \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u201c\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b\u201d? \u041f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b &#8212; \u044d\u0442\u043e \u0443\u0447\u0430\u0441\u0442\u043a\u0438 (\u043f\u0430\u043f\u043a\u0438 <strong><em>TestRail<\/em><\/strong>), \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u0438\u0445 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435\\\u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u044f, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u044b \u0431\u0435\u0440\u0451\u043c \u0434\u0430\u043d\u043d\u044b\u0435. \u0422\u043e \u0435\u0441\u0442\u044c, \u0423 \u043d\u0430\u0441 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043e\u0431\u0449\u0438\u0435 \u0442\u0435\u0441\u0442\u044b \u0434\u043b\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430, \u0442\u0430\u043a \u0438 \u0440\u0430\u0437\u043d\u044b\u0435, \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u044b\u0435, \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0435\\\u0434\u0435\u0441\u043a\u0442\u043e\u043f \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u044b).<\/p>\n<pre><code class=\"python\"># \u0412\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0435\u0440\u0445\u043d\u044e \u0441\u0435\u043a\u0446\u0438\u044e(\u0438) (\u043f\u0430\u043f\u043a\u0443(\u0438), \u0433\u0434\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0442\u0435\u0441\u0442\u044b \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 \u0432\u0430\u0448\u0438\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c, \u0440\u0435\u043f\u043e\u0440\u0442\u0435\u0440 \u043f\u0440\u043e\u0439\u0434\u0451\u0442\u0441\u044f \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u0438 \u0441\u043e\u0431\u0435\u0440\u0451\u0442 \u0432\u0441\u0435 \u0442\u0435\u0441\u0442\u044b \u0432\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u043f\u0430\u043f\u043a\u0430\u0445. # \u0422\u0430\u043a\u0436\u0435 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043c\u044f \u043f\u043e\u043b\u044f, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u044c \u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u2018internal_name\u2019, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u2018type_id' # \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \"Automated\", \"Functional\", \"Other\", \u0438 \u043f\u0440\u043e\u0447\u0430\u044f  automation_platforms = ( \u00a0 \u00a0 {'name': 'Desktop Chrome', 'internal_name': 'type_id', 'sections': [4242, 1111]}, \u00a0 \u00a0 {'name': 'Desktop Firefox', 'internal_name': 'custom_firefox', 'sections': [2424]})  # \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0431\u0435\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u044f: type_platforms = ( \u00a0 \u00a0 {'name': 'UI', 'sections': [6969, 8888]}, \u00a0 \u00a0 {'name': 'API', 'sections': [9696]})<\/code><\/pre>\n<p>\u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u0442\u0430\u0442\u044c \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435. \u041d\u043e, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432\u044b \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 <strong><em>Confluence<\/em><\/strong>? \u0422\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u0440\u0438\u0441\u0443\u0439\u0442\u0435 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0432 \u0432\u0438\u0434\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a!<\/p>\n<pre><code class=\"python\">plotly_reporter = PlotlyReporter(type_platforms=type_platforms) plotly_reporter.draw_test_case_by_priority(filename='stacked_bar_chart.png', values=values) plotly_reporter.draw_test_case_by_area(filename='pie_chart1.png', cases=cases) plotly_reporter.draw_automation_state_report(filename=\"pie_chart2.png\", reports=reports) plotly_reporter.draw_history_type_chart(filename=\"line_stacked_chart.png\")  for item in automation_platforms: \u00a0 \u00a0 plotly_reporter.draw_history_state_chart(chart_name=item['name'])<\/code><\/pre>\n<h2>\u0414\u0440\u0443\u0433\u0438\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u043c\u0438<\/h2>\n<p>\u041b\u0430\u0434\u043d\u043e-\u043b\u0430\u0434\u043d\u043e, \u043d\u0435 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0436\u0435 \u043f\u043e\u0441\u044b\u043b\u0430\u0442\u044c \u043d\u0430\u0448\u0435\u043c\u0443 \u043c\u0435\u043d\u0435\u0434\u0436\u043c\u0435\u043d\u0442\u0443 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438, \u043f\u0440\u0430\u0432\u0434\u0430? \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0443 \u043c\u0435\u043d\u044f \u0442\u043e\u0436\u0435 \u0435\u0441\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435!<\/p>\n<p> \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0441\u043b\u0430\u0442\u044c \u0440\u0435\u043f\u043e\u0440\u0442 \u0432 \u0432\u0438\u0434\u0435 e-mail:<\/p>\n<pre><code class=\"python\">chart_drawings = ['report_chart.png', 'path\/to\/more_graphics.png'] chart_captions = ['Priority distribution', 'AT coverage'] emailer = EmailSender(email=\"my_personal@email.com\", \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 password=\"my_secure_password\", \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 server_smtp=\"smtp.email_server.com\", \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 server_port=587) emailer.send_message(files=chart_drawings, captions=chart_captions, recipients=['buddy@email.com', 'boss@email.com'])<\/code><\/pre>\n<p> \u041f\u0440\u0430\u0432\u0434\u0430, \u0435\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 <strong><em>GMail<\/em><\/strong>, \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c <em>oauth \u0442\u043e\u043a\u0435\u043d<\/em> \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e. \u0422\u043e\u0433\u0434\u0430 <strong><em>EmailSender<\/em><\/strong> \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d \u0442\u0430\u043a:<\/p>\n<pre><code class=\"python\"> emailer = EmailSender(email=\"my_personal@gmail.com\", \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 gmail_token=\"token.json\")<\/code><\/pre>\n<figure class=\"full-width\"><\/figure>\n<p>\u041a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0435\u043c\u0435\u0439\u043b &#8212; \u044d\u0442\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0430\u0440\u0445\u0430\u0438\u0437\u043c? \u041d\u0443 \u0442\u043e\u0433\u0434\u0430 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0448\u043b\u0451\u043c \u0440\u0435\u043f\u043e\u0440\u0442 \u0432 <strong><em>Slack<\/em><\/strong>! \u0422\u043e\u043b\u044c\u043a\u043e \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d!<\/p>\n<pre><code class=\"python\">slack_sender = SlackSender(hook_url='https:\/\/hooks.slack.com\/services\/{your}\/{api}\/{key}') slack_sender.send_message(files=chart_drawings, captions=chart_captions)<\/code><\/pre>\n<figure class=\"full-width\"><\/figure>\n<h2>\u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c \u043f\u0440\u043e \u0431\u044d\u043a\u0430\u043f!<\/h2>\n<p>\u041f\u043e\u043a\u0430 \u043c\u044b \u0440\u0435\u0437\u0432\u0438\u043b\u0438\u0441\u044c \u0441 <strong><em>TestRail<\/em><\/strong>, \u043d\u0435 \u043c\u043e\u0433\u043b\u0438 \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u044b &#8212; \u0430 \u043c\u044b \u0442\u0430\u043a\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043b\u0438, \u0430 \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0438 \u043d\u0430\u0448\u0438 \u0442\u0435\u0441\u0442\u044b \u043f\u043e\u0442\u0435\u0440\u044f\u044e\u0442\u0441\u044f. \u041c\u043e\u0436\u043d\u043e \u0438\u0445 \u043a\u0430\u043a-\u0442\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043b\u0430\u0442\u043d\u044b\u043c\u0438 \u0431\u044d\u043a\u0430\u043f\u0430\u043c\u0438. \u041d\u043e \u0434\u043e\u0440\u043e\u0433\u043e? \u041d\u0435 \u0434\u0430\u0451\u0442 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u0434\u0435\u043d\u0435\u0433, \u0433\u043e\u0432\u043e\u0440\u0438\u0442, \u0440\u0430\u0437 \u0442\u044b \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b <strong><em>trcli<\/em><\/strong>, \u0434\u0430\u0432\u0430\u0439 \u0438 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0439.<\/p>\n<pre><code class=\"python\">tc_backup = TCBackup(tr_url, tr_email, tr_password, test_rails_suite=3) tc_backup.backup()\u00a0 # \u0422\u0430\u043a \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c backup.xml \u0444\u0430\u0439\u043b \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0442\u0435\u0441\u0442\u0430\u043c\u0438 tc_backup.get_archive_backup(suffix='')\u00a0 # \u0410 \u0442\u0430\u043a \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c backup.zip \u0430\u0440\u0445\u0438\u0432 \u0441 \u0442\u0435\u0441\u0442\u0430\u043c\u0438<\/code><\/pre>\n<p> \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0435 \u044d\u0442\u0438 \u0442\u0435\u0441\u0442\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0433\u0434\u0435-\u0442\u043e \u0432 \u043e\u0431\u043b\u0430\u043a\u0435? \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u0438\u0445 \u0432 \u043e\u0431\u043b\u0430\u043a\u0435 <strong><em>GoogleDrive<\/em><\/strong>!<\/p>\n<pre><code class=\"python\"># \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 Google \u0442\u043e\u043a\u0435\u043d, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435: # https:\/\/console.developers.google.com\/apis\/credentials?pli=1 # \u041f\u0440\u043e\u0439\u0434\u0438\u0442\u0435: Create Credentials => OAuth client ID => TV and limited Input Devices \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 client_id \u0438<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-393730","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/393730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=393730"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/393730\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=393730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=393730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=393730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}