Interface TestRailClient
public interface TestRailClient
This class explains how to access and use TestRail's API
to integrate automated tests, submit test results
and automate various aspects of TestRail.
API: Results
getResults(Long, GetResultsQueryMap)
getResultsForCase(Long, Long, GetResultsQueryMap)
getResultsForRun(Long)
getResultsForRun(Long, GetResultsQueryMap)
addResult(TRResult, Long)
addResults(TRResults, Long)
addResultForCase(TRResult, Long, Long)
addResultsForCases(TRResults, Long)
Default
getResults(Long)
getResults(TRTest)
getResults(TRTest, GetResultsQueryMap)
getResultsForCase(Long, Long)
getResultsForCase(TRRun, TRCase)
getResultsForCase(TRRun, TRCase, GetResultsQueryMap)
getResultsForRun(TRRun)
getResultsForRun(TRRun, GetResultsQueryMap)
addResult(TRResult, TRTest)
addResults(TRResults, TRRun)
addResultForCase(TRResult, TRRun, TRCase)
addResultsForCases(TRResults, TRRun)
API: Cases
getCase(Long)
getCases(Long, GetCasesQueryMap)
addCase(TRCase, Long)
updateCase(TRCase, Long)
deleteCase(Long)
Default
getCase(TRCase)
getCases(TRProject)
getCases(TRProject, GetCasesQueryMap)
getCases(Long)
addCase(TRCase, TRSection)
updateCase(TRCase)
deleteCase(TRCase)
API: Projects
getProject(Long)
getProjects(GetProjectsQueryMap)
addProject(TRProject)
updateProject(TRProject, Long)
deleteProject(Long)
Default
getProject(TRProject)
getProjects()
updateProject(TRProject)
deleteProject(TRProject)
API: Get run
getRun(Long)
getRuns(Long, GetRunsQueryMap)
addRun(TRRun, Long)
updateRun(TRRun, Long)
closeRun(Long)
deleteRun(Long)
Default
getRun(TRRun)
getRuns(Long)
getRuns(TRProject)
getRuns(TRProject, GetRunsQueryMap)
addRun(TRRun, TRProject)
updateRun(TRRun)
closeRun(TRRun)
deleteRun(TRRun)
API: Suites
getSuite(Long)
getSuites(Long)
addSuite(TRSuite, Long)
updateSuite(TRSuite, Long)
deleteSuite(Long)
Default
getSuite(TRSuite)
getSuites(TRProject)
addSuite(TRSuite, TRProject)
updateSuite(TRSuite)
deleteSuite(TRSuite)
API: Sections
addSection(TRSection, Long)
getSection(Long)
getSections(Long, GetSectionsQueryMap)
updateSection(TRSection, Long)
deleteSection(Long)
Default
addSection(TRSection, TRProject)
getSection(TRSection)
getSections(Long)
getSections(TRProject)
getSections(TRProject, GetSectionsQueryMap)
updateSection(TRSection)
deleteSection(TRSection)
API: Tests
getTest(Long)
getTests(Long, GetTestsQueryMap)
Default
getTest(TRTest)
getTests(Long)
getTests(TRRun)
getTests(TRRun, GetTestsQueryMap)
Case fields
getCaseFields()
addCaseField(TRCaseField)
Case fields
getCaseTypes()
API: Configs
getConfigs(Long)
addConfigGroup(TRProjectConfigGroup, Long)
updateConfigGroup(TRProjectConfigGroup, Long)
deleteConfigGroup(Long)
addConfig(TRProjectConfig, Long)
updateConfig(TRProjectConfig, Long)
deleteConfig(Long)
Default
getConfigs(TRProject)
addConfigGroup(TRProjectConfigGroup, TRProject)
updateConfigGroup(TRProjectConfigGroup)
deleteConfigGroup(TRProjectConfigGroup)
addConfig(TRProjectConfig, TRProjectConfigGroup)
updateConfig(TRProjectConfig)
deleteConfig(TRProjectConfig)
API: Milestones
getMilestone(Long)
getMilestones(Long)
addMilestone(TRMilestone, Long)
updateMilestone(TRMilestone, Long)
deleteMilestone(Long)
Default
getMilestone(TRMilestone)
getMilestones(TRProject)
getMilestones(Long, GetMilestonesQueryMap)
getMilestones(TRProject, GetMilestonesQueryMap)
addMilestone(TRMilestone, TRProject)
updateMilestone(TRMilestone)
deleteMilestone(TRMilestone)
API: Priorities
getPriorities()
API: Users
getUsers()
getUser(Long)
getUserByEmail(String)
Default
getUser(TRUser)
getUserByEmail(TRUser)
API: Templates
getTemplates(Long)
Default
getTemplates(TRProject)
API: Statuses
getStatuses()
API: Results fields
getResultFields()
API: Plans
getPlan(Long)
getPlans(Long)
addPlan(TRPlan, Long)
updatePlan(TRPlan, Long)
closePlan(Long)
deletePlan(Long)
addPlanEntry(TRPlanEntry, Long)
updatePlanEntry(TRPlanEntry, Long, String)
deletePlanEntry(Long, String)
Default
getPlan(TRPlan)
getPlans(TRProject)
getPlans(Long, GetPlansQueryMap)
getPlans(TRProject, GetPlansQueryMap)
addPlan(TRPlan, TRProject)
updatePlan(TRPlan)
closePlan(TRPlan)
deletePlan(TRPlan)
addPlanEntry(TRPlanEntry, TRPlan)
updatePlanEntry(TRPlanEntry, TRPlan)
deletePlanEntry(TRPlan, TRPlanEntry)
Created by Oleg Shaburov on 11.11.2018
shaburov.o.a@gmail.com-
Method Summary
Modifier and Type Method Description org.touchbit.testrail4j.jackson2.model.TRCaseaddCase(org.touchbit.testrail4j.jackson2.model.TRCase aCase, Long sectionID)default org.touchbit.testrail4j.jackson2.model.TRCaseaddCase(org.touchbit.testrail4j.jackson2.model.TRCase aCase, org.touchbit.testrail4j.jackson2.model.TRSection section)voidaddCaseField(org.touchbit.testrail4j.jackson2.model.TRCaseField caseField)org.touchbit.testrail4j.jackson2.model.TRProjectConfigaddConfig(org.touchbit.testrail4j.jackson2.model.TRProjectConfig config, Long configGroupID)default org.touchbit.testrail4j.jackson2.model.TRProjectConfigaddConfig(org.touchbit.testrail4j.jackson2.model.TRProjectConfig config, org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroup cGroup)org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroupaddConfigGroup(org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroup cGroup, Long projectID)default org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroupaddConfigGroup(org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroup cGroup, org.touchbit.testrail4j.jackson2.model.TRProject project)org.touchbit.testrail4j.jackson2.model.TRMilestoneaddMilestone(org.touchbit.testrail4j.jackson2.model.TRMilestone milestone, Long projectID)default org.touchbit.testrail4j.jackson2.model.TRMilestoneaddMilestone(org.touchbit.testrail4j.jackson2.model.TRMilestone milestone, org.touchbit.testrail4j.jackson2.model.TRProject project)org.touchbit.testrail4j.jackson2.model.TRPlanaddPlan(org.touchbit.testrail4j.jackson2.model.TRPlan plan, Long projectID)default org.touchbit.testrail4j.jackson2.model.TRPlanaddPlan(org.touchbit.testrail4j.jackson2.model.TRPlan plan, org.touchbit.testrail4j.jackson2.model.TRProject project)org.touchbit.testrail4j.jackson2.model.TRPlanEntryaddPlanEntry(org.touchbit.testrail4j.jackson2.model.TRPlanEntry entry, Long planID)default org.touchbit.testrail4j.jackson2.model.TRPlanEntryaddPlanEntry(org.touchbit.testrail4j.jackson2.model.TRPlanEntry entry, org.touchbit.testrail4j.jackson2.model.TRPlan plan)org.touchbit.testrail4j.jackson2.model.TRProjectaddProject(org.touchbit.testrail4j.jackson2.model.TRProject project)org.touchbit.testrail4j.jackson2.model.TRResultaddResult(org.touchbit.testrail4j.jackson2.model.TRResult result, Long testID)default org.touchbit.testrail4j.jackson2.model.TRResultaddResult(org.touchbit.testrail4j.jackson2.model.TRResult result, org.touchbit.testrail4j.jackson2.model.TRTest test)org.touchbit.testrail4j.jackson2.model.TRResultaddResultForCase(org.touchbit.testrail4j.jackson2.model.TRResult result, Long runID, Long caseID)default org.touchbit.testrail4j.jackson2.model.TRResultaddResultForCase(org.touchbit.testrail4j.jackson2.model.TRResult result, org.touchbit.testrail4j.jackson2.model.TRRun run, org.touchbit.testrail4j.jackson2.model.TRCase caze)List<org.touchbit.testrail4j.jackson2.model.TRResult>addResults(org.touchbit.testrail4j.jackson2.model.TRResults results, Long runID)default List<org.touchbit.testrail4j.jackson2.model.TRResult>addResults(org.touchbit.testrail4j.jackson2.model.TRResults results, org.touchbit.testrail4j.jackson2.model.TRRun run)List<org.touchbit.testrail4j.jackson2.model.TRResult>addResultsForCases(org.touchbit.testrail4j.jackson2.model.TRResults results, Long runID)default List<org.touchbit.testrail4j.jackson2.model.TRResult>addResultsForCases(org.touchbit.testrail4j.jackson2.model.TRResults results, org.touchbit.testrail4j.jackson2.model.TRRun run)org.touchbit.testrail4j.jackson2.model.TRRunaddRun(org.touchbit.testrail4j.jackson2.model.TRRun run, Long projectID)default org.touchbit.testrail4j.jackson2.model.TRRunaddRun(org.touchbit.testrail4j.jackson2.model.TRRun run, org.touchbit.testrail4j.jackson2.model.TRProject project)org.touchbit.testrail4j.jackson2.model.TRSectionaddSection(org.touchbit.testrail4j.jackson2.model.TRSection section, Long projectID)default org.touchbit.testrail4j.jackson2.model.TRSectionaddSection(org.touchbit.testrail4j.jackson2.model.TRSection section, org.touchbit.testrail4j.jackson2.model.TRProject project)org.touchbit.testrail4j.jackson2.model.TRSuiteaddSuite(org.touchbit.testrail4j.jackson2.model.TRSuite suite, Long projectID)default org.touchbit.testrail4j.jackson2.model.TRSuiteaddSuite(org.touchbit.testrail4j.jackson2.model.TRSuite suite, org.touchbit.testrail4j.jackson2.model.TRProject project)org.touchbit.testrail4j.jackson2.model.TRPlanclosePlan(Long planID)default org.touchbit.testrail4j.jackson2.model.TRPlanclosePlan(org.touchbit.testrail4j.jackson2.model.TRPlan plan)SeeclosePlan(Long)org.touchbit.testrail4j.jackson2.model.TRRuncloseRun(Long runID)default org.touchbit.testrail4j.jackson2.model.TRRuncloseRun(org.touchbit.testrail4j.jackson2.model.TRRun run)SeecloseRun(Long)voiddeleteCase(Long caseID)default voiddeleteCase(org.touchbit.testrail4j.jackson2.model.TRCase caze)SeedeleteCase(Long)voiddeleteConfig(Long configID)default voiddeleteConfig(org.touchbit.testrail4j.jackson2.model.TRProjectConfig config)voiddeleteConfigGroup(Long configGroupID)default voiddeleteConfigGroup(org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroup cGroup)voiddeleteMilestone(Long milestoneID)default voiddeleteMilestone(org.touchbit.testrail4j.jackson2.model.TRMilestone milestone)voiddeletePlan(Long planID)default voiddeletePlan(org.touchbit.testrail4j.jackson2.model.TRPlan plan)SeedeletePlan(Long)voiddeletePlanEntry(Long planID, String entryID)default voiddeletePlanEntry(org.touchbit.testrail4j.jackson2.model.TRPlan plan, org.touchbit.testrail4j.jackson2.model.TRPlanEntry entry)voiddeleteProject(Long projectID)default voiddeleteProject(org.touchbit.testrail4j.jackson2.model.TRProject project)voiddeleteRun(Long runID)default voiddeleteRun(org.touchbit.testrail4j.jackson2.model.TRRun run)SeedeleteRun(Long)voiddeleteSection(Long sectionID)default voiddeleteSection(org.touchbit.testrail4j.jackson2.model.TRSection section)voiddeleteSuite(Long suiteID)default voiddeleteSuite(org.touchbit.testrail4j.jackson2.model.TRSuite suite)org.touchbit.testrail4j.jackson2.model.TRCasegetCase(Long caseID)default org.touchbit.testrail4j.jackson2.model.TRCasegetCase(org.touchbit.testrail4j.jackson2.model.TRCase caze)SeegetCase(Long)List<org.touchbit.testrail4j.jackson2.model.TRCaseField>getCaseFields()default List<org.touchbit.testrail4j.jackson2.model.TRCase>getCases(Long projectID)List<org.touchbit.testrail4j.jackson2.model.TRCase>getCases(Long projectID, org.touchbit.testrail4j.core.query.GetCasesQueryMap queryMap)default List<org.touchbit.testrail4j.jackson2.model.TRCase>getCases(org.touchbit.testrail4j.jackson2.model.TRProject project)default List<org.touchbit.testrail4j.jackson2.model.TRCase>getCases(org.touchbit.testrail4j.jackson2.model.TRProject project, org.touchbit.testrail4j.core.query.GetCasesQueryMap queryMap)List<org.touchbit.testrail4j.jackson2.model.TRCaseType>getCaseTypes()List<org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroup>getConfigs(Long projectID)default List<org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroup>getConfigs(org.touchbit.testrail4j.jackson2.model.TRProject project)SeegetConfigs(Long)org.touchbit.testrail4j.jackson2.model.TRMilestonegetMilestone(Long milestoneID)default org.touchbit.testrail4j.jackson2.model.TRMilestonegetMilestone(org.touchbit.testrail4j.jackson2.model.TRMilestone milestone)default List<org.touchbit.testrail4j.jackson2.model.TRMilestone>getMilestones(Long projectID)List<org.touchbit.testrail4j.jackson2.model.TRMilestone>getMilestones(Long projectID, org.touchbit.testrail4j.core.query.GetMilestonesQueryMap queryMap)default List<org.touchbit.testrail4j.jackson2.model.TRMilestone>getMilestones(org.touchbit.testrail4j.jackson2.model.TRProject project)default List<org.touchbit.testrail4j.jackson2.model.TRMilestone>getMilestones(org.touchbit.testrail4j.jackson2.model.TRProject project, org.touchbit.testrail4j.core.query.GetMilestonesQueryMap queryMap)org.touchbit.testrail4j.jackson2.model.TRPlangetPlan(Long planID)default org.touchbit.testrail4j.jackson2.model.TRPlangetPlan(org.touchbit.testrail4j.jackson2.model.TRPlan plan)SeegetPlan(Long)default List<org.touchbit.testrail4j.jackson2.model.TRPlan>getPlans(Long projectID)List<org.touchbit.testrail4j.jackson2.model.TRPlan>getPlans(Long projectID, org.touchbit.testrail4j.core.query.GetPlansQueryMap queryMap)default List<org.touchbit.testrail4j.jackson2.model.TRPlan>getPlans(org.touchbit.testrail4j.jackson2.model.TRProject project)default List<org.touchbit.testrail4j.jackson2.model.TRPlan>getPlans(org.touchbit.testrail4j.jackson2.model.TRProject project, org.touchbit.testrail4j.core.query.GetPlansQueryMap queryMap)List<org.touchbit.testrail4j.jackson2.model.TRPriority>getPriorities()org.touchbit.testrail4j.jackson2.model.TRProjectgetProject(Long projectID)default org.touchbit.testrail4j.jackson2.model.TRProjectgetProject(org.touchbit.testrail4j.jackson2.model.TRProject project)SeegetProject(Long)default List<org.touchbit.testrail4j.jackson2.model.TRProject>getProjects()List<org.touchbit.testrail4j.jackson2.model.TRProject>getProjects(org.touchbit.testrail4j.core.query.GetProjectsQueryMap queryMap)List<org.touchbit.testrail4j.jackson2.model.TRResultField>getResultFields()default List<org.touchbit.testrail4j.jackson2.model.TRResult>getResults(Long testID)List<org.touchbit.testrail4j.jackson2.model.TRResult>getResults(Long testID, org.touchbit.testrail4j.core.query.GetResultsQueryMap queryMap)default List<org.touchbit.testrail4j.jackson2.model.TRResult>getResults(org.touchbit.testrail4j.jackson2.model.TRTest trTest)default List<org.touchbit.testrail4j.jackson2.model.TRResult>getResults(org.touchbit.testrail4j.jackson2.model.TRTest trTest, org.touchbit.testrail4j.core.query.GetResultsQueryMap queryMap)default List<org.touchbit.testrail4j.jackson2.model.TRResult>getResultsForCase(Long runID, Long caseID)List<org.touchbit.testrail4j.jackson2.model.TRResult>getResultsForCase(Long runID, Long caseID, org.touchbit.testrail4j.core.query.GetResultsQueryMap queryMap)default List<org.touchbit.testrail4j.jackson2.model.TRResult>getResultsForCase(org.touchbit.testrail4j.jackson2.model.TRRun run, org.touchbit.testrail4j.jackson2.model.TRCase caze)default List<org.touchbit.testrail4j.jackson2.model.TRResult>getResultsForCase(org.touchbit.testrail4j.jackson2.model.TRRun run, org.touchbit.testrail4j.jackson2.model.TRCase caze, org.touchbit.testrail4j.core.query.GetResultsQueryMap queryMap)default List<org.touchbit.testrail4j.jackson2.model.TRResult>getResultsForRun(Long runID)List<org.touchbit.testrail4j.jackson2.model.TRResult>getResultsForRun(Long runID, org.touchbit.testrail4j.core.query.GetResultsQueryMap queryMap)default List<org.touchbit.testrail4j.jackson2.model.TRResult>getResultsForRun(org.touchbit.testrail4j.jackson2.model.TRRun run)default List<org.touchbit.testrail4j.jackson2.model.TRResult>getResultsForRun(org.touchbit.testrail4j.jackson2.model.TRRun run, org.touchbit.testrail4j.core.query.GetResultsQueryMap queryMap)org.touchbit.testrail4j.jackson2.model.TRRungetRun(Long runID)default org.touchbit.testrail4j.jackson2.model.TRRungetRun(org.touchbit.testrail4j.jackson2.model.TRRun run)SeegetRun(Long)default List<org.touchbit.testrail4j.jackson2.model.TRRun>getRuns(Long projectID)List<org.touchbit.testrail4j.jackson2.model.TRRun>getRuns(Long projectID, org.touchbit.testrail4j.core.query.GetRunsQueryMap queryMap)default List<org.touchbit.testrail4j.jackson2.model.TRRun>getRuns(org.touchbit.testrail4j.jackson2.model.TRProject project)default List<org.touchbit.testrail4j.jackson2.model.TRRun>getRuns(org.touchbit.testrail4j.jackson2.model.TRProject project, org.touchbit.testrail4j.core.query.GetRunsQueryMap queryMap)org.touchbit.testrail4j.jackson2.model.TRSectiongetSection(Long sectionID)default org.touchbit.testrail4j.jackson2.model.TRSectiongetSection(org.touchbit.testrail4j.jackson2.model.TRSection section)SeegetSection(Long)default List<org.touchbit.testrail4j.jackson2.model.TRSection>getSections(Long projectID)List<org.touchbit.testrail4j.jackson2.model.TRSection>getSections(Long projectID, org.touchbit.testrail4j.core.query.GetSectionsQueryMap queryMap)default List<org.touchbit.testrail4j.jackson2.model.TRSection>getSections(org.touchbit.testrail4j.jackson2.model.TRProject project)default List<org.touchbit.testrail4j.jackson2.model.TRSection>getSections(org.touchbit.testrail4j.jackson2.model.TRProject project, org.touchbit.testrail4j.core.query.GetSectionsQueryMap queryMap)List<org.touchbit.testrail4j.jackson2.model.TRStatus>getStatuses()org.touchbit.testrail4j.jackson2.model.TRSuitegetSuite(Long suiteID)default org.touchbit.testrail4j.jackson2.model.TRSuitegetSuite(org.touchbit.testrail4j.jackson2.model.TRSuite suite)SeegetSuite(Long)List<org.touchbit.testrail4j.jackson2.model.TRSuite>getSuites(Long projectID)default List<org.touchbit.testrail4j.jackson2.model.TRSuite>getSuites(org.touchbit.testrail4j.jackson2.model.TRProject project)SeegetSuites(Long)List<org.touchbit.testrail4j.jackson2.model.TRTemplate>getTemplates(Long projectID)default List<org.touchbit.testrail4j.jackson2.model.TRTemplate>getTemplates(org.touchbit.testrail4j.jackson2.model.TRProject project)org.touchbit.testrail4j.jackson2.model.TRTestgetTest(Long testID)default org.touchbit.testrail4j.jackson2.model.TRTestgetTest(org.touchbit.testrail4j.jackson2.model.TRTest test)SeegetTest(Long)default List<org.touchbit.testrail4j.jackson2.model.TRTest>getTests(Long runID)List<org.touchbit.testrail4j.jackson2.model.TRTest>getTests(Long runID, org.touchbit.testrail4j.core.query.GetTestsQueryMap queryMap)default List<org.touchbit.testrail4j.jackson2.model.TRTest>getTests(org.touchbit.testrail4j.jackson2.model.TRRun run)default List<org.touchbit.testrail4j.jackson2.model.TRTest>getTests(org.touchbit.testrail4j.jackson2.model.TRRun run, org.touchbit.testrail4j.core.query.GetTestsQueryMap queryMap)org.touchbit.testrail4j.jackson2.model.TRUsergetUser(Long userID)default org.touchbit.testrail4j.jackson2.model.TRUsergetUser(org.touchbit.testrail4j.jackson2.model.TRUser user)SeegetUser(Long)org.touchbit.testrail4j.jackson2.model.TRUsergetUserByEmail(String email)default org.touchbit.testrail4j.jackson2.model.TRUsergetUserByEmail(org.touchbit.testrail4j.jackson2.model.TRUser user)List<org.touchbit.testrail4j.jackson2.model.TRUser>getUsers()default org.touchbit.testrail4j.jackson2.model.TRCaseupdateCase(org.touchbit.testrail4j.jackson2.model.TRCase caze)org.touchbit.testrail4j.jackson2.model.TRCaseupdateCase(org.touchbit.testrail4j.jackson2.model.TRCase caze, Long caseID)default org.touchbit.testrail4j.jackson2.model.TRProjectConfigupdateConfig(org.touchbit.testrail4j.jackson2.model.TRProjectConfig config)org.touchbit.testrail4j.jackson2.model.TRProjectConfigupdateConfig(org.touchbit.testrail4j.jackson2.model.TRProjectConfig config, Long configID)default org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroupupdateConfigGroup(org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroup cGroup)org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroupupdateConfigGroup(org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroup cGroup, Long configGroupID)default org.touchbit.testrail4j.jackson2.model.TRMilestoneupdateMilestone(org.touchbit.testrail4j.jackson2.model.TRMilestone milestone)org.touchbit.testrail4j.jackson2.model.TRMilestoneupdateMilestone(org.touchbit.testrail4j.jackson2.model.TRMilestone milestone, Long milestoneID)default org.touchbit.testrail4j.jackson2.model.TRPlanupdatePlan(org.touchbit.testrail4j.jackson2.model.TRPlan plan)org.touchbit.testrail4j.jackson2.model.TRPlanupdatePlan(org.touchbit.testrail4j.jackson2.model.TRPlan plan, Long planID)org.touchbit.testrail4j.jackson2.model.TRPlanEntryupdatePlanEntry(org.touchbit.testrail4j.jackson2.model.TRPlanEntry entry, Long planID, String entryID)default org.touchbit.testrail4j.jackson2.model.TRPlanEntryupdatePlanEntry(org.touchbit.testrail4j.jackson2.model.TRPlanEntry entry, org.touchbit.testrail4j.jackson2.model.TRPlan plan)default org.touchbit.testrail4j.jackson2.model.TRProjectupdateProject(org.touchbit.testrail4j.jackson2.model.TRProject project)org.touchbit.testrail4j.jackson2.model.TRProjectupdateProject(org.touchbit.testrail4j.jackson2.model.TRProject project, Long projectID)default org.touchbit.testrail4j.jackson2.model.TRRunupdateRun(org.touchbit.testrail4j.jackson2.model.TRRun run)org.touchbit.testrail4j.jackson2.model.TRRunupdateRun(org.touchbit.testrail4j.jackson2.model.TRRun run, Long runID)default org.touchbit.testrail4j.jackson2.model.TRSectionupdateSection(org.touchbit.testrail4j.jackson2.model.TRSection section)org.touchbit.testrail4j.jackson2.model.TRSectionupdateSection(org.touchbit.testrail4j.jackson2.model.TRSection section, Long sectionID)default org.touchbit.testrail4j.jackson2.model.TRSuiteupdateSuite(org.touchbit.testrail4j.jackson2.model.TRSuite suite)org.touchbit.testrail4j.jackson2.model.TRSuiteupdateSuite(org.touchbit.testrail4j.jackson2.model.TRSuite suite, Long suiteID)
-
Method Details
-
getResults
List<org.touchbit.testrail4j.jackson2.model.TRResult> getResults(Long testID, org.touchbit.testrail4j.core.query.GetResultsQueryMap queryMap)- Parameters:
testID- is the ID of the testqueryMap- is the request filter. SeeGetResultsQueryMapThe latest 10 results for test with ID 1 and statuses 4 or 5 (Retest, Failed) GET index.php?/api/v2/get_results/1&status_id=4,5&limit=10- Returns:
- a list of test
TRResults for a test. Custom fields are also included in the response and use their system name prefixed with 'custom_' as their field identifier. Please see add_result for a full list of available custom field types. [ { "assignedto_id": 1, "comment": "This test failed: ..", "created_by": 1, "created_on": 1393851801, "defects": "TR-1", "elapsed": "5m", "id": 1, "status_id": 5, "test_id": 1, "version": "1.0RC1", "custom_step_results": [ { "content": "Step 1", "expected": "Expected Result 1", "actual": "Actual Result 1", "status_id": 1 } ] } ] - See Also:
- API: Get results Get the latest 10 results for test with ID 1 and statuses 4 or 5 (Retest, Failed) GET /index.php/api/v2/get_results/1&status_id=4,5&limit=10
-
getResults
default List<org.touchbit.testrail4j.jackson2.model.TRResult> getResults(org.touchbit.testrail4j.jackson2.model.TRTest trTest, org.touchbit.testrail4j.core.query.GetResultsQueryMap queryMap) -
getResults
-
getResults
default List<org.touchbit.testrail4j.jackson2.model.TRResult> getResults(org.touchbit.testrail4j.jackson2.model.TRTest trTest) -
getResultsForCase
List<org.touchbit.testrail4j.jackson2.model.TRResult> getResultsForCase(Long runID, Long caseID, org.touchbit.testrail4j.core.query.GetResultsQueryMap queryMap)- Parameters:
runID- is the ID of the test runcaseID- is the ID of the test casequeryMap- is the request filter. SeeGetResultsQueryMap- Returns:
- This method uses the same response format as
getResults(Long, GetResultsQueryMap). - See Also:
- API: Get results for case Returns a list of test results for a test run and case combination. The difference to get_results is that this method expects a test run + test case instead of a test. In TestRail, tests are part of a test run and the test cases are part of the related test suite. So, when you create a new test run, TestRail creates a test for each test case found in the test suite of the run. You can therefore think of a test as an “instance” of a test case which can have test results, comments and a test status. Please also see TestRail's getting started guide for more details about the differences between test cases and tests. All results for test run with ID 1 and test case with ID 2 GET index.php?/api/v2/get_results_for_case/1/2
-
getResultsForCase
-
getResultsForCase
default List<org.touchbit.testrail4j.jackson2.model.TRResult> getResultsForCase(org.touchbit.testrail4j.jackson2.model.TRRun run, org.touchbit.testrail4j.jackson2.model.TRCase caze) -
getResultsForCase
default List<org.touchbit.testrail4j.jackson2.model.TRResult> getResultsForCase(org.touchbit.testrail4j.jackson2.model.TRRun run, org.touchbit.testrail4j.jackson2.model.TRCase caze, org.touchbit.testrail4j.core.query.GetResultsQueryMap queryMap) -
getResultsForRun
List<org.touchbit.testrail4j.jackson2.model.TRResult> getResultsForRun(Long runID, org.touchbit.testrail4j.core.query.GetResultsQueryMap queryMap)- Parameters:
runID- is the ID of the test runqueryMap- is the request filter. SeeGetResultsQueryMap- Returns:
- a list of test
TRResults for a test run. - See Also:
- API: Get results for run Returns a list of test results for a test run.
-
getResultsForRun
default List<org.touchbit.testrail4j.jackson2.model.TRResult> getResultsForRun(org.touchbit.testrail4j.jackson2.model.TRRun run, org.touchbit.testrail4j.core.query.GetResultsQueryMap queryMap) -
getResultsForRun
-
getResultsForRun
default List<org.touchbit.testrail4j.jackson2.model.TRResult> getResultsForRun(org.touchbit.testrail4j.jackson2.model.TRRun run) -
addResult
org.touchbit.testrail4j.jackson2.model.TRResult addResult(org.touchbit.testrail4j.jackson2.model.TRResult result, Long testID)- Parameters:
testID- is the ID of the test the result should be added to- Returns:
- the new test
TRResultusing the same response format asgetResults(Long, GetResultsQueryMap), but with a single result instead of a list of results. - See Also:
- API: Add result Adds a new test result, comment or assigns a test. It's recommended to use add_results instead if you plan to add results for multiple tests. Request example
-
addResult
default org.touchbit.testrail4j.jackson2.model.TRResult addResult(org.touchbit.testrail4j.jackson2.model.TRResult result, org.touchbit.testrail4j.jackson2.model.TRTest test) -
addResultForCase
org.touchbit.testrail4j.jackson2.model.TRResult addResultForCase(org.touchbit.testrail4j.jackson2.model.TRResult result, Long runID, Long caseID)- Parameters:
runID- is the ID of the test runcaseID- is the ID of the test case- Returns:
- the new test
TRResultusing the same response format asgetResults(Long, GetResultsQueryMap), but with a single result instead of a list of results. - See Also:
- API: Add result for case Adds a new test result, comment or assigns a test (for a test run and case combination). It's recommended to use TestRailClient#addResultsForCases(TRResults, Long) instead if you plan to add results for multiple test cases. The difference to TestRailClient#addResult(TRResult, Long) is that this method expects a test run + test case instead of a test. In TestRail, tests are part of a test run and the test cases are part of the related test suite. So, when you create a new test run, TestRail creates a test for each test case found in the test suite of the run. You can therefore think of a test as an “instance” of a test case which can have test results, comments and a test status. Please also see TestRail's getting started guide for more details about the differences between test cases and tests.
-
addResultForCase
default org.touchbit.testrail4j.jackson2.model.TRResult addResultForCase(org.touchbit.testrail4j.jackson2.model.TRResult result, org.touchbit.testrail4j.jackson2.model.TRRun run, org.touchbit.testrail4j.jackson2.model.TRCase caze) -
addResults
List<org.touchbit.testrail4j.jackson2.model.TRResult> addResults(org.touchbit.testrail4j.jackson2.model.TRResults results, Long runID)- Parameters:
runID- is ID of the test run the results should be added to- Returns:
- the new test
TRResults using the same response format asgetResults(Long, GetResultsQueryMap)and in the same order as the list of the request. - See Also:
- API: Add results Adds one or more new test results, comments or assigns one or more tests. Ideal for test automation to bulk-add multiple test results in one step. This method expects an array of test results (via the 'results' field, please see below). Each test result must specify the test ID and can pass in the same fields as TestRailClient#addResult(TRResult, Long), namely all test related system and custom fields. Please note that all referenced tests must belong to the same test run. The following listing shows a typical example request. In addition to the test, you need to specify at least one of the status, comment or assignee fields for each result. { "results": [ { "test_id": 101, "status_id": 5, "comment": "This test failed", "defects": "TR-7" } ] }
-
addResults
default List<org.touchbit.testrail4j.jackson2.model.TRResult> addResults(org.touchbit.testrail4j.jackson2.model.TRResults results, org.touchbit.testrail4j.jackson2.model.TRRun run) -
addResultsForCases
List<org.touchbit.testrail4j.jackson2.model.TRResult> addResultsForCases(org.touchbit.testrail4j.jackson2.model.TRResults results, Long runID)- Parameters:
runID- the test run the results should be added to- Returns:
- the new test
TRResults using the same response format asgetResults(Long, GetResultsQueryMap)and in the same order as the list of the request. - See Also:
- API: Add results for cases Adds one or more new test results, comments or assigns one or more tests (using the case IDs). Ideal for test automation to bulk-add multiple test results in one step. This method expects an array of test results (via the 'results' field, please see below). Each test result must specify the test case ID and can pass in the same fields as TestRailClient#addResult(TRResult, Long), namely all test related system and custom fields. The difference to add_results is that this method expects test case IDs instead of test IDs. Please see TestRailClient#addResultForCase(TRResult, Long, Long) for details. Please note that all referenced tests must belong to the same test run. The following listing shows a typical example request. In addition to the test case, you need to specify at least one of the status, comment or assignee fields for each result. { "results": [ { "case_id": 1, "status_id": 5, "comment": "This test failed", "defects": "TR-7" } ] }
-
addResultsForCases
default List<org.touchbit.testrail4j.jackson2.model.TRResult> addResultsForCases(org.touchbit.testrail4j.jackson2.model.TRResults results, org.touchbit.testrail4j.jackson2.model.TRRun run) -
getCase
- Parameters:
caseID- is the ID of the test case- Returns:
- an existing test case. { "created_by": 5, "created_on": 1392300984, "estimate": "1m 5s", "estimate_forecast": null, "id": 1, "milestone_id": 7, "priority_id": 2, "refs": "RF-1, RF-2", "section_id": 1, "suite_id": 1, "title": "Change document attributes (author, title, organization)", "type_id": 4, "updated_by": 1, "updated_on": 1393586511 }
- See Also:
- API: Get case
-
getCase
default org.touchbit.testrail4j.jackson2.model.TRCase getCase(org.touchbit.testrail4j.jackson2.model.TRCase caze)SeegetCase(Long) -
getCases
List<org.touchbit.testrail4j.jackson2.model.TRCase> getCases(Long projectID, org.touchbit.testrail4j.core.query.GetCasesQueryMap queryMap)- Parameters:
projectID- is the ID of the projectqueryMap- is the following optional parameters and filtersGetCasesFilter- Returns:
- a list of
TRCasefor a test suite or specific section in a test suite. [ { "id": 1, "title": "..", .. }, { "id": 2, "title": "..", .. } ] - See Also:
- API: Get cases For example get all test cases for project with ID 1, suite with ID 2 and priority 3 or 4 GET /index.php/api/v2/get_cases/1&suite_id=2&priority_id=3,4
-
getCases
-
getCases
default List<org.touchbit.testrail4j.jackson2.model.TRCase> getCases(org.touchbit.testrail4j.jackson2.model.TRProject project) -
getCases
default List<org.touchbit.testrail4j.jackson2.model.TRCase> getCases(org.touchbit.testrail4j.jackson2.model.TRProject project, org.touchbit.testrail4j.core.query.GetCasesQueryMap queryMap) -
addCase
org.touchbit.testrail4j.jackson2.model.TRCase addCase(org.touchbit.testrail4j.jackson2.model.TRCase aCase, Long sectionID)- Parameters:
sectionID- is the ID of the section the test case should be added toaCase- is theTRCase- Returns:
- If successful, this method returns the new test case using
the same response format as
getCase(Long). - See Also:
- API: Add case Creates a new test case.
-
addCase
default org.touchbit.testrail4j.jackson2.model.TRCase addCase(org.touchbit.testrail4j.jackson2.model.TRCase aCase, org.touchbit.testrail4j.jackson2.model.TRSection section) -
updateCase
org.touchbit.testrail4j.jackson2.model.TRCase updateCase(org.touchbit.testrail4j.jackson2.model.TRCase caze, Long caseID)- Parameters:
caseID- is the ID of the test casecaze- is theTRCase- Returns:
- If successful, this method returns the new test case using
the same response format as
getCase(Long). - See Also:
- API: Update case Updates an existing test case (partial updates are supported, i.e. you can submit and update specific fields only). This method supports the same POST fields as TestRailClient#addCase(TRCase, Long) (except section_id).
-
updateCase
default org.touchbit.testrail4j.jackson2.model.TRCase updateCase(org.touchbit.testrail4j.jackson2.model.TRCase caze) -
deleteCase
- Parameters:
caseID- is the ID of the test case- See Also:
- API: Delete case Deletes an existing test case.
-
deleteCase
default void deleteCase(org.touchbit.testrail4j.jackson2.model.TRCase caze)SeedeleteCase(Long) -
getProject
- Parameters:
projectID- is the ID of the project- Returns:
- an existing
TRProject. { "announcement": "announcement", "completed_on": null, "id": 1, "suite_mode": 3, "is_completed": false, "name": "Datahub", "show_announcement": true, "url": "http://localhost/testrail/index.php?/projects/overview/1" } - See Also:
- API: Get projects
-
getProject
default org.touchbit.testrail4j.jackson2.model.TRProject getProject(org.touchbit.testrail4j.jackson2.model.TRProject project)SeegetProject(Long) -
getProjects
List<org.touchbit.testrail4j.jackson2.model.TRProject> getProjects(org.touchbit.testrail4j.core.query.GetProjectsQueryMap queryMap)- Parameters:
queryMap- is the request filter- Returns:
- The response includes an array of projects.
Each project in this list follows the same format as
getProject(Long)[ { "id": 1, "name": "DataHub", .. }, { "id": 2, "name": "Writer", .. } ] - See Also:
- API: Get project Returns the list of available projects.
-
getProjects
-
addProject
org.touchbit.testrail4j.jackson2.model.TRProject addProject(org.touchbit.testrail4j.jackson2.model.TRProject project)- Parameters:
project- is the request body. The following POST fields are supported: name, announcement, show_announcement, suite_mode.- Returns:
- If successful, this method returns the new
TRProjectusing the same response format asgetProject(Long). { "id": 1, "name": "DataHub", .. } - See Also:
- API: Add project Creates a new project (admin status required).
-
updateProject
org.touchbit.testrail4j.jackson2.model.TRProject updateProject(org.touchbit.testrail4j.jackson2.model.TRProject project, Long projectID)- Parameters:
projectID- is the ID of the projectproject- is the request body.- Returns:
- If successful, this method returns the new
TRProjectusing the same response format asgetProject(Long). { "id": 1, "name": "DataHub", .. } - See Also:
- API: Update project Updates an existing project (admin status required; partial updates are supported, i.e. you can submit and update specific fields only).
-
updateProject
default org.touchbit.testrail4j.jackson2.model.TRProject updateProject(org.touchbit.testrail4j.jackson2.model.TRProject project) -
deleteProject
- Parameters:
projectID- is the ID of the project- See Also:
- API: Delete project Deletes an existing project (admin status required).
-
deleteProject
default void deleteProject(org.touchbit.testrail4j.jackson2.model.TRProject project) -
getRun
- Parameters:
runID- is the ID of the test run- Returns:
- an existing test
TRRun{ "assignedto_id": 6, "blocked_count": 0, "completed_on": null, "config": "Firefox, Ubuntu 12", "config_ids": [ 2, 6 ], "created_by": 1, "created_on": 1393845644, "custom_status1_count": 0, "custom_status2_count": 0, "custom_status3_count": 0, "custom_status4_count": 0, "custom_status5_count": 0, "custom_status6_count": 0, "custom_status7_count": 0, "description": null, "failed_count": 2, "id": 81, "include_all": false, "is_completed": false, "milestone_id": 7, "name": "File Formats", "passed_count": 2, "plan_id": 80, "project_id": 1, "retest_count": 1, "suite_id": 4, "untested_count": 3, "url": "http:///testrail/index.php?/runs/view/81" } - See Also:
- API: Get run
-
getRun
default org.touchbit.testrail4j.jackson2.model.TRRun getRun(org.touchbit.testrail4j.jackson2.model.TRRun run)SeegetRun(Long) -
getRuns
List<org.touchbit.testrail4j.jackson2.model.TRRun> getRuns(Long projectID, org.touchbit.testrail4j.core.query.GetRunsQueryMap queryMap)- Parameters:
projectID- is the ID of the projectqueryMap- is a request filterGetRunsQueryMapAll active test runs for project with ID 1 created by user with ID 1 or 2 GET index.php?/api/v2/get_runs/1&is_completed=0&created_by=1,2- Returns:
- Returns a list of test
TRRuns for a project. Only returns those test runs that are not part of a test plan (please see get_plans/get_plan for this). - See Also:
- API: Get Runs All active test runs for project with ID 1 created by user with ID 1 or 2 GET index.php?/api/v2/get_runs/1&is_completed=0&created_by=1,2
-
getRuns
-
getRuns
default List<org.touchbit.testrail4j.jackson2.model.TRRun> getRuns(org.touchbit.testrail4j.jackson2.model.TRProject project) -
getRuns
default List<org.touchbit.testrail4j.jackson2.model.TRRun> getRuns(org.touchbit.testrail4j.jackson2.model.TRProject project, org.touchbit.testrail4j.core.query.GetRunsQueryMap queryMap) -
addRun
org.touchbit.testrail4j.jackson2.model.TRRun addRun(org.touchbit.testrail4j.jackson2.model.TRRun run, Long projectID)- Parameters:
run- is the request body (TRRun)projectID- is the ID of the test run- Returns:
- If successful, this method returns the new test
TRRunusing the same response format asgetRun(Long). - See Also:
- API: Add run Creates a new test run. Also see the following example which shows how to create a new test run including a custom test case selection: { "suite_id": 1, "name": "This is a new test run", "assignedto_id": 5, "include_all": false, "case_ids": [1, 2, 3, 4, 7, 8] }
-
addRun
default org.touchbit.testrail4j.jackson2.model.TRRun addRun(org.touchbit.testrail4j.jackson2.model.TRRun run, org.touchbit.testrail4j.jackson2.model.TRProject project) -
updateRun
org.touchbit.testrail4j.jackson2.model.TRRun updateRun(org.touchbit.testrail4j.jackson2.model.TRRun run, Long runID)- Parameters:
run- is the request body (TRRun)runID- is the ID of the test run- Returns:
- If successful, this method returns the updated test
TRRunusing the same response format asgetRun(Long)}. - See Also:
- API: Update run Updates an existing test run (partial updates are supported, i.e. you can submit and update specific fields only). With the exception of the suite_id and assignedto_id fields, this method supports the same POST fields as TestRailClient#addRun(TRRun, Long). Request example Also see the following example which shows how to update the description and test case selection of a test run: { "description": "A description for the test run", "include_all": true } The following example updates a test run to use a manual test case selection: { "include_all": false, "case_ids": [1, 2, 3, 5, 8] }
-
updateRun
default org.touchbit.testrail4j.jackson2.model.TRRun updateRun(org.touchbit.testrail4j.jackson2.model.TRRun run) -
closeRun
- Parameters:
runID- is the ID of the test run- Returns:
- If successful, this method returns the updated test
TRRunusing the same response format asgetRun(Long)}. - See Also:
- API: Close run Closes an existing test run and archives its tests & results.
-
closeRun
default org.touchbit.testrail4j.jackson2.model.TRRun closeRun(org.touchbit.testrail4j.jackson2.model.TRRun run)SeecloseRun(Long) -
deleteRun
- Parameters:
runID- is the ID of the test run- See Also:
- API: Delete run Deletes an existing test run.
-
deleteRun
default void deleteRun(org.touchbit.testrail4j.jackson2.model.TRRun run)SeedeleteRun(Long) -
getSuite
- Parameters:
suiteID- is the ID of the test suite- Returns:
- an existing test
TRSuite. { "description": "description", "id": 1, "name": "Setup & Installation", "project_id": 1, "url": "http:///testrail/index.php?/suites/view/1" } - See Also:
- API: Get suite
-
getSuite
default org.touchbit.testrail4j.jackson2.model.TRSuite getSuite(org.touchbit.testrail4j.jackson2.model.TRSuite suite)SeegetSuite(Long) -
getSuites
- Parameters:
projectID- is the ID of the project- Returns:
- The response includes an array of test suite. Each test suite in this
list follows the same format as
getSuite(Long). [ { "id": 1, "name": "Setup & Installation", .. }, { "id": 2, "name": "Document Editing", .. } ] - See Also:
- API: Get suites
-
getSuites
default List<org.touchbit.testrail4j.jackson2.model.TRSuite> getSuites(org.touchbit.testrail4j.jackson2.model.TRProject project)SeegetSuites(Long) -
addSuite
org.touchbit.testrail4j.jackson2.model.TRSuite addSuite(org.touchbit.testrail4j.jackson2.model.TRSuite suite, Long projectID)- Parameters:
projectID- is the ID of the project- Returns:
- If successful, this method returns the new test suite using
the same response format as
getSuite(Long). - See Also:
- API: Add suite Creates a new test suite.
-
addSuite
default org.touchbit.testrail4j.jackson2.model.TRSuite addSuite(org.touchbit.testrail4j.jackson2.model.TRSuite suite, org.touchbit.testrail4j.jackson2.model.TRProject project) -
updateSuite
org.touchbit.testrail4j.jackson2.model.TRSuite updateSuite(org.touchbit.testrail4j.jackson2.model.TRSuite suite, Long suiteID)- Parameters:
suiteID- is the ID of the test suite- Returns:
- If successful, this method returns the new test suite using
the same response format as
getSuite(Long). - See Also:
- API: Update suite Updates an existing test suite (partial updates are supported, i.e. you can submit and update specific fields only).
-
updateSuite
default org.touchbit.testrail4j.jackson2.model.TRSuite updateSuite(org.touchbit.testrail4j.jackson2.model.TRSuite suite) -
deleteSuite
- Parameters:
suiteID- is the ID of the test suite- See Also:
- API: Delete suite Deletes an existing test suite.
-
deleteSuite
default void deleteSuite(org.touchbit.testrail4j.jackson2.model.TRSuite suite) -
addSection
org.touchbit.testrail4j.jackson2.model.TRSection addSection(org.touchbit.testrail4j.jackson2.model.TRSection section, Long projectID)- Parameters:
projectID- is the ID of the projectsection- is the request body- Returns:
- If successful, this method returns the new section using
the same response format as
getSection(Long). - See Also:
- API: Add section
-
addSection
default org.touchbit.testrail4j.jackson2.model.TRSection addSection(org.touchbit.testrail4j.jackson2.model.TRSection section, org.touchbit.testrail4j.jackson2.model.TRProject project) -
getSection
- Parameters:
sectionID- is the ID of the section- Returns:
- for the following fields are included in the response see
TRSectionPlease see below for a typical response{ "depth": 0, "description": null, "display_order": 1, "id": 1, "name": "Prerequisites", "parent_id": null, "suite_id": 1 }The depth, display_order and parent fields determine the hierarchy of the sections in a test suite. The depth field is 0 for all sections on the root level and greater than 0 for all child sections. The depth field therefore resembles the level in the section hierarchy. - See Also:
- API: Get section Returns an existing section.
-
getSection
default org.touchbit.testrail4j.jackson2.model.TRSection getSection(org.touchbit.testrail4j.jackson2.model.TRSection section)SeegetSection(Long) -
getSections
List<org.touchbit.testrail4j.jackson2.model.TRSection> getSections(Long projectID, org.touchbit.testrail4j.core.query.GetSectionsQueryMap queryMap)- Parameters:
projectID- is the ID of the projectqueryMap- is the request filterGetSectionsQueryMap- Returns:
- a list of sections for a project and test suite.
[ { "depth": 0, "display_order": 1, "id": 1, "name": "Prerequisites", "parent_id": null, "suite_id": 1 }, .. ] - See Also:
- API: Get sections
-
getSections
-
getSections
default List<org.touchbit.testrail4j.jackson2.model.TRSection> getSections(org.touchbit.testrail4j.jackson2.model.TRProject project) -
getSections
default List<org.touchbit.testrail4j.jackson2.model.TRSection> getSections(org.touchbit.testrail4j.jackson2.model.TRProject project, org.touchbit.testrail4j.core.query.GetSectionsQueryMap queryMap) -
updateSection
org.touchbit.testrail4j.jackson2.model.TRSection updateSection(org.touchbit.testrail4j.jackson2.model.TRSection section, Long sectionID)- Parameters:
sectionID- is the ID of the sectionsection- is the following POST fields are supported: description, name; SeeTRSection- Returns:
- If successful, this method returns the updated section using the
same response format as
getSection(Long). - See Also:
- API: Update section Updates an existing section (partial updates are supported, i.e. you can submit and update specific fields only).
-
updateSection
default org.touchbit.testrail4j.jackson2.model.TRSection updateSection(org.touchbit.testrail4j.jackson2.model.TRSection section) -
deleteSection
- Parameters:
sectionID- is the ID of the section- See Also:
- API: Delete section Deletes an existing section.
-
deleteSection
default void deleteSection(org.touchbit.testrail4j.jackson2.model.TRSection section) -
getTest
- Parameters:
testID- is the ID of the test- Returns:
- an existing test.
- See Also:
- API: Get test If you interested in the test results rather than the tests, please see get_results instead. Please see below for a typical example response: { "assignedto_id": 1, "case_id": 1, "custom_expected": "..", "custom_preconds": "..", "custom_steps_separated": [ { "content": "Step 2", "expected": "Expected Result 2" } ], "estimate": "1m 5s", "estimate_forecast": null, "id": 100, "priority_id": 2, "run_id": 1, "status_id": 5, "title": "Verify line spacing on multi-page document", "type_id": 4 } Custom fields of test cases are also included in the response and use their system name prefixed with 'custom_' as their field identifier. Please see TestRailClient#addCase(TRCase, Long) for a full list of available custom field types.
-
getTest
default org.touchbit.testrail4j.jackson2.model.TRTest getTest(org.touchbit.testrail4j.jackson2.model.TRTest test)SeegetTest(Long) -
getTests
List<org.touchbit.testrail4j.jackson2.model.TRTest> getTests(Long runID, org.touchbit.testrail4j.core.query.GetTestsQueryMap queryMap)- Parameters:
runID- is the ID of the test runqueryMap- is the following filters All test cases for test run with ID 1 and status 4, 5 (Retest and Failed) GET index.php?/api/v2/get_tests/1&status_id=4,5- Returns:
- a list of tests for a test run.
The response includes an array of tests.
Each test in this list follows the same format as
getTest(Long). [ { "id": 1, "title": "Test conditional formatting with basic value range", } ] - See Also:
- API: Get tests
-
getTests
-
getTests
default List<org.touchbit.testrail4j.jackson2.model.TRTest> getTests(org.touchbit.testrail4j.jackson2.model.TRRun run) -
getTests
default List<org.touchbit.testrail4j.jackson2.model.TRTest> getTests(org.touchbit.testrail4j.jackson2.model.TRRun run, org.touchbit.testrail4j.core.query.GetTestsQueryMap queryMap) -
getCaseFields
List<org.touchbit.testrail4j.jackson2.model.TRCaseField> getCaseFields()- Returns:
- a list of available test case custom fields
TRCaseField. The response includes an array of custom field definitions. Please see below for a typical response: [ { "configs": [ { "context": { "is_global": true, "project_ids": null }, "id": "..", "options": { "default_value": "", "format": "markdown", "is_required": false, "rows": "5" } } ], "description": "The preconditions of this test case. ..", "display_order": 1, "id": 1, "label": "Preconditions", "name": "preconds", "system_name": "custom_preconds", "type_id": 3 } ] The following list shows the available custom field types (type_id field):FieldTypes - See Also:
- API: Get case fields
-
addCaseField
void addCaseField(org.touchbit.testrail4j.jackson2.model.TRCaseField caseField)- Parameters:
caseField- is the request body- See Also:
- API: Add case field Creates a new test case custom field. The returned object is not available until the correction of the defect https://discuss.gurock.com/t/bug-api-different-types-of-returned-data-for-case-fields-configs/10598
-
getCaseTypes
List<org.touchbit.testrail4j.jackson2.model.TRCaseType> getCaseTypes()- Returns:
- a list of available case types. The response includes an array of test case types. Each case type has a unique ID and a name. The is_default field is true for the default case type and false otherwise.
- See Also:
- API: Get case types
-
getConfigs
- Parameters:
projectID- is the ID of the project- Returns:
- a list of available configurations
TRProjectConfigGroup, grouped by configuration groups (requires TestRail 3.1 or later). - See Also:
- API: Get configs
-
getConfigs
default List<org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroup> getConfigs(org.touchbit.testrail4j.jackson2.model.TRProject project)SeegetConfigs(Long) -
addConfigGroup
org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroup addConfigGroup(org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroup cGroup, Long projectID)- Parameters:
projectID- is the ID of the project the configuration group should be added tocGroup- is the request body- Returns:
- new
TRProjectConfigGroup - See Also:
- API: Add config group
-
addConfigGroup
default org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroup addConfigGroup(org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroup cGroup, org.touchbit.testrail4j.jackson2.model.TRProject project) -
updateConfigGroup
org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroup updateConfigGroup(org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroup cGroup, Long configGroupID)- Parameters:
configGroupID- the ID of the configuration groupcGroup- is the request body- Returns:
- updated
TRProjectConfigGroup - See Also:
- API: Update config group Updates an existing configuration group (requires TestRail 5.2 or later).
-
updateConfigGroup
default org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroup updateConfigGroup(org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroup cGroup) -
deleteConfigGroup
- Parameters:
configGroupID- the ID of the configuration group- See Also:
- API: Delete config group Deletes an existing configuration group and its configurations (requires TestRail 5.2 or later). Please note: Deleting a configuration group cannot be undone and also permanently deletes all configurations in this group. It does not, however, affect closed test plans/runs, or active test plans/runs unless they are updated.
-
deleteConfigGroup
default void deleteConfigGroup(org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroup cGroup) -
addConfig
org.touchbit.testrail4j.jackson2.model.TRProjectConfig addConfig(org.touchbit.testrail4j.jackson2.model.TRProjectConfig config, Long configGroupID)- Parameters:
configGroupID- The ID of the configuration group the configuration should be added toconfig- theTRProjectConfigrequest body- Returns:
- a new configuration
TRProjectConfig - See Also:
- API: Add config Creates a new configuration (requires TestRail 5.2 or later).
-
addConfig
default org.touchbit.testrail4j.jackson2.model.TRProjectConfig addConfig(org.touchbit.testrail4j.jackson2.model.TRProjectConfig config, org.touchbit.testrail4j.jackson2.model.TRProjectConfigGroup cGroup) -
updateConfig
org.touchbit.testrail4j.jackson2.model.TRProjectConfig updateConfig(org.touchbit.testrail4j.jackson2.model.TRProjectConfig config, Long configID)- Parameters:
configID- the ID of the configurationconfig- theTRProjectConfigrequest body- Returns:
- updated configuration
TRProjectConfig - See Also:
- API: Update config Updates an existing configuration (requires TestRail 5.2 or later).
-
updateConfig
default org.touchbit.testrail4j.jackson2.model.TRProjectConfig updateConfig(org.touchbit.testrail4j.jackson2.model.TRProjectConfig config) -
deleteConfig
- Parameters:
configID- the ID of the configuration- See Also:
- API: Delete config Deletes an existing configuration (requires TestRail 5.2 or later). Please note: Deleting a configuration cannot be undone. It does not, however, affect closed test plans/runs, or active test plans/runs unless they are updated.
-
deleteConfig
default void deleteConfig(org.touchbit.testrail4j.jackson2.model.TRProjectConfig config) -
getMilestone
- Parameters:
milestoneID- is the ID of the milestone- Returns:
- an existing milestone
TRMilestone - See Also:
- API: Get milestone
-
getMilestone
default org.touchbit.testrail4j.jackson2.model.TRMilestone getMilestone(org.touchbit.testrail4j.jackson2.model.TRMilestone milestone) -
getMilestones
List<org.touchbit.testrail4j.jackson2.model.TRMilestone> getMilestones(Long projectID, org.touchbit.testrail4j.core.query.GetMilestonesQueryMap queryMap)- Parameters:
projectID- is the ID of the project- Returns:
- the list of
TRMilestonefor a project. - See Also:
- API: Get milestones
-
getMilestones
-
getMilestones
default List<org.touchbit.testrail4j.jackson2.model.TRMilestone> getMilestones(org.touchbit.testrail4j.jackson2.model.TRProject project) -
getMilestones
default List<org.touchbit.testrail4j.jackson2.model.TRMilestone> getMilestones(org.touchbit.testrail4j.jackson2.model.TRProject project, org.touchbit.testrail4j.core.query.GetMilestonesQueryMap queryMap) -
addMilestone
org.touchbit.testrail4j.jackson2.model.TRMilestone addMilestone(org.touchbit.testrail4j.jackson2.model.TRMilestone milestone, Long projectID)- Parameters:
projectID- is the ID of the project the milestone should be added tomilestone- is the request bodyTRMilestone- Returns:
- a new
TRMilestone - See Also:
- API: Add milestone Creates a new milestone.
-
addMilestone
default org.touchbit.testrail4j.jackson2.model.TRMilestone addMilestone(org.touchbit.testrail4j.jackson2.model.TRMilestone milestone, org.touchbit.testrail4j.jackson2.model.TRProject project) -
updateMilestone
org.touchbit.testrail4j.jackson2.model.TRMilestone updateMilestone(org.touchbit.testrail4j.jackson2.model.TRMilestone milestone, Long milestoneID)- Parameters:
milestoneID- is the ID of the milestonemilestone- is the request bodyTRMilestoneRequest fields is_completed - True if a milestone is considered completed and false otherwise is_started - True if a milestone is considered started and false otherwise parent_id - The ID of the parent milestone, if any (for sub-milestones) (available since TestRail 5.3) start_on - The scheduled start date of the milestone (as UNIX timestamp) (available since TestRail 5.3)- Returns:
- updated
TRMilestone - See Also:
- API: Update milestone Updates an existing milestone (partial updates are supported, i.e. you can submit and update specific fields only).
-
updateMilestone
default org.touchbit.testrail4j.jackson2.model.TRMilestone updateMilestone(org.touchbit.testrail4j.jackson2.model.TRMilestone milestone) -
deleteMilestone
- See Also:
- API: Delete milestone Deletes an existing milestone.
-
deleteMilestone
default void deleteMilestone(org.touchbit.testrail4j.jackson2.model.TRMilestone milestone) -
getPriorities
List<org.touchbit.testrail4j.jackson2.model.TRPriority> getPriorities()- Returns:
- a list of available
TRPriority. The response include an array of priorities. Each priority has a unique ID, a name and a short version of the name. The priority field determines the order of the priorities. The is_default field is true for the default priority and false otherwise. [ { "id": 1, "is_default": false, "name": "1 - Don't Test", "priority": 1, "short_name": "1 - Don't" } ] - See Also:
- API: Get priorities
-
getUser
- Parameters:
userID- is the ID of the user- Returns:
- an existing
TRUser. - See Also:
- API: Get user
-
getUser
default org.touchbit.testrail4j.jackson2.model.TRUser getUser(org.touchbit.testrail4j.jackson2.model.TRUser user)SeegetUser(Long) -
getUserByEmail
- Parameters:
email- is the email address to get the user for- Returns:
- an existing
TRUserby his/her email address. - See Also:
- API: Get user by email
-
getUserByEmail
default org.touchbit.testrail4j.jackson2.model.TRUser getUserByEmail(org.touchbit.testrail4j.jackson2.model.TRUser user) -
getUsers
List<org.touchbit.testrail4j.jackson2.model.TRUser> getUsers()- Returns:
- a list of
TRUsers. - See Also:
- API: Get users
-
getTemplates
- Parameters:
projectID- is the ID of the project- Returns:
- a list of available
TRTemplates (requires TestRail 5.2 or later). - See Also:
- API: Get templates Returns a list of available templates (requires TestRail 5.2 or later). The response includes an array of templates (field layouts). Each template has a unique ID and a name. The is_default field is true for the default template and false otherwise.
-
getTemplates
default List<org.touchbit.testrail4j.jackson2.model.TRTemplate> getTemplates(org.touchbit.testrail4j.jackson2.model.TRProject project) -
getStatuses
List<org.touchbit.testrail4j.jackson2.model.TRStatus> getStatuses()- Returns:
- a list of available test
TRStatuses. The returned response includes all system and custom statuses - See Also:
- API: Get statuses
-
getResultFields
List<org.touchbit.testrail4j.jackson2.model.TRResultField> getResultFields()- Returns:
- a list of available test result custom fields
TRResultField. The response includes an array of custom field definitions. A custom field can have different configurations and options per project which is indicated by the configs field. To check if a custom field is applicable to a specific project (and to find out the field options for this project), the context of the field configuration must either be global (is_global) or include the ID of the project in project_ids. - See Also:
- API: Get result fields
-
getPlan
- Parameters:
planID- is the ID of the test plan- Returns:
- an existing test plan
TRPlan. The entries field includes an array of test plan entries. A test plan entry is a group of test runs that belong to the same test suite (just like in the user interface). Each group can have a variable amount of test runs and also supports configurations. - See Also:
- API: Get plan
-
getPlan
default org.touchbit.testrail4j.jackson2.model.TRPlan getPlan(org.touchbit.testrail4j.jackson2.model.TRPlan plan)SeegetPlan(Long) -
getPlans
List<org.touchbit.testrail4j.jackson2.model.TRPlan> getPlans(Long projectID, org.touchbit.testrail4j.core.query.GetPlansQueryMap queryMap)- Parameters:
projectID- is the ID of the projectqueryMap- is the request filter- Returns:
- a list of test
TRPlanfor a project. - See Also:
- API: Get plans
-
getPlans
-
getPlans
default List<org.touchbit.testrail4j.jackson2.model.TRPlan> getPlans(org.touchbit.testrail4j.jackson2.model.TRProject project) -
getPlans
default List<org.touchbit.testrail4j.jackson2.model.TRPlan> getPlans(org.touchbit.testrail4j.jackson2.model.TRProject project, org.touchbit.testrail4j.core.query.GetPlansQueryMap queryMap) -
addPlan
org.touchbit.testrail4j.jackson2.model.TRPlan addPlan(org.touchbit.testrail4j.jackson2.model.TRPlan plan, Long projectID)- Parameters:
projectID- is the ID of the project the test plan should be added toplan- is the request body- Returns:
- a new test
TRPlan. - See Also:
- API: Add plan Creates a new test plan. Request fields The following POST fields are supported: name - The name of the test plan (required) description - The description of the test plan milestone_id - The ID of the milestone to link to the test plan entries - An array of objects describing the test runs of the plan, see the example below and add_plan_entry
-
addPlan
default org.touchbit.testrail4j.jackson2.model.TRPlan addPlan(org.touchbit.testrail4j.jackson2.model.TRPlan plan, org.touchbit.testrail4j.jackson2.model.TRProject project) -
updatePlan
org.touchbit.testrail4j.jackson2.model.TRPlan updatePlan(org.touchbit.testrail4j.jackson2.model.TRPlan plan, Long planID)- Parameters:
planID- is the ID of the plan- Returns:
- the updated test
TRPlan. - See Also:
- API: Update plan Updates an existing test plan (partial updates are supported, i.e. you can submit and update specific fields only).
-
updatePlan
default org.touchbit.testrail4j.jackson2.model.TRPlan updatePlan(org.touchbit.testrail4j.jackson2.model.TRPlan plan) -
closePlan
- Parameters:
planID- is the ID of the plan- Returns:
- the closed test
TRPlan. - See Also:
- API: Close plan Closes an existing test plan and archives its test runs & results.
-
closePlan
default org.touchbit.testrail4j.jackson2.model.TRPlan closePlan(org.touchbit.testrail4j.jackson2.model.TRPlan plan)SeeclosePlan(Long) -
deletePlan
- Parameters:
planID- is the ID of the plan- See Also:
- API: Delete plan Deletes an existing test plan.
-
deletePlan
default void deletePlan(org.touchbit.testrail4j.jackson2.model.TRPlan plan)SeedeletePlan(Long) -
addPlanEntry
org.touchbit.testrail4j.jackson2.model.TRPlanEntry addPlanEntry(org.touchbit.testrail4j.jackson2.model.TRPlanEntry entry, Long planID)- Parameters:
planID- is the ID of the plan the test runs should be added toentry- is the request body. The following POST fields are supported: suite_id, name, description, assignedto_id, include_all, case_ids, config_ids, runs- Returns:
- the new test plan entry including test runs
- See Also:
- API: Add plan entry Adds one or more new test TRRuns to a test TRPlan.
-
addPlanEntry
default org.touchbit.testrail4j.jackson2.model.TRPlanEntry addPlanEntry(org.touchbit.testrail4j.jackson2.model.TRPlanEntry entry, org.touchbit.testrail4j.jackson2.model.TRPlan plan) -
updatePlanEntry
org.touchbit.testrail4j.jackson2.model.TRPlanEntry updatePlanEntry(org.touchbit.testrail4j.jackson2.model.TRPlanEntry entry, Long planID, String entryID)- Parameters:
planID- is the ID of the test planentryID- is the ID of the test plan entry (note: not the test run ID)entry- is the request body. The following POST fields are supported: name, description, assignedto_id, include_all, case_ids- Returns:
- the updated test @
TRPlanEntryincluding test runs - See Also:
- API: Update plan entry
-
updatePlanEntry
default org.touchbit.testrail4j.jackson2.model.TRPlanEntry updatePlanEntry(org.touchbit.testrail4j.jackson2.model.TRPlanEntry entry, org.touchbit.testrail4j.jackson2.model.TRPlan plan) -
deletePlanEntry
- Parameters:
planID- is the ID of the test planentryID- is the ID of the test plan entry (note: not the test run ID)- See Also:
- API: Delete plan entry Deletes one or more existing test runs from a plan.
-
deletePlanEntry
default void deletePlanEntry(org.touchbit.testrail4j.jackson2.model.TRPlan plan, org.touchbit.testrail4j.jackson2.model.TRPlanEntry entry)
-