REST API: Test cases

Methods


TypeVer.Command parameterParameters
Getters
GET3.2+ getTestcaseForm testId=<id>
Example of success:

GET3.2+ getTestcaseDetails testcaseId=<id>
(opt.) frozen=<true|false>
Example of success:

GET3.2+ getTestcaseDetailsRevision testcaseId=<id>
revision=<revision>
Example of success:

GET3.2+ getTestcaseProcedure testcaseId=<id>
(opt.) frozen=<true|false>
Example of success:

Note:
The procedure is provided as an XML string properly formatted.
GET3.2+ getTestcaseProcedureRevision testcaseId=<id>
Example of success:

Note:
The procedure is provided as an XML string properly formatted.
GET3.0+ getTestcaseCustomFields testcaseId=<id>
Example of success:

GET3.0+ getTestcaseAttachments testcaseId=<id>
Example of success:

GET3.0+ getTestcaseRevisions testcaseId=<id>
Example of success:

GET3.0+ getTestcaseChanges testcaseId=<id>
Example of success:

GET3.3b5+ getTestcaseTest testcaseId=<id>
Example of success:

GET4.1b1+ getTestcaseParameters testcaseId=<id>
Example of success:

GET5+ getTestcaseResultsSteps testcaseId=<id>
Example of success:

GET5+ getTestcaseResultsHistory testcaseId=<id>
Example of success:

GET6+ getTestcaseFreezeStatus testcaseId=<id>
Example of success:

Setters
POST3.2+createTestcase testId=<id>
Content of the form with values
(see getTestcaseForm)
must be passed in the request's body
as multi-part.
Example of success:

Note:
The procedure attribute (id=50) must be passed as a string containing an XML of the form:
	<object type="root">
		<object type="step" description="do this">
			<object type="parameters">
				<object type="parameter" description="param1=xxx"/>
				<object type="parameter" description="param2=yyy"/>
			</object>
			<object type="checks">
				<object type="operator" operator="and">
					<object type="check" description="check one thing"/>
					<object type="check" description="check another thing"/>
				</object>
			</object>
		</object>
		<object type="step" description="do that">
			<object type="parameters"/>
			<object type="checks">
				<object type="operator" operator="and">
					<object type="check" description="check again another thing"/>
				</object>
			</object>
		</object>
	</object>
		

The params attribute (id=60) must be passed as a string containing an XML of the form:
	<combinations>
		<params>
			<param id="12" type="1" name="os"/>
			<param id="11" type="1" name="browser"/>
			<param id="29" type="1" name="url"/>
		</params>
		<row>
			<col value="windows"/>
			<col value="firefox"/>
			<col value="www.xqual.com"/>
		</row>
		<row>
			<col value="linux"/>
			<col value="safari"/>
			<col value="www.xqual.fr"/>
		</row>
		<row>
			<col value="windows"/>
			<col value="ie8"/>
			<col value="www.xqual.org"/>
		</row>
	</combinations>
		
POST3.2+updateTestcaseDetails Content of the form with values
(see getTestcaseDetails or getTestcaseReferencingReusbaleTestcaseDetails)
must be passed in the request's body
as multi-part.
Example of success:

Example of failure:
POST5+updateTestcasesReadyForManualExecution testcaseIds=<id, id, ...>
readyForManualExecution==<true|false>
Example of success:

Example of failure:
POST5+updateTestcasesReadyForAutomatedExecution testcaseIds=<id, id, ...>
readyForAutomatedExecution==<true|false>
Example of success:

Example of failure:
POST3.2+updateTestcaseProcedure Content of the form with values
(see getTestcaseProcedure)
must be passed in the request's body
as multi-part.
Example of success:

Example of failure:
POST4.1+insertTestcaseParameterValue testcaseId=<id>
parameterType=<parameterType>
parameterId=<id>
parameterValue=<value>
Example of success:

Example of failure:
POST4.1+removeTestcaseParameterValue testcaseId=<id>
parameterType=<parameterType>
parameterId=<id>
Example of success:

Example of failure:
POST3.2+insertTestcaseCustomFieldValue testcaseId=<id>
type=<customFieldType>
customFieldId=<id>
customFieldValue=<value>...
Example of success:

POST3.3b5+copyTestcases testcaseIds=<id, id, ...>
testcaseNames=<name, name, ...>
destTestId=<id>
Example of success:

POST9+copyReusableTestcases reusableTestcaseIds=<id, id, ...>
reusableTestcaseNames=<name, name, ...>
destParentFolderId=<id>
Example of success:

POST3.0+freezeTestcase testcaseId=<id>
Example of success:

POST3.0+unfreezeTestcase testcaseId=<id>
Example of success:

GET? signTestcase
Example of success:

POST3.0+deleteTestcases testcaseIds=<id, id, ...>
Example of success: