{"id":24929,"date":"2023-09-16T07:17:33","date_gmt":"2023-09-15T22:17:33","guid":{"rendered":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/?page_id=24929"},"modified":"2023-09-20T18:38:05","modified_gmt":"2023-09-20T09:38:05","slug":"exporting-test-results","status":"publish","type":"page","link":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/api-manual\/api-usecase\/exporting-test-results\/","title":{"rendered":"\u30c6\u30b9\u30c8\u7d50\u679c\u306e\u30a8\u30af\u30b9\u30dd\u30fc\u30c8"},"content":{"rendered":"<p>\u30c6\u30b9\u30c8\u7d50\u679c\u306b\u5bfe\u3057\u3066\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3055\u308c\u305f\u5206\u6790\u3092\u5b9f\u884c\u3057\u305f\u308a\u3001\u30d1\u30fc\u30bd\u30ca\u30e9\u30a4\u30ba\u3055\u308c\u305f\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u4ed6\u306e\u30c7\u30fc\u30bf\u3068\u5408\u308f\u305b\u3066\u30c6\u30b9\u30c8\u7d50\u679c\u3092\u8868\u793a\u3057\u305f\u308a\u3067\u304d\u308b\u3068\u4fbf\u5229\u3067\u3059\u30021 \u3064\u307e\u305f\u306f\u8907\u6570\u306e\u30c6\u30b9\u30c8 \u30e9\u30f3\u3084\u30c6\u30b9\u30c8\u8a08\u753b\u304b\u3089\u3001\u69cb\u9020\u5316\u3055\u308c\u305f JSON \u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u30c6\u30b9\u30c8\u7d50\u679c\u3092\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3059\u308b\u3053\u3068\u3067\u3001\u305d\u308c\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30c6\u30b9\u30c8 \u30e9\u30f3\u304a\u3088\u3073\u30c6\u30b9\u30c8\u7d50\u679c\u306e\u8a73\u7d30\u3092\u53d6\u5f97\u3059\u308b\u3068\u3001\u5f37\u529b\u306a\u89e3\u6790\u30c4\u30fc\u30eb\u3067\u30c6\u30b9\u30c8\u4f5c\u696d\u306b\u95a2\u3059\u308b\u6d1e\u5bdf\u3092\u53d6\u5f97\u3057\u305f\u308a\u3001\u5916\u90e8\u30c4\u30fc\u30eb\u306b\u30c6\u30b9\u30c8\u306e\u9032\u6357\u3092\u8868\u793a\u3057\u305f\u308a\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul class=\"list-bullet\">\n<li>BI \u30c4\u30fc\u30eb\u3067\u30c6\u30b9\u30c8\u7d50\u679c\u3092\u89e3\u6790\u3057\u307e\u3059\u3002<\/li>\n<li>\u904b\u7528\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u30c6\u30b9\u30c8\u7d50\u679c\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>\u30c6\u30b9\u30c8 \u30e9\u30f3\u306e\u53d6\u5f97<\/h2>\n<p>\u8868\u793a\u3084\u4efb\u610f\u306e\u51e6\u7406\u306e\u305f\u3081\u306b TestRail \u304b\u3089\u30c6\u30b9\u30c8\u5b9f\u884c\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u305f\u3044\u5834\u5408\u304c\u3042\u308b\u3067\u3057\u3087\u3046\u3002\u30c6\u30b9\u30c8 \u30e9\u30f3\u306e\u30bb\u30c3\u30c8\u5185\u3067\u6210\u529f\u3057\u305f\u30c6\u30b9\u30c8\u306e\u6570\u3084\u5931\u6557\u3057\u305f\u30c6\u30b9\u30c8\u306e\u6570\u306a\u3069\u3001\u30c6\u30b9\u30c8\u5b9f\u884c\u306e\u6982\u8981\u3060\u3051\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001\u4e0b\u306e\u3088\u3046\u306a\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<div class=\"tabs\">\n<h3 class=\"tabs-menu\"><span class=\"tabs-link is-active\">\u30ea\u30af\u30a8\u30b9\u30c8<\/span><\/h3>\n<div>\n<p><strong><span class=\"api_verb api_get\">GET\u3000<\/span><\/strong> <span class=\"api_url\">index.php?\/api\/v2\/get_runs\/{project_id}<\/span><\/p>\n<pre><\/pre>\n<\/div>\n<div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\">curl -X GET \\ \n  -u \"user@example.com:password\" \\ \n  \"https:\/\/example.testrail.io\/index.php?\/api\/v2\/get_runs\/27\"<\/pre>\n<\/div>\n<h3 class=\"tabs-menu\"><span class=\"tabs-link\">\u30ea\u30af\u30a8\u30b9\u30c8 \u30dc\u30c7\u30a3\u306e\u30b5\u30f3\u30d7\u30eb<\/span><\/h3>\n<div>\u306a\u3057<\/div>\n<div><\/div>\n<h3 class=\"tabs-menu\"><span class=\"tabs-link\">\u30ec\u30b9\u30dd\u30f3\u30b9 \u30dc\u30c7\u30a3\u306e\u30b5\u30f3\u30d7\u30eb<\/span><\/h3>\n<div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">{\n    \"offset\": 0,\n    \"limit\": 250,\n    \"size\": 250,\n    \"_links\": {\n        \"next\": \"\/api\/v2\/get_cases\/1&amp;limit=250&amp;offset=250\",\n        \"prev\": null\n    },\n    \"runs\": [\n        {\n            \"id\": 228,\n            \"suite_id\": 53,\n            \"name\": \"New test run\",\n            \"description\": \"Test run description\",\n            \"milestone_id\": null,\n            \"assignedto_id\": 5,\n            \"include_all\": false,\n            \"is_completed\": false,\n            \"completed_on\": 1684939401,\n            \"config\": null,\n            \"config_ids\": [],\n            \"passed_count\": 0,\n            \"blocked_count\": 0,\n            \"untested_count\": 1,\n            \"retest_count\": 0,\n            \"failed_count\": 2,\n            \"custom_status1_count\": 0,\n            \"custom_status2_count\": 0,\n            \"custom_status3_count\": 0,\n            \"custom_status4_count\": 0,\n            \"custom_status5_count\": 0,\n            \"custom_status6_count\": 0,\n            \"custom_status7_count\": 0,\n            \"project_id\": 27,\n            \"plan_id\": null,\n            \"created_on\": 1684936873,\n            \"updated_on\": 1684936873,\n            \"refs\": null,\n            \"dataset_id\": null,\n            \"created_by\": 18,\n            \"url\": \"https:\/\/marketing80testing.testrail-staging.com\/index.php?\/runs\/view\/228\"\n        }\n    ]\n}<\/pre>\n<\/div>\n<h2 class=\"tabs-menu\"><span style=\"color: revert; font-size: revert; font-weight: revert;\">\u30af\u30a8\u30ea\u30fc \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306b\u3088\u308b\u30c6\u30b9\u30c8\u7d50\u679c\u306e\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0<\/span><\/h2>\n<\/div>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>ID \u304c 1 \u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e ID \u304c 1 \u307e\u305f\u306f 2 \u306e\u30e6\u30fc\u30b6\u30fc\u306b\u3088\u3063\u3066\u4f5c\u6210\u3055\u308c\u305f\u3059\u3079\u3066\u306e\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30c6\u30b9\u30c8 \u30e9\u30f3\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408:<br \/>\n<strong><span class=\"api_verb api_get\">GET<\/span> \u3000<\/strong><span class=\"api_url\">index.php?\/api\/v2\/get_runs\/1&amp;is_completed=0&amp;created_by=1,2<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>\u30c6\u30b9\u30c8 \u30e9\u30f3\u306e\u7d50\u679c\u306e\u53d6\u5f97<\/h2>\n<p>\u3059\u3079\u3066\u306e\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306e\u7d50\u679c\u3092\u89e3\u6790\u3057\u3001\u6d1e\u5bdf\u3092\u5f97\u305f\u3044\u5834\u5408\u306f\u3001\u30c6\u30b9\u30c8 \u30e9\u30f3\u3054\u3068\u306b\u7d50\u679c\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002\u305d\u3046\u3059\u308b\u3068\u3001\u30c6\u30b9\u30c8\u7d50\u679c\u3092\u3088\u308a\u8a73\u7d30\u306b\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"tabs\">\n<h3 class=\"tabs-menu\"><span class=\"tabs-link is-active\">\u30ea\u30af\u30a8\u30b9\u30c8<\/span><\/h3>\n<div><strong><span class=\"api_verb api_get\">GET\u3000<\/span><\/strong> <span class=\"api_url\">index.php?\/api\/v2\/get_results_for_run\/{run_id}<\/span><\/div>\n<div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\">curl -X GET \\ \n  -u \"user@example.com:password\" \\ \n  \"https:\/\/example.testrail.io\/index.php?\/api\/v2\/get_results_for_run\/228\"<\/pre>\n<\/div>\n<h3 class=\"tabs-menu\"><span class=\"tabs-link\">\u30ea\u30af\u30a8\u30b9\u30c8 \u30dc\u30c7\u30a3\u306e\u30b5\u30f3\u30d7\u30eb<\/span><\/h3>\n<div>\u306a\u3057<\/div>\n<h3 class=\"tabs-menu\"><span class=\"tabs-link\">\u30ec\u30b9\u30dd\u30f3\u30b9 \u30dc\u30c7\u30a3\u306e\u30b5\u30f3\u30d7\u30eb<\/span><\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">{\n    \"offset\": 0,\n    \"limit\": 250,\n    \"size\": 250,\n    \"_links\": {\n       \"next\": \"\/api\/v2\/get_results\/42&amp;limit=250&amp;offset=250\",\n       \"prev\": null\n    },\n    \"results\": [\n        {\n            \"assignedto_id\": 1,\n            \"comment\": \"This test passed.\",\n            \"created_by\": 1,\n            \"created_on\": 1393851801,\n            \"custom_step_results\": [],   \n            \"defects\": \"TR-1\",\n            \"elapsed\": \"5m\",\n            \"id\": 801,\n            \"status_id\": 1,\n            \"test_id\": 91\n        },\n        {\n            \"assignedto_id\": 1,\n            \"comment\": \"This test failed: ..\",\n            \"created_by\": 1,\n            \"created_on\": 1393851801,\n            \"custom_step_results\": [],   \n            \"defects\": \"TR-1\",\n            \"elapsed\": \"3m\",\n            \"id\": 802,\n            \"status_id\": 5,\n            \"test_id\": 92\n        }\n    ]\n}<\/pre>\n<h3 class=\"tabs-menu\">\u30af\u30a8\u30ea\u30fc \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306b\u3088\u308b\u30c6\u30b9\u30c8\u7d50\u679c\u306e\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0<\/h3>\n<\/div>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>ID \u304c 1 \u306e\u30c6\u30b9\u30c8 \u30e9\u30f3\u306e\u30e6\u30fc\u30b6\u30fc 5 \u306b\u3088\u3063\u3066\u4f5c\u6210\u3055\u308c\u305f\u6700\u65b0 10 \u500b\u306e\u7d50\u679c\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408<br \/>\n<strong><span class=\"api_verb api_get\">GET<\/span> \u3000<\/strong><span class=\"api_url\">index.php?\/api\/v2\/get_results_for_run\/1&amp;created_by=5&amp;limit=10<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u30c6\u30b9\u30c8\u7d50\u679c\u306b\u5bfe\u3057\u3066\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3055\u308c\u305f\u5206\u6790\u3092\u5b9f\u884c\u3057\u305f\u308a\u3001\u30d1\u30fc\u30bd\u30ca\u30e9\u30a4\u30ba\u3055\u308c\u305f\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u4ed6\u306e\u30c7\u30fc\u30bf\u3068\u5408\u308f\u305b\u3066\u30c6\u30b9\u30c8\u7d50\u679c\u3092\u8868\u793a\u3057\u305f\u308a\u3067\u304d\u308b\u3068\u4fbf\u5229\u3067\u3059\u30021 \u3064\u307e\u305f\u306f\u8907\u6570\u306e\u30c6\u30b9\u30c8 \u30e9\u30f3\u3084\u30c6\u30b9\u30c8\u8a08\u753b\u304b\u3089\u3001\u69cb\u9020\u5316\u3055\u308c\u305f JSON [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":24746,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-24929","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/24929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/comments?post=24929"}],"version-history":[{"count":9,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/24929\/revisions"}],"predecessor-version":[{"id":25179,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/24929\/revisions\/25179"}],"up":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/24746"}],"wp:attachment":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/media?parent=24929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}