{"id":24215,"date":"2023-09-14T11:36:57","date_gmt":"2023-09-14T02:36:57","guid":{"rendered":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/801\/?page_id=24215"},"modified":"2023-09-20T18:36:10","modified_gmt":"2023-09-20T09:36:10","slug":"cli-reference","status":"publish","type":"page","link":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/801\/test-automation\/testrail-cli\/cli-reference\/","title":{"rendered":"CLI \u30ea\u30d5\u30a1\u30ec\u30f3\u30b9"},"content":{"rendered":"<h2 id=\"01G80RDR0SGW6Q22T4J9R2ME7R\">\u5168\u822c<\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\">$ trcli --help\nTestRail CLI v1.6.0\nCopyright 2021 Gurock Software GmbH - www.gurock.com\nUsage: trcli [OPTIONS] COMMAND [ARGS]...\n\n  TestRail CLI<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\">$ trcli parse_junit --help\nTestRail CLI v1.6.0\nCopyright 2021 Gurock Software GmbH - www.gurock.com\nUsage: trcli parse_junit [OPTIONS]\n\n  Parse JUnit report and upload results to TestRail\n\nOptions:\n  -f, --file          Filename and path.\n  --close-run         Close the newly created run\n  --title             Title of Test Run to be created in TestRail.\n  --case-matcher      Mechanism to match cases between the report and\n                      TestRail.\n  --suite-id          Suite ID to submit results to.  [x&gt;=1]\n  --suite-name        Suite name to submit results to.\n  --run-id            Run ID for the results they are reporting (otherwise the\n                      tool will attempt to create a new run).  [x&gt;=1]\n  --plan-id           Plan ID with which the Test Run will be associated.\n                      [x&gt;=1]\n  --config-ids        Comma-separated configuration IDs to use along with Test\n                      Plans (i.e.: 34,52).\n  --milestone-id      Milestone ID to which the Test Run should be associated\n                      to.  [x&gt;=1]\n  --section-id        Section ID to create new sections with test cases under\n                      (optional).  [x&gt;=1]\n  --run-description   Summary text to be added to the test run.\n  --case-fields       List of case fields and values for new test cases\n                      creation. Usage: --case-fields type_id:1 --case-fields\n                      priority_id:3\n  --result-fields     List of result fields and values for test results\n                      creation. Usage: --result-fields custom_field_a:value1\n                      --result-fields custom_field_b:3\n  --allow-ms          Allows using milliseconds for elapsed times.\n  --special-parser    Optional special parser option for specialized JUnit\n                      reports.\n  --help              Show this message and exit.<\/pre>\n<h2 id=\"01G80RDR0SXAE7NKG8CYTDBYD3\">JUnit \u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306e\u89e3\u6790 (\u7d50\u679c\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9)<\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\">$ trcli parse_junit --help\nTestRail CLI v1.6.0\nCopyright 2021 Gurock Software GmbH - www.gurock.com\nUsage: trcli parse_junit [OPTIONS]\n\n  Parse JUnit report and upload results to TestRail\n\nOptions:\n  -f, --file          Filename and path.\n  --close-run         Close the newly created run\n  --title             Title of Test Run to be created in TestRail.\n  --case-matcher      Mechanism to match cases between the report and\n                      TestRail.\n  --suite-id          Suite ID to submit results to.  [x&gt;=1]\n  --suite-name        Suite name to submit results to.\n  --run-id            Run ID for the results they are reporting (otherwise the\n                      tool will attempt to create a new run).  [x&gt;=1]\n  --plan-id           Plan ID with which the Test Run will be associated.\n                      [x&gt;=1]\n  --config-ids        Comma-separated configuration IDs to use along with Test\n                      Plans (i.e.: 34,52).\n  --milestone-id      Milestone ID to which the Test Run should be associated\n                      to.  [x&gt;=1]\n  --section-id        Section ID to create new sections with test cases under\n                      (optional).  [x&gt;=1]\n  --run-description   Summary text to be added to the test run.\n  --case-fields       List of case fields and values for new test cases\n                      creation. Usage: --case-fields type_id:1 --case-fields\n                      priority_id:3\n  --result-fields     List of result fields and values for test results\n                      creation. Usage: --result-fields custom_field_a:value1\n                      --result-fields custom_field_b:3\n  --allow-ms          Allows using milliseconds for elapsed times.\n  --special-parser    Optional special parser option for specialized JUnit\n                      reports.\n  --help              Show this message and exit.<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5168\u822c $ trcli &#8211;help TestRail CLI v1.6.0 Copyright 2021 Gurock Software GmbH &#8211; www.gurock.com Usage: trcli [OPTIO [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":24151,"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-24215","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/801\/wp-json\/wp\/v2\/pages\/24215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/801\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/801\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/801\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/801\/wp-json\/wp\/v2\/comments?post=24215"}],"version-history":[{"count":4,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/801\/wp-json\/wp\/v2\/pages\/24215\/revisions"}],"predecessor-version":[{"id":25435,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/801\/wp-json\/wp\/v2\/pages\/24215\/revisions\/25435"}],"up":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/801\/wp-json\/wp\/v2\/pages\/24151"}],"wp:attachment":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/801\/wp-json\/wp\/v2\/media?parent=24215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}