JiTest Testmanagement REST API

Base URL: /rest/jitest/latest, Version: 2.1.0

The JiTest Testmenagement REST API enables you to include automated test runs and manage test cases / executions and their results via simple REST calls.

Schemes: http

Summary

Tag: plan

Operation Description
GET /plan/flatAll/{issueid}

retrieve the list of all test case of the plan with given key (recursively)

POST /plan/createReportFromPlan/{issueid}

creates a new empty test report from the plan with given key

GET /plan/export/{issueid}

exports the plan's details and all testcases and their details and steps as XMl or HTML

POST /plan/update/{issueid}

update JiTPlanChildren customfield of the plan with given key

Tag: steps

Operation Description
POST /steps/state/{issueid}

updates the overall state of the test execution

POST /steps/updateTestcaseFromExecution/{issueid}

updates the list of steps of the parent test case with steps from execution with given key

GET /steps/{issueid}

retrieve the list of steps of this test case or test execution as JSON array

POST /steps/{issueid}

updates the list of steps of this test case or test execution

Tag: report

Operation Description
GET /report/flatAll/{issueid}

retrieve the list of all test executions of the report with given key

POST /report/retestReport/{issueid}

clones a given test report for retesting all failed or not executed executions omitting all passed executions of the original report

POST /report/updateFromPlan/{issueid}

adds new executions to given report for all test cases that have been added to the given plan since the report has been created

GET /report/export/{issueid}

retrieve an report document of the report with given key with given format

Tag: suite

Operation Description
GET /suite/flatAll/{issueid}

retrieve the list of all nodes of the suite with given key (recursively)

GET /suite/treeAll/{issueid}

retrieve all nodes of the suite with given key as JSON tree with suites marked and childrens listed in each node

GET /suite/testCasesOfProjectFromSuite/{suiteid}

retrieve all suites and test cases of current project the suite with given key belongs to

Paths

creates a new empty test report from the plan with given key

POST /plan/createReportFromPlan/{issueid}

Tags: plan

No @param tag found for this parameter

issueid

key of the plan

path string
200 OK

Returned if the new report has been created successfully

400 Bad Request

Returned if the given issue key is null or empty or if the issue is no plan type

403 Forbidden

Returned if the user has no create rights on the project

500 Internal Server Error

Returned if any error happened while creating the report or if the plan has no affected version set

exports the plan's details and all testcases and their details and steps as XMl or HTML

GET /plan/export/{issueid}

Tags: plan
issueid

key of the plan

path string
format

format of the exported document (XML or HTML)

query string
200 OK

Returned if the export document has been created successfully

400 Bad Request

Returned if the given issue key is null or empty or if the issue is no plan type

500 Internal Server Error

Returned if any error happened while creating the export document

retrieve the list of all test case of the plan with given key (recursively)

GET /plan/flatAll/{issueid}

Tags: plan
issueid

key of the plan

path string
200 OK

Returned if the list of test cases has been returned sucessfully

400 Bad Request

Returned if the given issue key is null or empty

403 Forbidden

Returned if the user has no browse rights on the project

500 Internal Server Error

Returned if any error happened while looking up the test cases

update JiTPlanChildren customfield of the plan with given key

POST /plan/update/{issueid}

Tags: plan

No @param tag found for this parameter

issueid

key of the plan

path string
200 OK

Returned if the custom field of the plan has been updated successfully

400 Bad Request

Returned if the given issue key is null or empty or if the issue is not a JiTTestPlan issue

403 Forbidden

Returned if the user has no edit rights on the plan

500 Internal Server Error

Returned if any error happened while updating the custom field

retrieve an report document of the report with given key with given format

GET /report/export/{issueid}

Tags: report
issueid

key of the report

path string
format

specifies in which format the report shall be exported. One of xml, html, xlsx

query string
200 OK

Returned if the report has been exported successfully

400 Bad Request

Returned if the given issue key is null or empty or the issue is no report issue

500 Internal Server Error

Returned if any error happened while exporting the report or the format has an invalid value

retrieve the list of all test executions of the report with given key

GET /report/flatAll/{issueid}

Tags: report
issueid

key of the report

path string
200 OK

Returned if the list of test executions has been returned sucessfully

400 Bad Request

Returned if the given issue key is null or empty

500 Internal Server Error

Returned if any error happened while looking up the test executions

clones a given test report for retesting all failed or not executed executions omitting all passed executions of the original report

POST /report/retestReport/{issueid}

Tags: report
issueid

key of the original report

path string
200 OK

Returned if the new report has been created successfully

400 Bad Request

Returned if the given issue key is null or empty or if the issue is no report type

