Testopia:Documentation:XMLRPC:TestCaseRun: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Replacing page with ' see http://landfill.bugzilla.org/testopia2/docs/html/api/Bugzilla/WebService/Testopia/TestCaseRun.html')
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOEDITSECTION__
see http://landfill.bugzilla.org/testopia2/docs/html/api/Bugzilla/WebService/Testopia/TestCaseRun.html
Back to [[Testopia:Documentation:XMLRPC |Testopia XML-RPC API]]
 
==TestCaseRun==
 
===Description===
A test case run is a record in the test_case_runs table which joins test cases to test runs. Basically, for each test run a selction of
test cases is made to be included in that run. As a test run progresses, testers set statuses on each of the cases in the run.
 
===Hiearchy===
Bugzilla::WebService::Testopia::TestCaseRun
 
===Attributes===
 
{| border=1 cellpadding=4
| '''Attribute''' || '''Data Type''' || '''Comments'''
|-
| assignee || string ||
|-
| build_id || integer ||
|-
| case_id || integer ||
|-
| case_run_id || integer ||
|-
| case_run_status || string || IDLE, PASSED, FAILED, RUNNING, PAUSED, BLOCKED
|-
| case_text_version || integer ||
|-
| close_date || string || Format: yyyy-mm-dd hh:mm:ss
|-
| iscurrent || integer ||
|-
| notes || string ||
|-
| run_id || integer ||
|-
| sortkey || string ||
|-
| testedby || string ||
|-
|}
 
 
===Methods===
 
----
====get - Get A TestCaseRun by ID====
----
 
=====Usage=====
TestCaseRun.get
 
=====Parameters=====
{| border=1 cellpadding=4
| '''Parameter''' || '''Data Type''' || '''Comments'''
|-
| case_id || integer || Must be greater than 0.
|-
|}
 
 
=====Result=====
A hash map of key/value pairs for the attributes listed above or a hash map containing values for the keys, "faultcode" and "faultstring".
 
 
 
----
 
====list - Get A List of TestCaseRuns Based on A Query====
----
 
=====Usage=====
TestCaseRun.list
 
=====Parameters=====
{| border=1 cellpadding=4
| '''Parameter''' || '''Data Type''' || '''Comments'''
|-
| query || string || Can not be null or an empty string.  See [[Bugzilla_XML-RPC_API_Query_Examples |Query Examples]].
|-
|}
 
 
=====Result=====
An array of TestCaseRun hash maps or a hash map containing values for the keys, "faultcode" and "faultstring".
 
 
----
====create - Create A New TestCaseRun====
----
 
=====Usage=====
TestCaseRun.create
 
=====Parameters=====
{| border=1 cellpadding=4
| '''Parameter''' || '''Data Type''' || '''Comments'''
|-
| new_values || hashmap || See required attributes list<sup>1</sup> below.
|-
|}
 
<sup>1</sup> Required attributes: assignee, build_id, case_id, case_text_version, and run_id
 
 
=====Result=====
An integer value representing the new test case run id or a hash map containing values for the keys, "faultcode" and "faultstring".
 
 
 
----
====update - Update An Existing TestCaseRun====
----
 
=====Usage=====
TestCaseRun.update
 
=====Parameters=====
{| border=1 cellpadding=4
| '''Parameter''' || '''Data Type''' || '''Comments'''
|-
| run_id || integer ||
|-
|-
| case_id || integer ||
|-
|-
| build_id || integer ||
|-
|-
| new_values || hashmap || run_id, case_id, and build_id can not be modified.
|-
|}
 
 
=====Result=====
The integer value, 0, on success or a hash map containing values for the keys, "faultcode" and "faultstring".
 
 
 
<br>Back to the [[Testopia |Testopia Main Page]]

Latest revision as of 17:10, 23 June 2008