Back to QMetry Open API v2.3 Product Home Page
Back to QMetry Products Help Page

Test Case



Create test case

POST /testcase

Description

Create test case.


Parameters

TypeNameDescriptionRequiredSchemaDefault

BodyParameter

body

Test case object which needs to create.

true

JiraCreateIssueDetails



Responses

HTTP CodeDescriptionSchema

200

Successful operation.

No Content

400

Returned if the given request data is invalid.

No Content

403

Returned if the currently athenticated user does not have permission to create test case.

No Content

404

Returned if the required request data is not provided.

No Content

500

Returned if there is some problem while creating test case.

No Content


Consumes

  • application/json


Produces

  • application/json


Tags

  • Test Case


Get test cases linked with given test scenario

GET /testcase

Description

Get list of test cases by test scenario issue id.


Parameters

TypeNameDescriptionRequiredSchemaDefault

QueryParameter

testScenarioIssueId

Issue id of test scenario

true

integer (int64)


QueryParameter

expand

Comma-separated list of entities that you want expanded.Possible values are stepunit and metadata

false

string


QueryParameter

maxResults

Maximum number of stepunits to return in each call.Maximum possible value is 50. By default maximum value will be returned.

false

integer (int32)

50

QueryParameter

offset

Index of the first stepunit to return.Default is 0.

false

integer (int32)

0

QueryParameter

searchText

Serch Test Case within scenario by key or summary

false

string



Responses

HTTP CodeDescriptionSchema

200

Successful operation.

No Content

400

Returned if the given test scenario issue id or expand is invalid

No Content

403

Returned if the currently athenticated user does not have permission to access given test scenario

No Content

404

Returned if the given test scenario is not found.

No Content

500

Returned if there is some problem in retrieval of test cases.

No Content


Consumes

  • application/json


Produces

  • application/json


Tags

  • Test Case


Link test case in bulk to test scenario

PUT /testcase/link

Description

Link test case in bulk with given test scenario.


Parameters

TypeNameDescriptionRequiredSchemaDefault

QueryParameter

testScenarioIssueId

Issue id of test scenario.

true

integer (int64)


BodyParameter

body

An array of test case issue ids.

true

TestCaseIssueIdsRequest



Responses

HTTP CodeDescriptionSchema

200

Successful operation

No Content

400

Returned if the given test scenario issue id / test case issue id is invalid.

No Content

403

Returned if the currently authenticated user does not have permission to associate test case.

No Content

404

Returned if the test scenario or test case issue ids are not provided.

No Content

500

Returned if exception occured during linking of test case.

No Content


Consumes

  • application/json


Produces

  • application/json


Tags

  • Test Case


Copy test steps of given test case to another test case

PUT /testcase/{copyFromTestCaseIssueId}/copyteststep

Description

All the test steps from given test case will get copied to another test case.


Parameters

TypeNameDescriptionRequiredSchemaDefault

PathParameter

copyFromTestCaseIssueId

Issue id of test case from which you want to copy test steps

true

integer (int64)


QueryParameter

copyToTestCaseIssueId

Issue id of test case in which you want to test steps.

true

integer (int64)



Responses

HTTP CodeDescriptionSchema

200

Successful operation.

No Content

400

Returned if given test case issue id is invalid.

No Content

403

Returned if currently authenticated user does not have permission to access given test case.

No Content

404

Returned if test case issue id not provided.

No Content

500

Returned if there is some problem in copying test steps.

No Content


Consumes

  • application/json


Produces

  • application/json


Tags

  • Test Case


Delete a test case

DELETE /testcase/{issueId}/delete

Description

Delete a test case issue.


Parameters

TypeNameDescriptionRequiredSchemaDefault

PathParameter

issueId

Issue id of test case

true

integer (int64)



Responses

HTTP CodeDescriptionSchema

200

Successful operation.

No Content

400

Returned if given test case issue id is invalid.

No Content

403