403 Forbidden

Returned if the user has no create rights on the project

500 Internal Server Error

Returned if any error happened while creating the report

adds new executions to given report for all test cases that have been added to the given plan since the report has been created

POST /report/updateFromPlan/{issueid}

Tags: report
issueid

key of the report

path string
200 OK

Returned if the report has been updated successfully

400 Bad Request

Returned if the given issue key is null or empty or if the issue is no report type

403 Forbidden

Returned if the user has no create rights on the project

500 Internal Server Error

Returned if any error happened while updating the report

updates the overall state of the test execution

POST /steps/state/{issueid}

Tags: steps

Helper method to ease updaing the JiTExecutionState customfield

new state string value to be set. Must be one of ["Not executed", "Passed", "Failed", "Blocked", "Work in progress"]

issueid

key of the test execution

path string
200 OK

Returned if the overall state has been updated sucessfully

400 Bad Request

Returned if the given issue key is null or empty or issue is no execution issue

403 Forbidden

Returned if the user has no edit rights

500 Internal Server Error

Returned if any error happened while updating the overall state

updates the list of steps of the parent test case with steps from execution with given key

POST /steps/updateTestcaseFromExecution/{issueid}

Tags: steps
issueid

key of the test execution to update the parent test case from

path string
200 OK

Returned if the list of test steps has been updated sucessfully

400 Bad Request

Returned if the given issue key is null or empty

403 Forbidden

Returned if the user has no edit rights

500 Internal Server Error

Returned if any error happened while looking up or writing the steps

retrieve the list of steps of this test case or test execution as JSON array

GET /steps/{issueid}

Tags: steps

Helper method to ease retrival of the JiTSteps customfield

issueid

key of the test case or test execution

path string
200 OK

Returned if the list of test steps has been returned sucessfully

400 Bad Request

Returned if the given issue key is null or empty

500 Internal Server Error

Returned if any error happened while looking up the steps

updates the list of steps of this test case or test execution

POST /steps/{issueid}

Tags: steps

Helper method to ease updating the JiTSteps customfield

stringified JSON array (rows) of an JSON array (cols) containing the cells data as Strings e.g. [["1", "Step1", "Comment 1"], ["2", "Step2", "Comment 2"], ... ]

issueid

key of the test case or test execution

path string
200 OK

Returned if the list of test steps has been updated sucessfully

400 Bad Request

Returned if the given issue key is null or empty

403 Forbidden

Returned if the user has no edit rights

500 Internal Server Error

Returned if any error happened while looking up the steps

retrieve the list of all nodes of the suite with given key (recursively)

GET /suite/flatAll/{issueid}

Tags: suite
issueid

key of the suite

path string
200 OK

Returned if the list of nodes has been returned sucessfully

400 Bad Request

Returned if the given issue key is null or empty

403 Forbidden

Returned if the user has no browse rights on the project

500 Internal Server Error

Returned if any error happened while looking up the nodes

retrieve all suites and test cases of current project the suite with given key belongs to

GET /suite/testCasesOfProjectFromSuite/{suiteid}

Tags: suite
suiteid

key of the suite

path string
200 OK

Returned if the list of test cases and suites has been updated sucessfully

400 Bad Request

Returned if the given issue key is null or empty

403 Forbidden

Returned if the user has no browse rights on the project

500 Internal Server Error

Returned if any error happened while looking up the nodes

retrieve all nodes of the suite with given key as JSON tree with suites marked and childrens listed in each node

GET /suite/treeAll/{issueid}

Tags: suite
issueid

key of the suite

path string
200 OK

Returned if the nodes tree has been returned sucessfully

400 Bad Request

Returned if the given issue key is null or empty

403 Forbidden

Returned if the user has no browse rights on the project

500 Internal Server Error

Returned if any error happened while looking up the nodes

Schema definitions

et.seleniet.jitest.rest.pojo.GetStepsResponse: object

status: string

status of the REST request. Either "sucess" or "failed"

"success"
                                                        
details: string

in case of failed status this field will contain details about the failure

issueid: string

returns the key of the issue

"QA-12"
                                                        
teststeps: string

returns the steps as JSON array (rows) of arrays (columns)

[
[
"1",
"Step1",
"Comment 1"
],
[
"2",
"Step2",
"Comment 2"
],
"..."
]

et.seleniet.jitest.rest.pojo.RESTResponse: object

status: string

status of the REST request. Either "sucess" or "failed"

"success or failure"
                                                        
details: string

in case of failed status this field will contain details about the failure

"in case of failure a detailed failure message else empty"
                                                        

JavaStringStringMap: object

string