Versions in this module Expand all Collapse all v1 v1.0.0 Mar 30, 2022 Changes in this version + const StatusBlocked + const StatusFailed + const StatusPassed + const StatusRetest + const StatusUntested + func TimespanFromDuration(duration time.Duration) *timespan + type Case struct + CreatedBy int + CreatedOn int + CustomExpected string + CustomPreconds string + CustomSteps string + CustomStepsSeparated []CustomStep + Estimate string + EstimateForecast string + ID int + MilestoneID int + Ownership string + PriorityID int + Refs string + SectionID int + State int + SuiteID int + Title string + TypeID int + UpdatedBy int + UpdatedOn int + type CaseField struct + Configs []CaseFieldConfig + Description string + DisplayOrder int + ID int + IsActive bool + Label string + Name string + SystemName string + TypeID int + type CaseFieldConfig struct + Context Context + ID string + Options CaseFieldOption + type CaseFieldOption struct + DefaultValue string + Format string + IsRequired bool + Rows string + type CaseType struct + ID int + IsDefault bool + Name string + type Client struct + func NewClient(url, username, password string, useBetaApi ...bool) (c *Client) + func NewCustomClient(url, username, password string, customHttpClient *http.Client, ...) (c *Client) + func (c *Client) AddCase(sectionID int, newCase SendableCase) (Case, error) + func (c *Client) AddMilestone(projectID int, newMilestone SendableMilestone) (Milestone, error) + func (c *Client) AddPlan(projectID int, newPlan SendablePlan) (Plan, error) + func (c *Client) AddPlanEntry(planID int, newEntry SendableEntry) (Entry, error) + func (c *Client) AddProject(newProject SendableProject) (Project, error) + func (c *Client) AddResult(testID int, newResult SendableResult) (Result, error) + func (c *Client) AddResultForCase(runID, caseID int, newResult SendableResult) (Result, error) + func (c *Client) AddResults(runID int, newResult SendableResults) ([]Result, error) + func (c *Client) AddResultsForCases(runID int, newResult SendableResultsForCase) ([]Result, error) + func (c *Client) AddRun(projectID int, newRun SendableRun) (Run, error) + func (c *Client) AddSection(projectID int, newSection SendableSection) (Section, error) + func (c *Client) AddSuite(projectID int, newSuite SendableSuite) (Suite, error) + func (c *Client) ClosePlan(planID int) (Plan, error) + func (c *Client) CloseRun(runID int) (Run, error) + func (c *Client) DeleteCase(caseID int) error + func (c *Client) DeleteMilestone(milestoneID int) error + func (c *Client) DeletePlan(planID int) error + func (c *Client) DeletePlanEntry(planID int, entryID string) error + func (c *Client) DeleteProject(projectID int) error + func (c *Client) DeleteRun(runID int) error + func (c *Client) DeleteSection(sectionID int) error + func (c *Client) DeleteSuite(suiteID int) error + func (c *Client) GenerateCustom() error + func (c *Client) GetCase(caseID int) (Case, error) + func (c *Client) GetCaseFields() ([]CaseField, error) + func (c *Client) GetCaseTypes() ([]CaseType, error) + func (c *Client) GetCases(projectID, suiteID int, sectionID ...int) ([]Case, error) + func (c *Client) GetCasesWithCustomFields(projectID, suiteID int, customArray interface{}, sectionID ...int) error + func (c *Client) GetCasesWithFilters(projectID, suiteID int, filters ...RequestFilterForCases) ([]Case, error) + func (c *Client) GetConfigs(projectID int) (configs []Configuration, err error) + func (c *Client) GetMilestone(milestoneID int) (Milestone, error) + func (c *Client) GetMilestones(projectID int, isCompleted ...bool) ([]Milestone, error) + func (c *Client) GetPlan(planID int) (Plan, error) + func (c *Client) GetPlans(projectID int, filters ...RequestFilterForPlan) ([]Plan, error) + func (c *Client) GetPriorities() ([]Priority, error) + func (c *Client) GetProject(projectID int) (Project, error) + func (c *Client) GetProjects(isCompleted ...bool) ([]Project, error) + func (c *Client) GetResultFields() ([]ResultField, error) + func (c *Client) GetResults(testID int, filters ...RequestFilterForCaseResults) ([]Result, error) + func (c *Client) GetResultsForCase(runID, caseID int, filters ...RequestFilterForCaseResults) ([]Result, error) + func (c *Client) GetResultsForRun(runID int, filters ...RequestFilterForRunResults) ([]Result, error) + func (c *Client) GetRun(runID int) (Run, error) + func (c *Client) GetRuns(projectID int, filters ...RequestFilterForRun) ([]Run, error) + func (c *Client) GetSection(sectionID int) (Section, error) + func (c *Client) GetSections(projectID int, suiteID ...int) ([]Section, error) + func (c *Client) GetStatuses() ([]Status, error) + func (c *Client) GetSuite(suiteID int) (Suite, error) + func (c *Client) GetSuites(projectID int) ([]Suite, error) + func (c *Client) GetTest(testID int) (Test, error) + func (c *Client) GetTests(runID int, statusID ...[]int) ([]Test, error) + func (c *Client) GetUser(userID int) (User, error) + func (c *Client) GetUserByEmail(email string) (User, error) + func (c *Client) GetUsers() ([]User, error) + func (c *Client) UpdateCase(caseID int, updates SendableCase) (Case, error) + func (c *Client) UpdateMilestone(milestoneID int, updates SendableMilestone) (Milestone, error) + func (c *Client) UpdatePlan(planID int, updates SendablePlan) (Plan, error) + func (c *Client) UpdatePlanEntry(planID int, entryID string, updates SendableEntry) (Entry, error) + func (c *Client) UpdateProject(projectID int, updates SendableProject, isCompleted ...bool) (Project, error) + func (c *Client) UpdateRun(runID int, update UpdatableRun) (Run, error) + func (c *Client) UpdateSection(sectionID int, update UpdatableSection) (Section, error) + func (c *Client) UpdateSuite(suiteID int, update SendableSuite) (Suite, error) + type Config struct + GroupID int + ID int + Name string + type Configuration struct + Configs []Config + ID int + Name string + ProjectID int + type Context struct + IsGlobal bool + ProjectIDs []int + type CustomStep struct + Content string + Expected string + type CustomStepResult struct + Actual string + Content string + Expected string + StatusID int + type Entry struct + ID string + Name string + Runs []Run + SuiteID int + type Links struct + Next *string + Prev *string + type Milestone struct + CompletedOn int + Description string + DueOn int + ID int + IsCompleted bool + Name string + ProjectID int + URL string + type Plan struct + AssignedToID int + BlockedCount int + CompletedOn int + CreatedBy int + CreatedOn int + CustomStatus1Count int + CustomStatus2Count int + CustomStatus3Count int + CustomStatus4Count int + CustomStatus5Count int + CustomStatus6Count int + CustomStatus7Count int + Description string + Entries []Entry + FailedCount int + ID int + IsCompleted bool + MilestoneID int + Name string + PassedCount int + ProjectID int + RetestCount int + URL string + UntestedCount int + type Priority struct + ID int + IsDefault bool + Name string + Priority int + ShortName string + type Project struct + Announcement string + CompletedOn int + ID int + IsCompleted bool + Name string + ShowAnnouncement bool + URL string + type RequestFilterForCaseResults struct + Limit *int + Offest *int + StatusID []int + type RequestFilterForCases struct + CreatedAfter string + CreatedBefore string + CreatedBy []int + MilestoneID []int + PriorityID []int + TypeID []int + UpdatedAfter string + UpdatedBefore string + UpdatedBy []int + type RequestFilterForPlan struct + CreatedAfter string + CreatedBefore string + CreatedBy []int + IsCompleted *bool + Limit *int + MilestoneID []int + Offset *int + type RequestFilterForRun struct + CreatedAfter string + CreatedBefore string + CreatedBy []int + IsCompleted *bool + Limit *int + MilestoneID []int + Offset *int + SuiteID []int + type RequestFilterForRunResults struct + CreatedAfter string + CreatedBefore string + CreatedBy []int + Limit *int + Offest *int + StatusID []int + type Result struct + AssignedtoID int + Comment string + CreatedBy int + CreatedOn timestamp + Defects string + Elapsed timespan + ID int + StatusID int + TestID int + Version string + type ResultField struct + Configs []ResultFieldConfig + Description string + DisplayOrder int + ID int + IsActive bool + Label string + Name string + SystemName string + TypeID int + type ResultFieldConfig struct + Context Context + ID string + Options ResultFieldOption + type ResultFieldOption struct + Format string + HasActual bool + HasExpected bool + IsRequired bool + type Results struct + TestID int + type ResultsForCase struct + CaseID int + type Run struct + AssignedToID int + BlockedCount int + CompletedOn int + Config string + ConfigIDs []int + CreatedBy int + CreatedOn int + CustomStatus1Count int + CustomStatus2Count int + CustomStatus3Count int + CustomStatus4Count int + CustomStatus5Count int + CustomStatus6Count int + CustomStatus7Count int + Description string + EntryID string + EntryIndex int + FailedCount int + ID int + IncludeAll bool + IsCompleted bool + MilestoneID int + Name string + PassedCount int + PlanID int + ProjectID int + RetestCount int + SuiteID int + URL string + UntestedCount int + type Section struct + Depth int + Description string + DisplayOrder int + ID int + Name string + ParentID int + SuiteID int + type SendableCase struct + Checkbox bool + Date string + Dropdown int + Estimate string + ExpectedResult string + Integer int + Milestone int + MilestoneID int + MultiSelect []int + Ownership string + Preconditions string + PriorityID int + Refs string + State int + Steps string + StepsSeparated []CustomStep + String string + TemplateId int + TestDescription string + Testability int + Text string + Title string + TypeID int + URL string + User int + type SendableEntry struct + AssignedtoID int + CaseIDs []int + ConfigIDs []int + IncludeAll bool + Name string + Runs []SendableRun + SuiteID int + type SendableMilestone struct + Description string + DueOn int + Name string + type SendablePlan struct + Description string + Entries []SendableEntry + MilestoneID int + Name string + type SendableProject struct + Announcement string + Name string + ShowAnnouncement bool + SuiteMode int + type SendableResult struct + AssignedToID int + Comment string + Defects string + Elapsed timespan + StatusID int + Version string + type SendableResults struct + Results []Results + type SendableResultsForCase struct + Results []ResultsForCase + type SendableRun struct + AssignedToID int + CaseIDs []int + ConfigIDs []int + Description string + IncludeAll *bool + MilestoneID int + Name string + SuiteID int + type SendableSection struct + Description string + Name string + ParentID int + SuiteID int + type SendableSuite struct + Description string + Name string + type Status struct + ColorBright int + ColorDark int + ColorMedium int + ID int + IsFinal bool + IsSystem bool + IsUntested bool + Label string + Name string + type Suite struct + CompletedOn int + Description string + ID int + IsBaseline bool + IsCompleted bool + IsMaster bool + Name string + ProjectID int + URL string + type Test struct + AssignedToID int + CaseID int + Estimate string + EstimateForecast string + ID int + MilestoneID int + PriorityID int + Refs string + RunID int + StatusID int + Title string + TypeID int + type UpdatableRun struct + CaseIDs []int + Description string + IncludeAll *bool + MilestoneID int + Name string + type UpdatableSection struct + Description string + Name string + type User struct + Email string + ID int + IsActive bool + Name string