Returned if currently authenticated user does not have permission to delete test case.

No Content

500

Returned if there is some problem in deleting test case.

No Content


Consumes

  • application/json


Produces

  • application/json


Tags

  • Test Case


Get a test case details

GET /testcase/{testCaseIssueId}

Description

Get a test case details.


Parameters

TypeNameDescriptionRequiredSchemaDefault

PathParameter

testCaseIssueId

Issue id of test case.

true

integer (int64)


QueryParameter

expand

Comma-separated list of entities that you want expanded.Possible values are metadata and stepunit.

false

string



Responses

HTTP CodeDescriptionSchema

200

Successful operation.

No Content

400

Returned if the given test case issue id is invalid.

No Content

403

Returned if the currently athenticated user does not have permission to access given test case.

No Content

500

Returned if exception occured during retrieval of test case details.

No Content


Produces

  • application/json


Tags

  • Test Case


Get execution summary of given test case

GET /testcase/{testCaseIssueId}/executionresultsummary

Description

Return count of given test case executions group by execution result.


Parameters

TypeNameDescriptionRequiredSchemaDefault

PathParameter

testCaseIssueId

Issue id of test case.

true

integer (int64)



Responses

HTTP CodeDescriptionSchema

200

Successful operation.

No Content

400

Returned if the given test case issue id is invalid.

No Content

403

Returned if the currently authenticated user does not have permission to access given test case.

No Content

500

Returned if there is some problem occured during retrieval of test case.

No Content


Produces

  • application/json


Tags

  • Test Case


Get stories linked with given test case

GET /testcase/{testCaseIssueId}/issues

Description

Get list of stories linked with given test case.


Parameters

TypeNameDescriptionRequiredSchemaDefault

PathParameter

testCaseIssueId

Issue id of test case

true

integer (int64)


QueryParameter

expand

Comma-separated list of entities that you want expanded.Possible value is metadata.

false

string


QueryParameter

maxResults

Maximum number of stories to return.Maximum possible value is 50. By default maximum value will be returned.

false

integer (int32)

50

QueryParameter

offset

Index of the first story to return.Default is 0.

false

integer (int32)

0


Responses

HTTP CodeDescriptionSchema

200

Successful operation.

No Content

400

Returned if the given test case issue is invalid.

No Content

403

Returned if the currently athenticated user does not have permission to access given test case.

No Content

500

Returned if exception occured during retrieval of stories.

No Content


Produces

  • application/json


Tags

  • Test Case


Link test case with test scenario

PUT /testcase/{testCaseIssueId}/link

Description

Link test case with given test scenario.


Parameters

TypeNameDescriptionRequiredSchemaDefault

PathParameter

testCaseIssueId

Issue id of test case.

true

integer (int64)


QueryParameter

testScenarioIssueId

Issue id of test scenario.

true

integer (int64)



Responses

HTTP CodeDescriptionSchema

200

Successful operation.

No Content

400

Returned if the given test scenario issue id / test case issue id is invalid.

No Content

403

Returned if the currently athenticated user does not have permission to link test case with given test scenario.

No Content

404

Returned if the given test scenario issue id is not found.

No Content

500

Returned if there is some problem in linking test case with test scenario.

No Content


Consumes

  • application/json


Produces

  • application/json


Tags

  • Test Case


Move a test case

PUT /testcase/{testCaseIssueId}/move

Description

Move a test case to given position.


Parameters

TypeNameDescriptionRequiredSchemaDefault

PathParameter

testCaseIssueId

Issue id of test case

true

integer (int64)


QueryParameter

oldPos

Current position of test case. It is required as in one test scenario same test case can be linked twice.

true

integer (int32)


QueryParameter

newPos

New position of test case

true

integer (int32)


QueryParameter

testScenarioIssueId

Issue id of test scenario

true

integer (int64)



Responses

HTTP CodeDescriptionSchema

200

Successful operation.

No Content

400

