Skip to content

support testRail.cases().list(projectId, suiteId) API #3

Open
@alexeyOnGitHub

Description

@alexeyOnGitHub

I see this API for loading cases:

    client.cases().list(projectId, suiteId, customCaseFields).execute();

which is not consistent with other calls, like

    client.milestones().list(projectId).execute();

why is there a need to provide a list of customCaseFields to this method?
the following REST API call returns list of cases with all custom fields set:

"index.php?/api/v2/get_cases/" + projectId + "&suite_id=" + suiteId

according to TestRail REST API documentation, custom fields returned start with "custom_" prefix. so all these fields can be loaded from the Json response as a Map to Case class.
and then they could be retrieved by name:

Object value = aCase.getCustomField(name)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions