def filter(query): # pylint: disable=redefined-builtin """ .. function:: XML-RPC TestCaseRunStatus.filter(query) Search and return the list of test case run statuses. :param query: Field lookups for :class:`tcms.testruns.models.TestCaseRunStatus` :type query: dict :return: Serialized list of :class:`tcms.testruns.models.TestCaseRunStatus` objects :rtype: list(dict) """ return TestCaseRunStatus.to_xmlrpc(query)
def get_case_run_status(request, id=None): """ Params: $case_run_status_id - Integer(Optional): ID of the status to return Returns: Hash: Matching case run status object hash when your specific the case_run_status_id or return all of case run status. It will return error the case run status you specific id not found. Example: # Get all of case run status >>> TestCaseRun.get_case_run_status() # Get case run status by ID 1 >>> TestCaseRun.get_case_run_status(1) """ if id: return TestCaseRunStatus.objects.get(id=id).serialize() return TestCaseRunStatus.to_xmlrpc()
def get_case_run_status(request, id=None): """ Params: $case_run_status_id - Integer(Optional): ID of the status to return Returns: Hash: Matching case run status object hash when your specific the case_run_status_id or return all of case run status. It will return error the case run status you specific id not found. Example: # Get all of case run status >>> TestCaseRun.get_case_run_status() # Get case run status by ID 1 >>> TestCaseRun.get_case_run_status(1) """ if id: return TestCaseRunStatus.objects.get(id=id).serialize() return TestCaseRunStatus.to_xmlrpc()
def get_case_run_status(request, case_run_status_id=None): """Get case run status :param int case_run_status_id: optional case run status ID. :return: a mapping representing a case run status of specified ID. Otherwise, a list of mappings of all case run status will be returned, if ``case_run_status_id`` is omitted. :rtype: dict or list[dict] Example:: # Get all of case run status >>> TestCaseRun.get_case_run_status() # Get case run status by ID 1 >>> TestCaseRun.get_case_run_status(1) """ if case_run_status_id: return TestCaseRunStatus.objects.get(pk=case_run_status_id).serialize() return TestCaseRunStatus.to_xmlrpc()
def get_case_run_status(request, case_run_status_id=None): """Get case run status :param int case_run_status_id: optional case run status ID. :return: a mapping representing a case run status of specified ID. Otherwise, a list of mappings of all case run status will be returned, if ``case_run_status_id`` is omitted. :rtype: dict or list[dict] Example:: # Get all of case run status >>> TestCaseRun.get_case_run_status() # Get case run status by ID 1 >>> TestCaseRun.get_case_run_status(1) """ if case_run_status_id: return TestCaseRunStatus.objects.get(pk=case_run_status_id).serialize() return TestCaseRunStatus.to_xmlrpc()