Returned if request data is invalid.

No Content

403

Returned if currently authenticated user does not have permission to edit given test case.

No Content

404

Returned if required params are not provided.

No Content

500

Returned if there is some problem in moving test case.

No Content


Produces

  • application/json


Tags

  • Test Case


Get test case execution history

GET /testcase/{testCaseIssueId}/runs

Description

Get test case’s execution history along with story,test scenario, platform, execution result, executed by and associated defects.


Parameters

TypeNameDescriptionRequiredSchemaDefault

PathParameter

testCaseIssueId

Issue id of test case.

true

integer (int64)


QueryParameter

maxResults

Maximum number of test cases to return in each call. Maximum possible value is 50. By default maximum value will be returned.

false

integer (int32)

50

QueryParameter

offset

Index of the first test cases to return.Default is 0.

false

integer (int32)

0


Responses

HTTP CodeDescriptionSchema

200

Successful operation.

No Content

400

Returned if the given test case issue id is invalid.

No Content

403

Returned if the currently authenticated user does not have permission to access given test case.

No Content

500

Returned if there is some problem in retrieval of test case issues.

No Content


Produces

  • application/json


Tags

  • Test Case


Get test scenarios linked with given test case

GET /testcase/{testCaseIssueId}/testscenario

Description

Get list of test scenarios linked with given test case.


Parameters

TypeNameDescriptionRequiredSchemaDefault

PathParameter

testCaseIssueId

Issue id of test case

true

integer (int64)


QueryParameter

expand

Comma-separated list of entities that you want expanded.Possible value is metadata.

false

string


QueryParameter

maxResults

Maximum number of test scenarios to return.Maximum possible value is 50. By default maximum value will be returned.

false

integer (int32)

50

QueryParameter

offset

Index of the first test scenario to return.Default is 0.

false

integer (int32)

0


Responses

HTTP CodeDescriptionSchema

200

Successful operation.

No Content

400

Returned if the given test case issue is invalid.

No Content

403

Returned if the currently athenticated user does not have permission to access given test case.

No Content

500

Returned if exception occured during retrieval of test scenarios.

No Content


Produces

  • application/json


Tags

  • Test Case


Un-link test case from given test scenario

DELETE /testcase/{testCaseIssueId}/unlink

Description

Un-link test case from given test scenario. You need to provide either map id or issue ids of both test case and test scenario along with test case seq no.


Parameters

TypeNameDescriptionRequiredSchemaDefault

PathParameter

testCaseIssueId

Issue id of test case.

true

integer (int64)


QueryParameter

mapId

Map id of test scenario with test case.

false

integer (int64)


QueryParameter

testScenarioIssueId

Issue id of test scenario.

false

integer (int64)


QueryParameter

seqNo

Sequence number of test case.

false

integer (int64)



Responses

HTTP CodeDescriptionSchema

200

Successful operation.

No Content

400

Returned if the given request data is invalid.

No Content

403

Returned if the currently athenticated user does not have permission to unlink given test case.

No Content

404

Returned if the given test scenario is not found.

No Content

500

Returned if there is some problem in unlinking test case.

No Content


Consumes

  • application/json


Produces

  • application/json


Tags

  • Test Case

JiraCreateIssueDetails

NameDescriptionRequiredSchemaDefault

summary

Issue summary

true

string


projectId

Project Id

true

string


reporter

Reporter of issue

false

string


duedate

Due Date associated to issue

false

string


description

Issue description

false

string


assignee

Assignee of Issue

false

string


priority

Issue priority

false

string


versions

An array of version ids.

false

string array


labels

An array of labels associated to issue

false

string array


components

An array of component ids.

false

string array



TestCaseIssueIdsRequest

NameDescriptionRequiredSchemaDefault

testCaseIds

Array of testCaseIds

true

integer (int64) array


jql


false

string


Back to QMetry Open API v2.3 Product Home Page
Back to QMetry Products Help Page