{"id":24874,"date":"2023-09-16T06:02:20","date_gmt":"2023-09-15T21:02:20","guid":{"rendered":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/?page_id=24874"},"modified":"2023-09-20T18:38:14","modified_gmt":"2023-09-20T09:38:14","slug":"creating-test-cases","status":"publish","type":"page","link":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/api-manual\/api-usecase\/creating-test-cases\/","title":{"rendered":"\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306e\u4f5c\u6210"},"content":{"rendered":"<p>\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306e\u8a2d\u8a08\u306f\u3055\u307e\u3056\u307e\u306a\u30c4\u30fc\u30eb\u3067\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u3001\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u3092\u751f\u6210\u3059\u308b\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u5bfe\u5fdc\u3059\u308b\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u3092TestRail \u5185\u306b\u81ea\u52d5\u4f5c\u6210\u3057\u3001\u30c6\u30b9\u30bf\u30fc\u304c\u305d\u308c\u3092\u5229\u7528\u3057\u3066\u7d50\u679c\u3092\u30b5\u30d6\u30df\u30c3\u30c8\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u7684\u306b\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u6a5f\u80fd\u3092\u5229\u7528\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b1\u30fc\u30b9\u3067\u4f7f\u7528\u3059\u308b\u30c4\u30fc\u30eb\u3084\u7d71\u5408\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul class=\"list-bullet\">\n<li>\u81ea\u52d5\u5316\u3055\u308c\u305f\u30c6\u30b9\u30c8\u306b\u57fa\u3065\u304f\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306e\u4f5c\u6210<\/li>\n<li>\u7d44\u307f\u5408\u308f\u305b\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u751f\u6210\u30c4\u30fc\u30eb<\/li>\n<li>\u305d\u306e\u4ed6\u306e\u30e2\u30c7\u30eb \u30d9\u30fc\u30b9 \u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u751f\u6210\u30c4\u30fc\u30eb<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<table class=\"table table--hover\" style=\"border-collapse: collapse; width: 100%; height: 66px;\">\n<thead>\n<tr style=\"height: 22px;\">\n<th style=\"width: 32.8572%; height: 22px;\">\u5b9f\u969b\u306e\u30b5\u30f3\u30d7\u30eb<\/th>\n<th style=\"width: 67.1428%; height: 22px;\">\u30e6\u30fc\u30b9 \u30b1\u30fc\u30b9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 22px;\">\n<td style=\"width: 32.8572%; height: 22px;\"><a href=\"\/test-automation\/testrail-cli\/automation-workflows-code-first\/\" target=\"_blank\" rel=\"noopener\">TestRail CLI &#8211; JUnit Parser<\/a><\/td>\n<td style=\"width: 67.1428%; height: 22px;\">\u81ea\u52d5\u30c6\u30b9\u30c8\u306e\u7d50\u679c\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u3068\u304d\u306b\u30c6\u30b9\u30c8\u3092\u81ea\u52d5\u7684\u306b\u4f5c\u6210\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr style=\"height: 22px;\">\n<td style=\"width: 32.8572%; height: 22px;\"><a href=\"https:\/\/github.com\/gurock\/trcli#generating-test-cases-from-openapi-specs\" target=\"_blank\" rel=\"noopener\">TestRail CLI &#8211; OpenAPI Parser<\/a><\/td>\n<td style=\"width: 67.1428%; height: 22px;\">OpenAPI \u4ed5\u69d8\u304b\u3089\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u30ab\u30b9\u30bf\u30e0 \u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u95a2\u3059\u308b\u6ce8\u610f\u70b9<\/h3>\n<p>\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u3092\u62e1\u5f35\u3059\u308b\u305f\u3081\u3001TestRail \u306b\u306f\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9 \u30d5\u30a3\u30fc\u30eb\u30c9\u304a\u3088\u3073\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002\u30ab\u30b9\u30bf\u30e0\u7d50\u679c\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u3001 <code class=\"inline-code\">custom_automation_status<\/code> \u306e\u3088\u3046\u306b\u3001<code class=\"inline-code\">custom_field_name<\/code> \u3068\u3044\u3046\u30d1\u30bf\u30fc\u30f3\u3092\u4f7f\u7528\u3057\u3066\u5024\u3092\u30b5\u30d6\u30df\u30c3\u30c8\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u4ee5\u4e0b\u306e\u3044\u305a\u308c\u304b\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u3059\u3079\u3066\u306e\u30b1\u30fc\u30b9 \u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u95a2\u3059\u308b\u8a73\u7d30\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 18.5715%;\"><strong>\u30b1\u30fc\u30b9 \u30d5\u30a3\u30fc\u30eb\u30c9<\/strong><\/td>\n<td style=\"width: 81.4285%;\"><strong><span class=\"api_verb api_get\">GET<\/span> \u00a0<\/strong><span class=\"api_url\">index.php?\/api\/v2\/get_case_fields<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 18.5715%;\"><strong>\u30b1\u30fc\u30b9 \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/strong><\/td>\n<td style=\"width: 81.4285%;\"><span class=\"api_verb api_get\"><strong>GET<\/strong>\u00a0<\/span> <span class=\"api_url\">index.php?\/api\/v2\/get_templates\/{project_id}<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 18.5715%;\"><strong>\u30b1\u30fc\u30b9\u512a\u5148\u5ea6<\/strong><\/td>\n<td style=\"width: 81.4285%;\"><span class=\"api_verb api_get\"><strong>GET<\/strong>\u00a0<\/span> <span class=\"api_url\">index.php?\/api\/v2\/get_priorities<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 18.5715%;\"><strong>\u30b1\u30fc\u30b9 \u30bf\u30a4\u30d7<\/strong><\/td>\n<td style=\"width: 81.4285%;\"><span class=\"api_verb api_get\"><strong>GET<\/strong>\u00a0<\/span> <span class=\"api_url\">index.php?\/api\/v2\/get_case_types<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 18.5715%;\"><strong>\u30b1\u30fc\u30b9 \u30b9\u30c6\u30fc\u30bf\u30b9<\/strong><\/td>\n<td style=\"width: 81.4285%;\"><span class=\"api_verb api_get\"><strong>GET<\/strong>\u00a0<\/span> <span class=\"api_url\">index.php?\/api\/v2\/get_case_statuses<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u300cTest Case (Text)\u300d\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u7528\u3057\u305f\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306e\u4f5c\u6210<\/h2>\n<p>\u30c6\u30ad\u30b9\u30c8 \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306f TestRail \u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u3042\u308a\u3001\u6700\u3082\u57fa\u672c\u7684\u3067\u3042\u308a\u306a\u304c\u3089\u6c4e\u7528\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u30c6\u30ad\u30b9\u30c8 \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u306f\u3001<strong>Preconditions<\/strong> \u30d5\u30a3\u30fc\u30eb\u30c9\u3001<strong>Steps <\/strong>\u30d5\u30a3\u30fc\u30eb\u30c9\u3001<strong>Expected Result<\/strong> \u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u306e\u3044\u305a\u308c\u304b\u306e\u3088\u3046\u306a\u30b3\u30f3\u30c6\u30f3\u30c4 \u30dc\u30c7\u30a3\u3067\u3053\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u4f7f\u7528\u3057\u3001\u30c6\u30b9\u30c8\u3092\u4f5c\u6210\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<p><strong><span class=\"api_verb api_post\">POST\u3000<\/span><\/strong><span class=\"api_url\">index.php?\/api\/v2\/add_case\/{section_id}<\/span><\/p>\n<\/div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\">curl -X POST \\\n  -u \"user@example.com:password\" \\ \n  -d \"@path\/to\/data.json\" \\ \n  \"https:\/\/example.testrail.io\/index.php?\/api\/v2\/add_case\/432\"<\/pre>\n<div class=\"tabs\">\n<div><\/div>\n<\/div>\n<div><\/div>\n<div class=\"tabs\">\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>\n<div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">{\n    \"title\": \"My test case (text)\",\n    \"template_id\": 1,\n    \"type_id\": 1,\n    \"priority_id\": 1,\n    \"estimate\": \"3m\",\n    \"refs\": \"TR-1, TR-2\",\n    \"custom_preconds\": \"My preconditions\",\n    \"custom_steps\": \"My test steps\",\n    \"custom_expected\": \"My expected final results\"\n}<\/pre>\n<\/div>\n<div class=\"tabs\">\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    \"id\": 4076,\n    \"title\": \"My test case (text)\",\n    \"section_id\": 498,\n    \"template_id\": 1,\n    \"type_id\": 1,\n    \"priority_id\": 1,\n    \"milestone_id\": null,\n    \"refs\": \"TR-1, TR-2\",\n    \"created_by\": 18,\n    \"created_on\": 1684927460,\n    \"updated_by\": 18,\n    \"updated_on\": 1684927460,\n    \"estimate\": \"3m\",\n    \"estimate_forecast\": null,\n    \"suite_id\": 53,\n    \"display_order\": 1,\n    \"is_deleted\": 0,\n    \"case_assignedto_id\": null,\n    \"custom_automation_type\": null,\n    \"custom_preconds\": \"My preconditions\",\n    \"custom_steps\": \"My test steps\",\n    \"custom_testrail_bdd_scenario\": null,\n    \"custom_expected\": \"My expected final results\",\n    \"custom_steps_separated\": null,\n    \"custom_mission\": null,\n    \"custom_goals\": null,\n    \"comments\": []\n}<\/pre>\n<p><a href=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/creating-test-cases_01.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/creating-test-cases_01.png\" alt=\"\" width=\"1089\" height=\"550\" class=\"aligncenter size-full wp-image-24881\" srcset=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/creating-test-cases_01.png 1089w, https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/creating-test-cases_01-980x495.png 980w, https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/creating-test-cases_01-480x242.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1089px, 100vw\" \/><\/a><\/p>\n<h2>\u300cTest Case (Steps)\u300d\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u7528\u3057\u305f\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306e\u4f5c\u6210<\/h2>\n<p>\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306e\u7d50\u679c\u3092\u3088\u308a\u7d30\u304b\u304f\u7ba1\u7406\u3057\u305f\u3044\u5834\u5408\u3001\u500b\u5225\u306e\u30c6\u30b9\u30c8\u624b\u9806\u3092\u4f7f\u7528\u3057\u3066\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u3092\u8a2d\u8a08\u3057\u3001\u5b9f\u884c\u6642\u306b\u3069\u306e\u624b\u9806\u3067\u5931\u6557\u3057\u305f\u304b\u304c\u308f\u304b\u308b\u3088\u3046\u306b\u3059\u308b\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002\u6b21\u306e\u30b3\u30f3\u30c6\u30f3\u30c4 \u30dc\u30c7\u30a3\u306e\u3088\u3046\u306a\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u500b\u5225\u306e\u624b\u9806\u3092\u6301\u3064\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u3092\u4f5c\u6210\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>\n<div>\n<p><strong><span class=\"api_verb api_post\">POST\u3000<\/span><\/strong> <span class=\"api_url\">index.php?\/api\/v2\/add_case\/{section_id}<\/span><\/p>\n<pre><\/pre>\n<\/div>\n<div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\">curl -X POST \\\n  -u \"user@example.com:password\" \\ \n  -d \"@path\/to\/data.json\" \\ \n  \"https:\/\/example.testrail.io\/index.php?\/api\/v2\/add_case\/432\"<\/pre>\n<\/div>\n<div class=\"tabs\">\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>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">{\n    \"title\": \"My test case (steps)\",\n    \"template_id\": 2,\n    \"type_id\": 1,\n    \"priority_id\": 1,\n    \"estimate\": \"3m\",\n    \"refs\": \"TR-1, TR-2\",\n    \"custom_preconds\": \"My preconditions\",\n    \"custom_steps_separated\": [\n        {\n            \"content\": \"Step 1\",\n            \"expected\": \"Expected Result 1\"\n        },\n        {\n            \"content\": \"Step 2\",\n            \"expected\": \"Expected Result 2\"\n        },\n        {\n            \"shared_step_id\": 3\n        },\n    ]\n}<\/pre>\n<\/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    \"id\": 4078,\n    \"title\": \"My test case (steps)\",\n    \"section_id\": 498,\n    \"template_id\": 2,\n    \"type_id\": 1,\n    \"priority_id\": 1,\n    \"milestone_id\": null,\n    \"refs\": \"TR-1, TR-2\",\n    \"created_by\": 18,\n    \"created_on\": 1684931159,\n    \"updated_by\": 18,\n    \"updated_on\": 1684931159,\n    \"estimate\": \"3m\",\n    \"estimate_forecast\": null,\n    \"suite_id\": 53,\n    \"display_order\": 2,\n    \"is_deleted\": 0,\n    \"case_assignedto_id\": null,\n    \"custom_automation_type\": null,\n    \"custom_preconds\": \"My preconditions\",\n    \"custom_steps\": null,\n    \"custom_testrail_bdd_scenario\": null,\n    \"custom_expected\": null,\n    \"custom_steps_separated\": [\n        {\n            \"content\": \"Step 1\",\n            \"expected\": \"Expected Result 1\",\n            \"additional_info\": \"\",\n            \"refs\": \"\"\n        },\n        {\n            \"content\": \"Step 2\",\n            \"expected\": \"Expected Result 2\",\n            \"additional_info\": \"\",\n            \"refs\": \"\"\n        },\n        {\n            \"shared_step_id\": 3,\n            \"content\": \"Shared step action\",\n            \"expected\": \"Shared step expected result\"\n        }\n    ],\n    \"custom_mission\": null,\n    \"custom_goals\": null,\n    \"comments\": []\n}<\/pre>\n<p><a href=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/creating-test-cases_02.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/creating-test-cases_02.png\" alt=\"\" width=\"1072\" height=\"779\" class=\"aligncenter size-full wp-image-24882\" srcset=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/creating-test-cases_02.png 1072w, https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/creating-test-cases_02-980x712.png 980w, https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/creating-test-cases_02-480x349.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1072px, 100vw\" \/><\/a><\/p>\n<h2>\u300cExploratory Session\u300d\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u7528\u3057\u305f\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306e\u4f5c\u6210<\/h2>\n<p>\u63a2\u7d22\u7684\u30c6\u30b9\u30c8\u306f\u3001\u6bd4\u8f03\u7684\u5236\u7d04\u306e\u5c11\u306a\u3044\u3084\u308a\u65b9\u3067\u30b7\u30b9\u30c6\u30e0\u3092\u52d5\u304b\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u304c\u7533\u3057\u5206\u306e\u306a\u3044\u72b6\u614b\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u306e\u306b\u975e\u5e38\u306b\u9069\u3057\u305f\u30c6\u30b9\u30c8\u6280\u8853\u3067\u3042\u308a\u3001\u30b7\u30b9\u30c6\u30e0\u3092\u7406\u89e3\u3059\u308b\u306e\u306b\u3082\u5f79\u7acb\u3061\u307e\u3059\u3002\u63a2\u7d22\u7684\u30c6\u30b9\u30c8\u3092\u5b9f\u65bd\u3057\u3066\u304a\u308a\u3001\u5f8c\u3067\u53c2\u7167\u3059\u308b\u305f\u3081\u306b\u63a2\u7d22\u7684\u30c6\u30b9\u30c8\u306e\u30c1\u30e3\u30fc\u30bf\u30fc\u3092 TestRail \u306b\u4fdd\u5b58\u3057\u305f\u3044\u5834\u5408\u3001\u6b21\u306e\u3088\u3046\u306a\u30b3\u30f3\u30c6\u30f3\u30c4 \u30dc\u30c7\u30a3\u3092\u4f7f\u7528\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><\/div>\n<div><strong><span class=\"api_verb api_post\">POST<\/span><\/strong> <span class=\"api_url\">index.php?\/api\/v2\/add_case\/{section_id}<\/span><\/div>\n<div>\n<pre><\/pre>\n<\/div>\n<div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\">curl -X POST \\\n  -u \"user@example.com:password\" \\ \n  -d \"@path\/to\/data.json\" \\ \n  \"https:\/\/example.testrail.io\/index.php?\/api\/v2\/add_case\/432\"<\/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>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">{\n    \"title\": \"My test case (exploratory)\",\n    \"template_id\": 3,\n    \"type_id\": 1,\n    \"priority_id\": 1,\n    \"estimate\": \"3m\",\n    \"refs\": \"TR-1, TR-2\",\n    \"custom_preconds\": \"My preconditions\",\n    \"custom_mission\": \"My exploratory test session mission\",\n    \"custom_goals\": \"Goals for my exploratory test session\"\n}<\/pre>\n<\/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 class=\"tab\"><\/div>\n<\/div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">{\n    \"id\": 4079,\n    \"title\": \"My test case (exploratory)\",\n    \"section_id\": 498,\n    \"template_id\": 3,\n    \"type_id\": 1,\n    \"priority_id\": 1,\n    \"milestone_id\": null,\n    \"refs\": \"TR-1, TR-2\",\n    \"created_by\": 18,\n    \"created_on\": 1684931263,\n    \"updated_by\": 18,\n    \"updated_on\": 1684931263,\n    \"estimate\": \"3m\",\n    \"estimate_forecast\": null,\n    \"suite_id\": 53,\n    \"display_order\": 3,\n    \"is_deleted\": 0,\n    \"case_assignedto_id\": null,\n    \"custom_automation_type\": null,\n    \"custom_preconds\": null,\n    \"custom_steps\": null,\n    \"custom_testrail_bdd_scenario\": null,\n    \"custom_expected\": null,\n    \"custom_steps_separated\": null,\n    \"custom_mission\": \"My exploratory test session mission\",\n    \"custom_goals\": \"Goals for my exploratory test session\",\n    \"comments\": []\n}<\/pre>\n<p><a href=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/creating-test-cases_03.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/creating-test-cases_03.png\" alt=\"\" width=\"1092\" height=\"466\" class=\"aligncenter size-full wp-image-24883\" srcset=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/creating-test-cases_03.png 1092w, https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/creating-test-cases_03-980x418.png 980w, https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/creating-test-cases_03-480x205.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1092px, 100vw\" \/><\/a><\/p>\n<h2>\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u306e\u30a4\u30f3\u30dd\u30fc\u30c8<\/h2>\n<p>\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u9818\u57df\u306e\u753b\u9762\u30b7\u30e7\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u624b\u9806\u3092\u3088\u308a\u8996\u899a\u7684\u306b\u3057\u305f\u308a\u3001\u30c6\u30b9\u30c8\u5b9f\u884c\u6642\u306b\u6f0f\u308c\u304c\u306a\u3044\u3088\u3046\u3001\u30c6\u30b9\u30c8\u56f3\u3084\u30de\u30a4\u30f3\u30c9\u30de\u30c3\u30d7\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u308a\u3057\u3066\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u8a2d\u8a08\u3092\u88dc\u5f37\u3059\u308b\u3053\u3068\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002\u6b21\u306e\u3088\u3046\u306b\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u4f7f\u7528\u3057\u3066\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u6dfb\u4ed8\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"callout callout--warning\">\n<p>[et_pb_text admin_label=&#8221;Note&#8221; _builder_version=&#8221;4.4.2&#8243; background_color=&#8221;#ffffdd&#8221; hover_enabled=&#8221;0&#8243; border_width_all=&#8221;1px&#8221; border_color_all=&#8221;#E1E163&#8243;]<\/p>\n<p>\u6700\u5927\u8a31\u5bb9\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9 \u30b5\u30a4\u30ba\u306f 256MB \u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>[\/et_pb_text]<\/p>\n<h3>\u30ea\u30af\u30a8\u30b9\u30c8<\/h3>\n<\/div>\n<div class=\"tabs\">\n<div><strong><span class=\"api_verb api_post\">POST\u3000<\/span><\/strong> <span class=\"api_url\">index.php?\/api\/v2\/add_attachment_to_case\/{case_id}<\/span><\/div>\n<\/div>\n<div><\/div>\n<div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">Content-Type: multipart\/form-data<\/pre>\n<\/div>\n<div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\">curl -X POST \\\n  -u \"user@example.com:password\" \\ \n  -H \"Content-Type: multipart\/form-data\" \\ \n  -F \"attachment=@path\/to\/image.jpg\" \\ \n  \"https:\/\/example.testrail.io\/index.php?\/api\/v2\/add_attachment_to_case\/42\"<\/pre>\n<\/div>\n<div class=\"tabs\">\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><span>\u4efb\u610f\u306e\u30d5\u30a1\u30a4\u30eb<\/span><\/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\">{ \"attachment_id\": \"758c9b26-6038-4147-9a4d-74cd7af1499a\" }<\/pre>\n<p>\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306e\u30c6\u30ad\u30b9\u30c8 \u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3059\u308b\u5834\u5408\u3001\u6b21\u306e\u30b5\u30f3\u30d7\u30eb\u306e\u3088\u3046\u306b\u3001\u30c6\u30ad\u30b9\u30c8\u3092\u66f4\u65b0\u3057\u3066\u30ea\u30f3\u30af\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\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_post\">POST\u3000<\/span><\/strong> <span class=\"api_url\">index.php?\/api\/v2\/update_case\/{case_id}<\/span><\/div>\n<\/div>\n<div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\">curl -X POST \\\n  -u \"user@example.com:password\" \\ \n  -d \"@path\/to\/data.json\" \\ \n  \"https:\/\/example.testrail.io\/index.php?\/api\/v2\/update_case\/4079\"<\/pre>\n<\/div>\n<div class=\"tabs\">\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>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">{\n    \"custom_goals\": \"Goals for my exploratory test session\\r\\n ![](index.php?\/attachments\/get\/758c9b26-6038-4147-9a4d-74cd7af1499a)\"\n}<\/pre>\n<\/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    \"id\": 4079,\n    \"title\": \"My test case (exploratory)\",\n    \"section_id\": 498,\n    \"template_id\": 3,\n    \"type_id\": 1,\n    \"priority_id\": 1,\n    \"milestone_id\": null,\n    \"refs\": \"TR-1, TR-2\",\n    \"created_by\": 18,\n    \"created_on\": 1684931263,\n    \"updated_by\": 18,\n    \"updated_on\": 1684931263,\n    \"estimate\": \"3m\",\n    \"estimate_forecast\": null,\n    \"suite_id\": 53,\n    \"display_order\": 3,\n    \"is_deleted\": 0,\n    \"case_assignedto_id\": null,\n    \"custom_automation_type\": null,\n    \"custom_preconds\": null,\n    \"custom_steps\": null,\n    \"custom_testrail_bdd_scenario\": null,\n    \"custom_expected\": null,\n    \"custom_steps_separated\": null,\n    \"custom_mission\": \"My exploratory test session mission\",\n    \"custom_goals\": \"Goals for my exploratory test session \\r\\n ![](index.php?\/attachments\/get\/758c9b26-6038-4147-9a4d-74cd7af1499a)\",\n    \"comments\": []\n}<\/pre>\n<\/div>\n<p><a href=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/creating-test-cases_04.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/creating-test-cases_04.png\" alt=\"\" width=\"1092\" height=\"669\" class=\"aligncenter size-full wp-image-24880\" srcset=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/creating-test-cases_04.png 1092w, https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/creating-test-cases_04-980x600.png 980w, https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/creating-test-cases_04-480x294.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1092px, 100vw\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306e\u8a2d\u8a08\u306f\u3055\u307e\u3056\u307e\u306a\u30c4\u30fc\u30eb\u3067\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u3001\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u3092\u751f\u6210\u3059\u308b\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u5bfe\u5fdc\u3059\u308b\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u3092TestRail \u5185\u306b\u81ea\u52d5\u4f5c\u6210\u3057\u3001\u30c6\u30b9\u30bf\u30fc\u304c\u305d [&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-24874","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/24874","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=24874"}],"version-history":[{"count":28,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/24874\/revisions"}],"predecessor-version":[{"id":25177,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/24874\/revisions\/25177"}],"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=24874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}