{"id":340535,"date":"2022-10-31T15:01:07","date_gmt":"2022-10-31T15:01:07","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=340535"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=340535","title":{"rendered":"<span>\u041a\u0430\u043a \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u043f\u043e pytest-\u043f\u0440\u043e\u0433\u043e\u043d\u0430\u043c \u0432 Test IT<\/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-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/ye\/sv\/mb\/yesvmbv9hmgipggzj4smjjnbnjk.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/ye\/sv\/mb\/yesvmbv9hmgipggzj4smjjnbnjk.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u0432 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u043e \u043f\u0440\u043e\u0433\u043e\u043d\u0430\u043c. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435. \u0412\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435, \u0431\u044b\u043b\u043e \u0440\u0435\u0448\u0435\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0438\u0445 \u0432 <code>Test IT<\/code>. \u0422\u0430\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u0430\u043a: \u0438\u0441\u0445\u043e\u0434, \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043a\u0435\u0439\u0441\u043e\u0432 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u0442\u0435\u0441\u0442\u044b \u043d\u0430 \u0432\u044b\u0431\u043e\u0440\u043a\u0438 \u0438 \u0434\u0430\u0442\u044c \u043e\u0446\u0435\u043d\u043a\u0443 \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044f \u0430\u0432\u0442\u043e\u0442\u0435\u0441\u0442\u0430\u043c\u0438.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p>\u042d\u0442\u043e \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u043d\u043e, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432 <code>Test IT<\/code> \u0432\u0441\u0451 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0434\u043e \u043d\u0430\u0441 \u0438 \u043d\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0437\u0430\u043d\u043e\u0432\u043e \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u0442\u044c \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434. \u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0432 <code>Test IT<\/code> \u0438 <code>pytest<\/code> \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u0432\u044b\u0431\u043e\u0440\u043e\u0447\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0430\u0432\u0442\u043e \u0442\u0435\u0441\u0442\u044b. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u0438\u0441\u0442\u0435\u043c\u0430, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0435 \u0432\u044b\u0431\u043e\u0440\u043a\u0438 \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430.<\/p>\n<p>  <\/p>\n<p>\u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0421\u0423\u0422 (<code>Allure TestOps<\/code>, <code>TestLink<\/code> \u0438 \u0442.\u043f.), \u0440\u0435\u0448\u0438\u043b\u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0430 <code>Test IT<\/code>, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u044d\u0442\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0439 \u0446\u0435\u043d\u0435 \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435, \u0430 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f \u043d\u0430 <code>TestRail<\/code> \u0443\u0436\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0430\u0441\u044c.<\/p>\n<p>  <\/p>\n<h2 id=\"tehnicheskoe-zadanie\">\u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435<\/h2>\n<p>  <\/p>\n<p>\u0412 \u0440\u0430\u043c\u043a\u0430\u0445 \u0437\u0430\u0434\u0430\u0447\u0438 \u0441\u043b\u0435\u0434\u0443\u0435\u0442:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 <code>Test IT<\/code><\/li>\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 pytest-\u0442\u0435\u0441\u0442\u043e\u0432 \u0432 <code>GitLab CI<\/code><\/li>\n<li>\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d \u0434\u043b\u044f <code>pytest<\/code> \u043a\u043e\u0442\u043e\u0440\u044b\u0439:<br \/> \n<ul>\n<li>\u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u0435\u0439\u0441 \u0432 <code>Test IT<\/code><\/li>\n<li>\u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0438 \u0440\u0443\u0447\u043d\u043e\u0439 \u043a\u0435\u0439\u0441<\/li>\n<li>\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u0435\u0439\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u0432\u044b\u0431\u0440\u0430\u043d\u044b \u0432 \u043f\u0440\u043e\u0433\u043e\u043d\u0435<\/li>\n<li>\u043e\u0442\u043c\u0435\u0447\u0430\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>  <\/p>\n<h2 id=\"zamechaniya\">\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f<\/h2>\n<p>  <\/p>\n<ul>\n<li>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 <a href=\"https:\/\/docs.testit.software\/user-guide\/swagger-api\">Test IT Swagger API<\/a> \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c <code>API-secret-key<\/code> <\/li>\n<\/ul>\n<p>  <\/p>\n<h2 id=\"realizaciya\">\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h2>\n<p>  <\/p>\n<h3 id=\"1-sozdanie-i-svyazyvanie-avtomatizirovannyh-keysov-v-test-it\">1. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u043d\u0438\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043a\u0435\u0439\u0441\u043e\u0432 \u0432 Test IT<\/h3>\n<p>  <\/p>\n<p>\u0412 <code>Test IT<\/code> \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u0432\u0430 \u0432\u0438\u0434\u0430 \u043a\u0435\u0439\u0441\u043e\u0432: \u0440\u0443\u0447\u043d\u043e\u0439 \u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/is\/ln\/mb\/islnmb9xdamxwrnvmdbygkrfobc.png\" data-src=\"https:\/\/habrastorage.org\/webt\/is\/ln\/mb\/islnmb9xdamxwrnvmdbygkrfobc.png\"\/><\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0432 \u043f\u0440\u043e\u0433\u043e\u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u043a\u043d\u043e\u043f\u043a\u0430 <code>Launch Autotests<\/code> \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u0435\u0439\u0441 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d \u0438 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d \u043a \u0440\u0443\u0447\u043d\u043e\u043c\u0443<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/pi\/jx\/mn\/pijxmntw2_pfnmgzb9a2q4sorh0.png\" data-src=\"https:\/\/habrastorage.org\/webt\/pi\/jx\/mn\/pijxmntw2_pfnmgzb9a2q4sorh0.png\"\/><\/p>\n<p>  <\/p>\n<p>\u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u043a\u0435\u0439\u0441\u0430 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0441\u0438\u043c\u0432\u043e\u043b \u0440\u0430\u043a\u0435\u0442\u044b<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/cz\/tm\/w7\/cztmw7wlasvz7tr2aoia3rvqheu.png\" data-src=\"https:\/\/habrastorage.org\/webt\/cz\/tm\/w7\/cztmw7wlasvz7tr2aoia3rvqheu.png\"\/><\/p>\n<p>  <\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u043d\u0438\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u0435\u0439\u0441\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 endpoint <a href=\"https:\/\/docs.testit.software\/user-guide\/avtotesty\/sozdanie-avtotestov\">AutoTests<\/a>, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0434\u0432\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430:<\/p>\n<p>  <\/p>\n<ul>\n<li>testit_case_title \u2014 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u0435\u0439\u0441\u0430;<\/li>\n<li>testit_case_id \u2014 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u043a\u0435\u0439\u0441\u0430 \u0434\u043b\u044f \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438.<\/li>\n<\/ul>\n<p>  <\/p>\n<pre><code class=\"plaintext\">@pytest.mark.testit_case_id(29035) @putest.mark.testit_case_title(\"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0435\u0440\u0432\u043e\u0439 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0444\u0430\u0439\u043b\u0430\") def test_download_first(test_it_configuration):     \"\"\"         \u0410\u0432\u0442\u043e\u0442\u0435\u0441\u0442 \u043f\u0440\u0438\u043b\u0438\u043d\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a \u0440\u0443\u0447\u043d\u043e\u043c\u0443 \u0442\u0435\u0441\u0442\u0443     \"\"\"     from pprint import pprint     pprint(test_it_configuration)     sleep(randint(a=0, b=8))<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 GitLab CI \u0430\u0433\u0435\u043d\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 Test IT \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c WebHook \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/yj\/id\/sn\/yjidsnebeq_ifykqyqwjtowtlzc.png\" data-src=\"https:\/\/habrastorage.org\/webt\/yj\/id\/sn\/yjidsnebeq_ifykqyqwjtowtlzc.png\"\/><\/p>\n<p>  <\/p>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043b\u044f GitLab CI:<\/p>\n<p>  <\/p>\n<ul>\n<li>URL \u2014 \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 trigger \u043e\u0442 GIT-\u043f\u0440\u043e\u0435\u043a\u0442\u0430;<\/li>\n<li>ref \u2014 \u0432\u0435\u0442\u043a\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f \u0442\u0435\u0441\u0442\u044b;<\/li>\n<li>token \u2014 \u0442\u043e\u043a\u0438\u043d \u043e\u0442 GitLab CI \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 PYTEST:<\/p>\n<p>  <\/p>\n<ul>\n<li>TEST_IT \u2014 \u0444\u043b\u0430\u0433 \u0441\u043e\u043e\u0431\u0449\u0430\u044e\u0449\u0438\u0439, \u0447\u0442\u043e \u0442\u0435\u0441\u0442\u044b \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u044b \u0438\u0437 Test IT;<\/li>\n<li>TESTIT_URL \u2014 \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 Test IT;<\/li>\n<li>API_KEY \u2014 \u043a\u043b\u044e\u0447 \u0434\u043b\u044f <a href=\"https:\/\/docs.testit.software\/user-guide\/swagger-api\">Test IT Swagger API<\/a>;<\/li>\n<li>PROJECT_ID \u2014 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435;<\/li>\n<li>TEST_IT_MODE \u2014 \u0440\u0435\u0436\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Test IT.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>TEST_IT_MODE \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f:<\/p>\n<p>  <\/p>\n<ul>\n<li>DELETE_AUTOTESTS<\/li>\n<li>CREAT_AUTOTESTS<\/li>\n<li>LINK_AUTOTESTS<\/li>\n<li>RUN<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u042d\u0442\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0431\u0443\u0434\u0443\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u044b \u0432 GitLab CI \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u044b \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0430\u0433\u0435\u043d\u0442\u0430<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/-s\/cl\/mj\/-sclmjytrtfpww8eh_awtmp3epi.png\" data-src=\"https:\/\/habrastorage.org\/webt\/-s\/cl\/mj\/-sclmjytrtfpww8eh_awtmp3epi.png\"\/><\/p>\n<p>  <\/p>\n<p>\u0422\u0435\u0441\u0442\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0437 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0430\u0433\u0435\u043d\u0442\u0430 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043c\u043e\u0434\u0443\u043b\u044f getenv<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">from os import getenv  class TestItParams:     \"\"\"         \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438\u0437 Test IT     \"\"\"     is_test_it = getenv('TEST_IT', 'False').lower().capitalize() == 'True'     mode = getenv('TEST_IT_MODE', 'RUN')     url = getenv('TESTIT_URL', 'http:\/\/tmslt-1.video.rt.ru\/')     key = getenv('API_KEY', None)     project_id = getenv('PROJECT_ID', None)     run_id = getenv('TEST_RUN_ID', None)     configuration_id = getenv('CONFIG_ID', None) <\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u043b\u0430\u0441\u0441 TestItParams \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u0435 <a href=\"https:\/\/docs.pytest.org\/en\/7.1.x\/reference\/reference.html#session\">session<\/a><\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">def pytest_sessionstart(session):     \"\"\"         SetUP \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u0435\u0441\u0441\u0438\u0438: \u0441\u043e\u0431\u0440\u0430\u0442\u044c env-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438\u0437 TestIT     \"\"\"      session.test_it = TestItParams <\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u0435\u0439\u0441\u0430 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 pytest, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u044c \u0434\u0432\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 testit_case_title \u0438 testit_case_id.<\/p>\n<p>  <\/p>\n<p>\u042d\u0442\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u0437 <a href=\"https:\/\/docs.pytest.org\/en\/7.1.x\/reference\/reference.html#collection-hooks\">pytest_collection_modifyitems<\/a>, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430 \u043d\u0430 \u0437\u0430\u043f\u0443\u0441\u043a.<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043f\u0438\u0448\u0435\u043c <a href=\"https:\/\/docs.pytest.org\/en\/6.2.x\/writing_plugins.html\">plugin<\/a> \u0432 \u0444\u0430\u0439\u043b\u0435 conftest.py<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">def pytest_collection_modifyitems(session, items):     \"\"\"         \u041f\u0435\u0440\u0435\u0445\u0432\u0430\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0434 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0435\u0439 \u0441\u043f\u0438\u0441\u043a\u0430 \u043a\u0435\u0439\u0441\u043e\u0432     \"\"\"      if session.test_it.is_test_it is True:         print('\u0422\u0435\u0441\u0442\u044b \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u044b \u0434\u043b\u044f TEST_IT')          if 'DELETE_AUTOTESTS' in session.test_it.mode:             delete_all_auto_test_from_project(pytest_session=session)         if 'CREAT_AUTOTESTS' in session.test_it.mode:             create_autotest_in_project(pytest_session=session, pytest_items=items)         if 'LINK_AUTOTESTS' in session.test_it.mode:             link_autotests_to_testcases(pytest_session=session, pytest_items=items)         if 'RUN' in session.test_it.mode:             select_autotest_from_testrun_only(pytest_session=session)     else:         print('\\n\u041f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0448\u0442\u0430\u0442\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a')<\/code><\/pre>\n<p>  <\/p>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u0438 create_autotest_in_project \u0438 link_autotests_to_testcases \u044d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u044b\u0435 API \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0447\u0435\u0440\u0435\u0437 endpoint <a href=\"https:\/\/docs.testit.software\/user-guide\/avtotesty\/sozdanie-avtotestov\">AutoTests<\/a>.<\/p>\n<p>  <\/p>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 test_it_mode \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447: \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435, \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0430, \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u043a. <\/p>\n<p>  <\/p>\n<h3 id=\"2-vyborochnyy-zapusk-pytest-testov\">2. \u0412\u044b\u0431\u043e\u0440\u043e\u0447\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a pytest-\u0442\u0435\u0441\u0442\u043e\u0432<\/h3>\n<p>  <\/p>\n<p>\u041f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u043b\u0430\u043d\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u044c \u0432 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043a\u0435\u0439\u0441\u043e\u0432.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 <code>pytest<\/code> \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u043e \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u043f\u043b\u0430\u043d\u0435, \u0442\u043e \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 TEST_RUN_ID \u0447\u0435\u0440\u0435\u0437 endpoint <a href=\"https:\/\/docs.testit.software\/user-guide\/avtotesty\/istoriya-zapuskov\">TestRunes<\/a> \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u0435\u0441\u0442\u043e\u0432 \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u043f\u0440\u043e\u0433\u043e\u043d\u0435.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/q1\/kk\/s3\/q1kks3ifbvpps8tu22vxyjt2s2s.png\" data-src=\"https:\/\/habrastorage.org\/webt\/q1\/kk\/s3\/q1kks3ifbvpps8tu22vxyjt2s2s.png\"\/><\/p>\n<p>  <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435 \u0442\u0435\u0441\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0435\u0441\u0442\u044c \u0432 \u043f\u0440\u043e\u0433\u043e\u043d\u0435 \u0438 \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435. <\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">def pytest_collection_modifyitems(session, items):     \"\"\"         \u041f\u0435\u0440\u0435\u0445\u0432\u0430\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0434 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0435\u0439 \u0441\u043f\u0438\u0441\u043a\u0430 \u043a\u0435\u0439\u0441\u043e\u0432: \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435, \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435, \u043b\u0438\u043d\u043a\u043e\u0432\u043a\u0430, \u0432\u044b\u0431\u043e\u0440\u043a\u0430     \"\"\"      if session.test_it.is_test_it is True:         print('\u0422\u0435\u0441\u0442\u044b \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u044b \u0434\u043b\u044f TEST_IT')          if 'DELETE_AUTOTESTS' in session.test_it.mode:             delete_all_auto_test_from_project(pytest_session=session)         if 'CREAT_AUTOTESTS' in session.test_it.mode:             create_autotest_in_project(pytest_session=session, pytest_items=items)         if 'LINK_AUTOTESTS' in session.test_it.mode:             link_autotests_to_testcases(pytest_session=session, pytest_items=items)         if 'RUN' in session.test_it.mode:             select_autotest_from_testrun_only(pytest_session=session)     else:         print('\\n\u041f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0448\u0442\u0430\u0442\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a')<\/code><\/pre>\n<p>  <\/p>\n<p>\u0424\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u0435 <a href=\"https:\/\/docs.pytest.org\/en\/7.1.x\/reference\/reference.html#item\">session.items<\/a> \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430 \u043d\u0430 \u0437\u0430\u043f\u0443\u0441\u043a.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">def select_autotest_from_testrun_only(pytest_session):     \"\"\"         \u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435 \u043a\u0435\u0439\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u0441\u044f \u0432 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u043f\u0440\u043e\u0433\u043e\u043d\u0435     \"\"\"      run_api = TestRunes(pytest_session.test_it.url, pytest_session.test_it.key)     current_test_run = run_api.get_testrun_by_id(pytest_session.test_it.run_id)      external_ids = []     for case in current_test_run['testResults']:         if case['startedOn'] is None:             external_ids.append((case['autoTest']['externalId'],                                  case['configuration']))      edited_session_items = []     for case in pytest_session.items:         for external_id in external_ids:             if case.name in external_id[0]:                 case.test_it_configuration = external_id[1]                 edited_session_items.append(case)     pytest_session.items = edited_session_items <\/code><\/pre>\n<p>  <\/p>\n<h3 id=\"3-vozvrat-rezultata-prohozhdeniya-pytest-testov\">3. \u0412\u043e\u0437\u0432\u0440\u0430\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f pytest-\u0442\u0435\u0441\u0442\u043e\u0432<\/h3>\n<p>  <\/p>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u0435\u0439\u0441 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0430 \u043d\u0435 \u043f\u043e\u0441\u0442\u0444\u0430\u043a\u0442\u0443\u043c.<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0445\u0443\u043a\u043e\u043c <a href=\"https:\/\/docs.pytest.org\/en\/7.1.x\/reference\/reference.html#test-running-runtest-hooks\">pytest_runtest_makereport<\/a> \u0441 \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440\u043e\u043c <a href=\"https:\/\/docs.pytest.org\/en\/7.1.x\/how-to\/writing_hook_functions.html#hookwrapper-executing-around-other-hooks\">@pytest.hookimpl(hookwrapper=True)<\/a>. <\/p>\n<p>  <\/p>\n<p>\u041e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u041e\u0414\u041d\u041e\u0413\u041e \u0442\u0435\u0441\u0442\u0430 \u0414\u041e \u0438 \u041f\u041e\u0421\u041b\u0415 \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">@pytest.hookimpl(hookwrapper=True) def pytest_runtest_makereport(item):     \"\"\"         \u041f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0430 \u0432\u043e \u0432\u0440\u0435\u043c\u044f: setup \u0438 done     \"\"\"      outcome = yield      if 'RUN' in item.session.test_it.mode:         provide_test_results_into_run(pytest_session=item.session,                                       pytest_outcome=outcome,                                       pytest_item=item) <\/code><\/pre>\n<p>  <\/p>\n<p>\u042d\u0442\u043e\u0442 \u0445\u0443\u043a \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 outcome, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043f\u0440\u043e\u0433\u043e\u043d\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0442\u0435\u0441\u0442\u0430. <\/p>\n<p>  <\/p>\n<p>\u041f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u043f\u0440\u043e\u0433\u043e\u043d\u0430 \u0432 Test IT \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 endpoint <a href=\"https:\/\/docs.testit.software\/user-guide\/avtotesty\/istoriya-zapuskov\">TestRunes<\/a>.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">def provide_test_results_into_run(pytest_session, pytest_outcome, pytest_item):     \"\"\"         \u041f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u0430 \u0432 TestIT     \"\"\"     test_run_api = TestRunes(pytest_session.test_it.url, pytest_session.test_it.key)     res = pytest_outcome.get_result()     if res.when == \"call\":         autotest_id = pytest_item.name         outcome = res.outcome         duration = res.duration         message = ''         traceback = ''          if res.outcome == 'failed':             message = res.longrepr.reprcrash.message             traceback = res.longreprtext          test_run_api.set_auto_test_results_for_test_run(run_id=pytest_session.test_it.run_id,                                                         autoTestExternalId=autotest_id,                                                         outcome=humanize(outcome),                                                         message=message,                                                         traces=traceback,                                                         duration=duration,                                                         configurationId=pytest_item.test_it_configuration['id']) <\/code><\/pre>\n<p>  <\/p>\n<h2 id=\"vyvod\">\u0412\u044b\u0432\u043e\u0434<\/h2>\n<p>  <\/p>\n<p>\u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0432 Test IT \u0438 pytest \u043c\u044b \u0441\u043e\u0431\u0440\u0430\u043b\u0438 \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u043c\u0435\u0435\u0442: <\/p>\n<p>  <\/p>\n<ul>\n<li>\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u0442\u0435\u0441\u0442\u044b \u0432 GitLab CI;<\/li>\n<li>\u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438;<\/li>\n<li>\u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u043f\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043c;<\/li>\n<li>\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0432\u044b\u0431\u043e\u0440\u043a\u0438 \u0442\u0435\u0441\u0442\u043e\u0432.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>Test IT \u0438\u043c\u0435\u0435\u0442 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0439 \u043a\u043e\u043b\u044c\u0446\u0435\u0432\u044b\u0435-\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b, \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u0438. \u041c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c, \u0432 \u043a\u0430\u043a\u043e\u043c \u043f\u0440\u043e\u0433\u043e\u043d\u0435 \u0443\u043f\u0430\u043b \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0442\u0435\u0441\u0442 \u0438 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043e\u043d \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b\u0441\u044f. <\/p>\n<p>  <\/p>\n<h2 id=\"demonstraciya\">\u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f<\/h2>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/la\/ud\/qt\/laudqtwl3tipntvhu12metoztvi.gif\" data-src=\"https:\/\/habrastorage.org\/webt\/la\/ud\/qt\/laudqtwl3tipntvhu12metoztvi.gif\"\/><\/p>\n<p>  <\/p>\n<h2 id=\"ssylki\">\u0421\u0441\u044b\u043b\u043a\u0438<\/h2>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=p3XUv8C8FKo\">\u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440 \u0412\u043e\u043b\u043a\u043e\u0432 \u2014 Pytest Plugins: \u041a\u0430\u043a \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 \u043f\u043b\u0430\u0433\u0438\u043d\u044b<br \/>  <\/a><\/li>\n<li><a href=\"https:\/\/docs.testit.software\/user-guide\/swagger-api\">Test IT Swagger API<\/a><\/li>\n<li><a href=\"https:\/\/docs.pytest.org\/\">pytest<\/a><\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/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\/company\/rostelecom\/blog\/695814\/\"> https:\/\/habr.com\/ru\/company\/rostelecom\/blog\/695814\/<\/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-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/ye\/sv\/mb\/yesvmbv9hmgipggzj4smjjnbnjk.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/ye\/sv\/mb\/yesvmbv9hmgipggzj4smjjnbnjk.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u0432 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u043e \u043f\u0440\u043e\u0433\u043e\u043d\u0430\u043c. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435. \u0412\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435, \u0431\u044b\u043b\u043e \u0440\u0435\u0448\u0435\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0438\u0445 \u0432 <code>Test IT<\/code>. \u0422\u0430\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u0430\u043a: \u0438\u0441\u0445\u043e\u0434, \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043a\u0435\u0439\u0441\u043e\u0432 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u0442\u0435\u0441\u0442\u044b \u043d\u0430 \u0432\u044b\u0431\u043e\u0440\u043a\u0438 \u0438 \u0434\u0430\u0442\u044c \u043e\u0446\u0435\u043d\u043a\u0443 \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044f \u0430\u0432\u0442\u043e\u0442\u0435\u0441\u0442\u0430\u043c\u0438.<\/p>\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-340535","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/340535","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=340535"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/340535\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=340535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=340535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=340535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}