API: Tests
Use the following API methods to request details about test cases and to create or update test cases.
get_case
Use this method to request a specific test case.
Method: get_case HTTP: GET URL: index.php?/miniapi/get_case/<case_id> Result: The requested test case
get_cases
This method allows your request all cases of a test suite or of a specific section.
Method: get_cases HTTP: GET URL: index.php?/miniapi/get_cases/<suite_id>/<section_id> Result: The cases for the given test suite. Pass in the ID of a section to limit the result to the test cases of the given section (optional).
add_case
Use this method to create a new test case.
Method: add_case HTTP: POST URL: index.php?/miniapi/add_case/<section_id> Result: ID of the test case
Post arguments:
- title (required) - type_id - priority_id - estimate - milestone_id - refs - custom fields can be added with their system names, prefixed with 'custom_', e.g.: custom_preconds: .. custom_steps: .. custom_expected: ..
update_case
Use this method to update an existing test case.
Method: update_case HTTP: POST URL: index.php?/miniapi/update_case/<case_id> Result: None
Post arguments:
- title (required) - type_id - priority_id - estimate - milestone_id - refs - custom fields can be updated with their system names, prefixed with 'custom_', e.g.: custom_preconds: .. custom_steps: .. custom_expected: ..
