Documentation ¶
Index ¶
- type ArchiveTestRunReq
- type ArchiveTestRunResp
- type CreateAttachmentPrepareSignUrlReq
- type CreateAttachmentPrepareSignUrlResp
- type CreateCaseResultReq
- type CreateCaseResultResp
- type CreateReportReq
- type CreateReportResp
- type CreateTestCaseReq
- type CreateTestCaseResp
- type CreateTestCaseSectionReq
- type CreateTestCaseSectionResp
- type CreateTestDefectReq
- type CreateTestDefectResp
- type CreateTestResultReq
- type CreateTestResultResp
- type CreateTestResultsReq
- type CreateTestResultsResp
- type CreateTestRunReq
- type CreateTestRunResp
- type CreateTestStepResultReq
- type CreateTestStepResultResp
- type DeleteReportReq
- type DeleteReportResp
- type DeleteTestCaseReq
- type DeleteTestCaseResp
- type DeleteTestCaseSectionReq
- type DeleteTestCaseSectionResp
- type DeleteTestRunReq
- type DeleteTestRunResp
- type DescribeReportListReq
- type DescribeReportListResp
- type DescribeReportReq
- type DescribeReportResp
- type DescribeRequirementTestCaseListReq
- type DescribeRequirementTestCaseListResp
- type DescribeTestCaseListReq
- type DescribeTestCaseListResp
- type DescribeTestCaseReq
- type DescribeTestCaseResp
- type DescribeTestCaseSectionListReq
- type DescribeTestCaseSectionListResp
- type DescribeTestDefectListReq
- type DescribeTestDefectListResp
- type DescribeTestListReq
- type DescribeTestListResp
- type DescribeTestReq
- type DescribeTestResp
- type DescribeTestRunListReq
- type DescribeTestRunListResp
- type DescribeTestRunReq
- type DescribeTestRunResp
- type ModifyTestCaseReq
- type ModifyTestCaseResp
- type ModifyTestCaseSectionReq
- type ModifyTestCaseSectionResp
- type ModifyTestRunReq
- type ModifyTestRunResp
- type Test
- func (t *Test) ArchiveTestRun(req *ArchiveTestRunReq) (resp ArchiveTestRunResp, err error)
- func (t *Test) CreateAttachmentPrepareSignUrl(req *CreateAttachmentPrepareSignUrlReq) (resp CreateAttachmentPrepareSignUrlResp, err error)
- func (t *Test) CreateCaseResult(req *CreateCaseResultReq) (resp CreateCaseResultResp, err error)
- func (t *Test) CreateReport(req *CreateReportReq) (resp CreateReportResp, err error)
- func (t *Test) CreateTestCase(req *CreateTestCaseReq) (resp CreateTestCaseResp, err error)
- func (t *Test) CreateTestCaseSection(req *CreateTestCaseSectionReq) (resp CreateTestCaseSectionResp, err error)
- func (t *Test) CreateTestDefect(req *CreateTestDefectReq) (resp CreateTestDefectResp, err error)
- func (t *Test) CreateTestResult(req *CreateTestResultReq) (resp CreateTestResultResp, err error)
- func (t *Test) CreateTestResults(req *CreateTestResultsReq) (resp CreateTestResultsResp, err error)
- func (t *Test) CreateTestRun(req *CreateTestRunReq) (resp CreateTestRunResp, err error)
- func (t *Test) CreateTestStepResult(req *CreateTestStepResultReq) (resp CreateTestStepResultResp, err error)
- func (t *Test) DeleteReport(req *DeleteReportReq) (resp DeleteReportResp, err error)
- func (t *Test) DeleteTestCase(req *DeleteTestCaseReq) (resp DeleteTestCaseResp, err error)
- func (t *Test) DeleteTestCaseSection(req *DeleteTestCaseSectionReq) (resp DeleteTestCaseSectionResp, err error)
- func (t *Test) DeleteTestRun(req *DeleteTestRunReq) (resp DeleteTestRunResp, err error)
- func (t *Test) DescribeReport(req *DescribeReportReq) (resp DescribeReportResp, err error)
- func (t *Test) DescribeReportList(req *DescribeReportListReq) (resp DescribeReportListResp, err error)
- func (t *Test) DescribeRequirementTestCaseList(req *DescribeRequirementTestCaseListReq) (resp DescribeRequirementTestCaseListResp, err error)
- func (t *Test) DescribeTest(req *DescribeTestReq) (resp DescribeTestResp, err error)
- func (t *Test) DescribeTestCase(req *DescribeTestCaseReq) (resp DescribeTestCaseResp, err error)
- func (t *Test) DescribeTestCaseList(req *DescribeTestCaseListReq) (resp DescribeTestCaseListResp, err error)
- func (t *Test) DescribeTestCaseSectionList(req *DescribeTestCaseSectionListReq) (resp DescribeTestCaseSectionListResp, err error)
- func (t *Test) DescribeTestDefectList(req *DescribeTestDefectListReq) (resp DescribeTestDefectListResp, err error)
- func (t *Test) DescribeTestList(req *DescribeTestListReq) (resp DescribeTestListResp, err error)
- func (t *Test) DescribeTestRun(req *DescribeTestRunReq) (resp DescribeTestRunResp, err error)
- func (t *Test) DescribeTestRunList(req *DescribeTestRunListReq) (resp DescribeTestRunListResp, err error)
- func (t *Test) ModifyTestCase(req *ModifyTestCaseReq) (resp ModifyTestCaseResp, err error)
- func (t *Test) ModifyTestCaseSection(req *ModifyTestCaseSectionReq) (resp ModifyTestCaseSectionResp, err error)
- func (t *Test) ModifyTestRun(req *ModifyTestRunReq) (resp ModifyTestRunResp, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveTestRunReq ¶
type ArchiveTestRunResp ¶
type ArchiveTestRunResp struct { Response struct { Data struct { Run struct { AssignedToID int64 `json:"AssignedToId"` // 0 BlockedCount int64 `json:"BlockedCount"` // 0 CompletedAt interface{} `json:"CompletedAt"` // <nil> CreatedAt string `json:"CreatedAt"` // 2020-09-16 15:10:08 CreatedBy int64 `json:"CreatedBy"` // 1 Description string `json:"Description"` // FailedCount int64 `json:"FailedCount"` // 0 ID int64 `json:"Id"` // 89 IncludeAll bool `json:"IncludeAll"` // true IsCompleted bool `json:"IsCompleted"` // false IterationID interface{} `json:"IterationId"` // <nil> Name string `json:"Name"` // run demo PassedCount int64 `json:"PassedCount"` // 0 RetestCount int64 `json:"RetestCount"` // 0 UntestedCount int64 `json:"UntestedCount"` // 18 } `json:"Run"` } `json:"Data"` RequestID string `json:"RequestId"` // daba6d8a-0a62-e6fd-f502-a4594888561a } `json:"Response"` }
type CreateAttachmentPrepareSignUrlResp ¶
type CreateAttachmentPrepareSignUrlResp struct { Response struct { Data struct { AttachmentPrepare struct { AttachmentID int64 `json:"AttachmentId"` // 1750 PrepareSignURL string `json:"PrepareSignUrl"` // http://www.coding.net/xxxx } `json:"AttachmentPrepare"` } `json:"Data"` RequestID string `json:"RequestId"` // 980cbd88-caac-626a-8c8d-8019acf41bb4 } `json:"Response"` }
type CreateCaseResultReq ¶
type CreateCaseResultReq struct { Action string `json:"Action"` // CreateCaseResult CaseID int64 `json:"CaseId"` // 110 CustomStepStatus []string `json:"CustomStepStatus"` // PASSED ProjectName string `json:"ProjectName"` // project-demo RunID int64 `json:"RunId"` // 110 Status string `json:"Status"` // PASSED }
type CreateCaseResultResp ¶
type CreateCaseResultResp struct { Response struct { RequestID string `json:"RequestId"` // 7a671ad6-42f6-1d9d-5c0c-f0723933e9a1 } `json:"Response"` }
type CreateReportReq ¶
type CreateReportResp ¶
type CreateReportResp struct { Response struct { Data struct { Report struct { CreatedAt string `json:"CreatedAt"` // 2021-06-28 15:33:42 ID int64 `json:"Id"` // 1750 Name string `json:"Name"` // 报告2 StatisticsEndTime string `json:"StatisticsEndTime"` // 2021-06-28 15:33:42 StatisticsStartTime string `json:"StatisticsStartTime"` // 2021-06-16 10:44:26 Status string `json:"Status"` // UNAVAILABLE Summary interface{} `json:"Summary"` // <nil> } `json:"Report"` } `json:"Data"` RequestID string `json:"RequestId"` // 980cbd88-caac-626a-8c8d-8019acf41bb4 } `json:"Response"` }
type CreateTestCaseReq ¶
type CreateTestCaseReq struct { Action string `json:"Action"` // CreateTestCase CustomSteps []struct { Content string `json:"Content"` // expected Expected string `json:"Expected"` // steps } `json:"CustomSteps"` Expected string `json:"Expected"` // expected Preconds string `json:"Preconds"` // preconds Priority int64 `json:"Priority"` // 1 ProjectName int64 `json:"ProjectName,string"` // 2 SectionID int64 `json:"SectionId"` // 1 Steps string `json:"Steps"` // Steps TemplateType string `json:"TemplateType"` // STEPS Title string `json:"Title"` // helel }
type CreateTestCaseResp ¶
type CreateTestCaseResp struct { Response struct { Data struct { Case struct { CreatedAt string `json:"CreatedAt"` // 2020-09-15 16:34:21 CreatedBy int64 `json:"CreatedBy,string"` // 1 CustomSteps []struct { Content string `json:"Content"` // expected Expected string `json:"Expected"` // steps } `json:"CustomSteps"` Expected string `json:"Expected"` // expected ID int64 `json:"Id"` // 65 Preconds string `json:"Preconds"` // preconds Priority int64 `json:"Priority"` // 2 SectionID int64 `json:"SectionId"` // 1 Sort int64 `json:"Sort"` // 15 Steps string `json:"Steps"` // setps TemplateType string `json:"TemplateType"` // STEPS Title string `json:"Title"` // helel UpdatedAt string `json:"UpdatedAt"` // 2020-09-15 16:34:21 } `json:"Case"` } `json:"Data"` RequestID string `json:"RequestId"` // 7a671ad6-42f6-1d9d-5c0c-f0723933e9a0 } `json:"Response"` }
type CreateTestCaseSectionResp ¶
type CreateTestCaseSectionResp struct { Response struct { Data struct { Section struct { ID int64 `json:"Id"` // 4 Name int64 `json:"Name,string"` // 2211 ParentID int64 `json:"ParentId"` // 0 Sort int64 `json:"Sort"` // 4 } `json:"Section"` } `json:"Data"` RequestID string `json:"RequestId"` // fe82d911-5911-33f4-26f0-b2287bb8ce4c } `json:"Response"` }
type CreateTestDefectReq ¶
type CreateTestDefectResp ¶
type CreateTestDefectResp struct { Response struct { RequestID string `json:"RequestId"` // 7a671ad6-42f6-1d9d-5c0c-f0723933e9a1 } `json:"Response"` }
type CreateTestResultReq ¶
type CreateTestResultResp ¶
type CreateTestResultResp struct { Response struct { RequestID string `json:"RequestId"` // 7a671ad6-42f6-1d9d-5c0c-f0723933e9a1 } `json:"Response"` }
type CreateTestResultsReq ¶
type CreateTestResultsResp ¶
type CreateTestResultsResp struct { Response struct { RequestID string `json:"RequestId"` // 980cbd88-caac-626a-8c8d-8019acf41bb4 } `json:"Response"` }
type CreateTestRunReq ¶
type CreateTestRunResp ¶
type CreateTestRunResp struct { Response struct { Data struct { Run struct { AssignedToID int64 `json:"AssignedToId"` // 0 BlockedCount int64 `json:"BlockedCount"` // 0 CompletedAt interface{} `json:"CompletedAt"` // <nil> ConfigEnvironmentID int64 `json:"ConfigEnvironmentId"` // 2 CreatedAt string `json:"CreatedAt"` // 2020-09-16 15:10:08 CreatedBy int64 `json:"CreatedBy"` // 1 Days int64 `json:"Days"` // 0 Description string `json:"Description"` // ExecuteType int64 `json:"ExecuteType"` // 1 FailedCount int64 `json:"FailedCount"` // 0 GitDepotID int64 `json:"GitDepotId"` // 1 GitDepotName string `json:"GitDepotName"` // git-test GitReleaseID int64 `json:"GitReleaseId"` // 1580 GitReleaseName float64 `json:"GitReleaseName,string"` // 20210621.1 GitReleaseState int64 `json:"GitReleaseState"` // 0 ID int64 `json:"Id"` // 89 IncludeAll bool `json:"IncludeAll"` // true IsCompleted bool `json:"IsCompleted"` // false IterationID interface{} `json:"IterationId"` // <nil> IterationName interface{} `json:"IterationName"` // <nil> Name string `json:"Name"` // run demo PassedCount int64 `json:"PassedCount"` // 0 RetestCount int64 `json:"RetestCount"` // 0 SectionID int64 `json:"SectionId"` // -1 SectionName interface{} `json:"SectionName"` // <nil> State interface{} `json:"State"` // <nil> UntestedCount int64 `json:"UntestedCount"` // 18 } `json:"Run"` } `json:"Data"` RequestID string `json:"RequestId"` // daba6d8a-0a62-e6fd-f502-a4594888561a } `json:"Response"` }
type CreateTestStepResultReq ¶
type CreateTestStepResultReq struct { Action string `json:"Action"` // CreateTestStepResult Actual string `json:"Actual"` // Actual ProjectName string `json:"ProjectName"` // demo-project Status string `json:"Status"` // PASSED StepIndex int64 `json:"StepIndex"` // 2 StepStatus string `json:"StepStatus"` // FAILED TestID int64 `json:"TestId"` // 2 }
type CreateTestStepResultResp ¶
type CreateTestStepResultResp struct { Response struct { RequestID string `json:"RequestId"` // 7a671ad6-42f6-1d9d-5c0c-f0723933e9a1 } `json:"Response"` }
type DeleteReportReq ¶
type DeleteReportResp ¶
type DeleteReportResp struct { Response struct { RequestID string `json:"RequestId"` // 980cbd88-caac-626a-8c8d-8019acf41bb4 } `json:"Response"` }
type DeleteTestCaseReq ¶
type DeleteTestCaseResp ¶
type DeleteTestCaseResp struct { Response struct { RequestID string `json:"RequestId"` // 7a671ad6-42f6-1d9d-5c0c-f0723933e9a0 } `json:"Response"` }
type DeleteTestCaseSectionResp ¶
type DeleteTestCaseSectionResp struct { Response struct { RequestID string `json:"RequestId"` // 7a671ad6-42f6-1d9d-5c0c-f0723933e9a1 } `json:"Response"` }
type DeleteTestRunReq ¶
type DeleteTestRunResp ¶
type DeleteTestRunResp struct { Response struct { RequestID string `json:"RequestId"` // daba6d8a-0a62-e6fd-f502-a4594888561a } `json:"Response"` }
type DescribeReportListReq ¶
type DescribeReportListResp ¶
type DescribeReportListResp struct { Response struct { Data struct { Reports []struct { CreatedAt string `json:"CreatedAt"` // 2021-06-28 15:33:42 CreatedBy int64 `json:"CreatedBy"` // 1 ID int64 `json:"Id"` // 1750 Name string `json:"Name"` // 报告2 StatisticsEndTime string `json:"StatisticsEndTime"` // 2021-06-28 15:33:42 StatisticsStartTime string `json:"StatisticsStartTime"` // 2021-06-16 10:44:26 Status string `json:"Status"` // UNAVAILABLE Summary interface{} `json:"Summary"` // <nil> } `json:"Reports"` } `json:"Data"` RequestID string `json:"RequestId"` // 980cbd88-caac-626a-8c8d-8019acf41bb4 } `json:"Response"` }
type DescribeReportReq ¶
type DescribeReportResp ¶
type DescribeReportResp struct { Response struct { Data struct { Report struct { CreatedAt string `json:"CreatedAt"` // 2021-06-23 17:10:51 CreatedBy int64 `json:"CreatedBy"` // 1 ID int64 `json:"Id"` // 1595 IterationIDs int64 `json:"IterationIds,string"` // 1 IterationNames string `json:"IterationNames"` // Sprint-1 Name string `json:"Name"` // 报告 ProjectName string `json:"ProjectName"` // Project Name ReportOverview struct { AutomationPercent int64 `json:"AutomationPercent"` // 0 AvgClosedSeconds int64 `json:"AvgClosedSeconds"` // -1 CaseSum int64 `json:"CaseSum"` // 3 CompletedSum int64 `json:"CompletedSum"` // 0 DefectFixPercent int64 `json:"DefectFixPercent"` // 0 DefectReopenPercent int64 `json:"DefectReopenPercent"` // 0 DefectSum int64 `json:"DefectSum"` // 0 DurationFixed int64 `json:"DurationFixed"` // -1 ExecPercent int64 `json:"ExecPercent"` // 100 IssuesSum int64 `json:"IssuesSum"` // 4 PassPercent int64 `json:"PassPercent"` // 0 ProcessingSum int64 `json:"ProcessingSum"` // 0 RequirementCoverPercent int64 `json:"RequirementCoverPercent"` // 50 TodoSum int64 `json:"TodoSum"` // 4 } `json:"ReportOverview"` RunIDs []string `json:"RunIds"` // 20 RunNames []string `json:"RunNames"` // 计划 StatisticsEndTime string `json:"StatisticsEndTime"` // 2021-06-23 StatisticsStartTime string `json:"StatisticsStartTime"` // 2021-06-22 Status string `json:"Status"` // AVAILABLE Summary interface{} `json:"Summary"` // <nil> TemplateID interface{} `json:"TemplateId"` // <nil> } `json:"Report"` } `json:"Data"` RequestID string `json:"RequestId"` // 980cbd88-caac-626a-8c8d-8019acf41bb4 } `json:"Response"` }
type DescribeRequirementTestCaseListResp ¶
type DescribeRequirementTestCaseListResp struct { Response struct { Data struct { Cases []struct { CreatedAt string `json:"CreatedAt"` // 2020-09-15 15:32:59 CreatedBy int64 `json:"CreatedBy"` // 1 CustomSteps []struct { Content string `json:"Content"` // expected Expected string `json:"Expected"` // steps } `json:"CustomSteps"` Expected interface{} `json:"Expected"` // <nil> ID int64 `json:"Id"` // 53 Preconds string `json:"Preconds"` // preconds Priority int64 `json:"Priority"` // 2 SectionID int64 `json:"SectionId"` // 1 Sort int64 `json:"Sort"` // 3 Steps interface{} `json:"Steps"` // <nil> TemplateType string `json:"TemplateType"` // STEPS Title string `json:"Title"` // helel22 UpdatedAt string `json:"UpdatedAt"` // 2020-09-15 15:35:28 } `json:"Cases"` } `json:"Data"` RequestID string `json:"RequestId"` // b18a050b-7530-a56b-cb37-98831ef3cf6c } `json:"Response"` }
type DescribeTestCaseListReq ¶
type DescribeTestCaseListReq struct { Action string `json:"Action"` // DescribeTestCaseList Keyword string `json:"Keyword"` // xx Priority int64 `json:"Priority"` // 1 ProjectName string `json:"ProjectName"` // xx SectionID int64 `json:"SectionId"` // 1 TemplateType string `json:"TemplateType"` // xx }
type DescribeTestCaseListResp ¶
type DescribeTestCaseListResp struct { Response struct { Data struct { Cases []struct { CreatedAt string `json:"CreatedAt"` // 2020-09-15 15:32:59 CreatedBy int64 `json:"CreatedBy"` // 1 CustomSteps []struct { Content string `json:"Content"` // expected Expected string `json:"Expected"` // steps } `json:"CustomSteps"` Expected interface{} `json:"Expected"` // <nil> ID int64 `json:"Id"` // 53 Preconds string `json:"Preconds"` // preconds Priority int64 `json:"Priority"` // 2 SectionID int64 `json:"SectionId"` // 1 Sort int64 `json:"Sort"` // 3 Steps interface{} `json:"Steps"` // <nil> TemplateType string `json:"TemplateType"` // STEPS Title string `json:"Title"` // helel22 UpdatedAt string `json:"UpdatedAt"` // 2020-09-15 15:35:28 } `json:"Cases"` } `json:"Data"` RequestID string `json:"RequestId"` // b18a050b-7530-a56b-cb37-98831ef3cf6c } `json:"Response"` }
type DescribeTestCaseReq ¶
type DescribeTestCaseResp ¶
type DescribeTestCaseResp struct { Response struct { Data struct { Case struct { CreatedAt string `json:"CreatedAt"` // 2020-09-15 16:34:21 CreatedBy int64 `json:"CreatedBy"` // 1 CustomSteps []struct { Content string `json:"Content"` // expected Expected string `json:"Expected"` // steps } `json:"CustomSteps"` Expected string `json:"Expected"` // expected ID int64 `json:"Id"` // 65 Preconds string `json:"Preconds"` // preconds Priority int64 `json:"Priority"` // 2 SectionID int64 `json:"SectionId"` // 1 Sort int64 `json:"Sort"` // 15 Steps string `json:"Steps"` // setps TemplateType string `json:"TemplateType"` // STEPS Title string `json:"Title"` // helel UpdatedAt string `json:"UpdatedAt"` // 2020-09-15 16:34:21 } `json:"Case"` } `json:"Data"` RequestID string `json:"RequestId"` // 7a671ad6-42f6-1d9d-5c0c-f0723933e9a0 } `json:"Response"` }
type DescribeTestCaseSectionListResp ¶
type DescribeTestCaseSectionListResp struct { Response struct { Data struct { Sections []struct { ID int64 `json:"Id"` // 1 Name int64 `json:"Name,string"` // 1 ParentID int64 `json:"ParentId"` // 0 Sort int64 `json:"Sort"` // 1 } `json:"Sections"` } `json:"Data"` RequestID string `json:"RequestId"` // 62741944-506c-3c11-e77b-47f23fb79086 } `json:"Response"` }
type DescribeTestDefectListResp ¶
type DescribeTestDefectListResp struct { Response struct { Data struct { Defects []struct { AssignedTo string `json:"AssignedTo"` // Author string `json:"Author"` // coding CreatedAt string `json:"CreatedAt"` // 2021-07-09 15:13:46 Description string `json:"Description"` // ID int64 `json:"Id"` // 1973 Name string `json:"Name"` // 一个缺陷 Status string `json:"Status"` // TODO StatusName string `json:"StatusName"` // 待处理 } `json:"Defects"` } `json:"Data"` RequestID string `json:"RequestId"` // 2efcd378-f6cf-83c0-b705-86896740b45e } `json:"Response"` }
type DescribeTestListReq ¶
type DescribeTestListResp ¶
type DescribeTestListResp struct { Response struct { Data struct { Tests []struct { AssignedToID int64 `json:"AssignedToId"` // 0 CaseID int64 `json:"CaseId"` // 52 ID int64 `json:"Id"` // 71 IsCompleted bool `json:"IsCompleted"` // true Priority int64 `json:"Priority"` // 2 SectionID int64 `json:"SectionId"` // 5 Sort int64 `json:"Sort"` // 2 Status string `json:"Status"` // UNTESTED TestedAt string `json:"TestedAt"` // xx Title string `json:"Title"` // helel } `json:"Tests"` } `json:"Data"` RequestID string `json:"RequestId"` // 2efcd378-f6cf-83c0-b705-86896740b45e } `json:"Response"` }
type DescribeTestReq ¶
type DescribeTestResp ¶
type DescribeTestResp struct { Response struct { Data struct { Test struct { AssignedToID int64 `json:"AssignedToId"` // 0 Case struct { Attachments []struct { CreatedAt string `json:"CreatedAt"` // 2021-07-09 11:04:19 ID int64 `json:"Id"` // 14 Name string `json:"Name"` // filename URL string `json:"Url"` // https://coding.com } `json:"Attachments"` CreatedAt string `json:"CreatedAt"` // 2021-05-24 15:08:58 CreatedBy int64 `json:"CreatedBy"` // 1 CustomSteps []interface{} `json:"CustomSteps"` // <nil> Expected string `json:"Expected"` // 提示密码不能为空 ID int64 `json:"Id"` // 1 Preconds string `json:"Preconds"` // 用户手机号,验证码和密码 Priority int64 `json:"Priority"` // 2 SectionID int64 `json:"SectionId"` // 2 Sort int64 `json:"Sort"` // 1 Steps string `json:"Steps"` // 输入手机号和验证码 TemplateType string `json:"TemplateType"` // TEXT Title string `json:"Title"` // 手机注册 UpdatedAt string `json:"UpdatedAt"` // 2021-07-09 11:04:21 } `json:"Case"` CaseID int64 `json:"CaseId"` // 1 ID int64 `json:"Id"` // 1533 IsCompleted bool `json:"IsCompleted"` // false Priority int64 `json:"Priority"` // 2 SectionID int64 `json:"SectionId"` // 2 SectionPath []string `json:"SectionPath"` // 分组一级 Sort int64 `json:"Sort"` // 1 Status string `json:"Status"` // PASSED TestedAt string `json:"TestedAt"` // 2021-07-09 11:39:24 TestedBy int64 `json:"TestedBy"` // 1 Title string `json:"Title"` // 手机注册 } `json:"Test"` } `json:"Data"` RequestID string `json:"RequestId"` // 2efcd378-f6cf-83c0-b705-86896740b45e } `json:"Response"` }
type DescribeTestRunListReq ¶
type DescribeTestRunListResp ¶
type DescribeTestRunListResp struct { Response struct { Data struct { Runs []struct { AssignedToID int64 `json:"AssignedToId"` // 0 BlockedCount int64 `json:"BlockedCount"` // 0 CompletedAt interface{} `json:"CompletedAt"` // <nil> ConfigEnvironmentID int64 `json:"ConfigEnvironmentId"` // 2 CreatedAt string `json:"CreatedAt"` // 2021-06-28 11:44:02 CreatedBy int64 `json:"CreatedBy"` // 1 Days int64 `json:"Days"` // 9 Description string `json:"Description"` // 描述 ExecuteType int64 `json:"ExecuteType"` // 1 FailedCount int64 `json:"FailedCount"` // 0 GitDepotID int64 `json:"GitDepotId"` // 1 GitDepotName string `json:"GitDepotName"` // git-test GitReleaseID int64 `json:"GitReleaseId"` // 1580 GitReleaseName float64 `json:"GitReleaseName,string"` // 20210621.1 GitReleaseState int64 `json:"GitReleaseState"` // 0 ID int64 `json:"Id"` // 1747 IncludeAll bool `json:"IncludeAll"` // false IsCompleted bool `json:"IsCompleted"` // false IterationID interface{} `json:"IterationId"` // <nil> IterationName interface{} `json:"IterationName"` // <nil> Name string `json:"Name"` // 有个计划 PassedCount int64 `json:"PassedCount"` // 0 RetestCount int64 `json:"RetestCount"` // 0 SectionID int64 `json:"SectionId"` // -1 SectionName interface{} `json:"SectionName"` // <nil> State int64 `json:"State"` // 0 UntestedCount int64 `json:"UntestedCount"` // 2 } `json:"Runs"` } `json:"Data"` RequestID string `json:"RequestId"` // 5ad95c11-a31e-db3e-76ca-59a7bce92958 } `json:"Response"` }
type DescribeTestRunReq ¶
type DescribeTestRunResp ¶
type DescribeTestRunResp struct { Response struct { Data struct { Run struct { AssignedToID int64 `json:"AssignedToId"` // 0 BlockedCount int64 `json:"BlockedCount"` // 0 CompletedAt interface{} `json:"CompletedAt"` // <nil> ConfigEnvironmentID int64 `json:"ConfigEnvironmentId"` // 1 CreatedAt string `json:"CreatedAt"` // 2021-06-17 17:32:52 CreatedBy int64 `json:"CreatedBy"` // 1 Days int64 `json:"Days"` // 19 Description string `json:"Description"` // ExecuteType int64 `json:"ExecuteType"` // 1 FailedCount int64 `json:"FailedCount"` // 0 GitDepotID int64 `json:"GitDepotId"` // 1 GitDepotName string `json:"GitDepotName"` // git-test GitReleaseID int64 `json:"GitReleaseId"` // 1549 GitReleaseName float64 `json:"GitReleaseName,string"` // 20210617.1 GitReleaseState int64 `json:"GitReleaseState"` // 0 ID int64 `json:"Id"` // 1550 IncludeAll bool `json:"IncludeAll"` // false IsCompleted bool `json:"IsCompleted"` // false IterationID interface{} `json:"IterationId"` // <nil> IterationName interface{} `json:"IterationName"` // <nil> Name string `json:"Name"` // 测试计划 PassedCount int64 `json:"PassedCount"` // 0 RetestCount int64 `json:"RetestCount"` // 0 SectionID int64 `json:"SectionId"` // -1 SectionName interface{} `json:"SectionName"` // <nil> State int64 `json:"State"` // 0 UntestedCount int64 `json:"UntestedCount"` // 2 } `json:"Run"` } `json:"Data"` RequestID string `json:"RequestId"` // daba6d8a-0a62-e6fd-f502-a4594888561a } `json:"Response"` }
type ModifyTestCaseReq ¶
type ModifyTestCaseReq struct { Action string `json:"Action"` // ModifyTestCase CaseID int64 `json:"CaseId"` // 1 CustomSteps []struct { Content string `json:"Content"` // expected Expected string `json:"Expected"` // steps } `json:"CustomSteps"` Expected string `json:"Expected"` // expected Preconds string `json:"Preconds"` // preconds Priority int64 `json:"Priority"` // 1 ProjectName int64 `json:"ProjectName,string"` // 2 SectionID int64 `json:"SectionId"` // 1 Steps string `json:"Steps"` // Steps TemplateType string `json:"TemplateType"` // STEPS Title string `json:"Title"` // helel }
type ModifyTestCaseResp ¶
type ModifyTestCaseResp struct { Response struct { Data struct { Case struct { CreatedAt string `json:"CreatedAt"` // 2020-09-15 16:34:21 CreatedBy int64 `json:"CreatedBy"` // 1 CustomSteps []struct { Content string `json:"Content"` // expected Expected string `json:"Expected"` // steps } `json:"CustomSteps"` Expected string `json:"Expected"` // expected ID int64 `json:"Id"` // 65 Preconds string `json:"Preconds"` // preconds Priority int64 `json:"Priority"` // 2 SectionID int64 `json:"SectionId"` // 1 Sort int64 `json:"Sort"` // 15 Steps string `json:"Steps"` // setps TemplateType string `json:"TemplateType"` // STEPS Title string `json:"Title"` // helel UpdatedAt string `json:"UpdatedAt"` // 2020-09-15 16:34:21 } `json:"Case"` } `json:"Data"` RequestID string `json:"RequestId"` // 7a671ad6-42f6-1d9d-5c0c-f0723933e9a0 } `json:"Response"` }
type ModifyTestCaseSectionResp ¶
type ModifyTestCaseSectionResp struct { Response struct { Data struct { Section struct { ID int64 `json:"Id"` // 4 Name int64 `json:"Name,string"` // 2211 ParentID int64 `json:"ParentId"` // 0 Sort int64 `json:"Sort"` // 4 } `json:"Section"` } `json:"Data"` RequestID string `json:"RequestId"` // fe82d911-5911-33f4-26f0-b2287bb8ce4c } `json:"Response"` }
type ModifyTestRunReq ¶
type ModifyTestRunResp ¶
type ModifyTestRunResp struct { Response struct { Data struct { Run struct { AssignedToID int64 `json:"AssignedToId"` // 0 BlockedCount int64 `json:"BlockedCount"` // 0 CompletedAt interface{} `json:"CompletedAt"` // <nil> ConfigEnvironmentID int64 `json:"ConfigEnvironmentId"` // 2 CreatedAt string `json:"CreatedAt"` // 2020-09-16 15:10:08 CreatedBy int64 `json:"CreatedBy"` // 1 Days int64 `json:"Days"` // 0 Description string `json:"Description"` // ExecuteType int64 `json:"ExecuteType"` // 1 FailedCount int64 `json:"FailedCount"` // 0 GitDepotID int64 `json:"GitDepotId"` // 1 GitDepotName string `json:"GitDepotName"` // git-test GitReleaseID int64 `json:"GitReleaseId"` // 1580 GitReleaseName float64 `json:"GitReleaseName,string"` // 20210621.1 GitReleaseState int64 `json:"GitReleaseState"` // 0 ID int64 `json:"Id"` // 89 IncludeAll bool `json:"IncludeAll"` // true IsCompleted bool `json:"IsCompleted"` // false IterationID interface{} `json:"IterationId"` // <nil> IterationName interface{} `json:"IterationName"` // <nil> Name string `json:"Name"` // run demo PassedCount int64 `json:"PassedCount"` // 0 RetestCount int64 `json:"RetestCount"` // 0 SectionID int64 `json:"SectionId"` // -1 SectionName interface{} `json:"SectionName"` // <nil> State interface{} `json:"State"` // <nil> UntestedCount int64 `json:"UntestedCount"` // 18 } `json:"Run"` } `json:"Data"` RequestID string `json:"RequestId"` // daba6d8a-0a62-e6fd-f502-a4594888561a } `json:"Response"` }
type Test ¶
type Test struct {
// contains filtered or unexported fields
}
func (*Test) ArchiveTestRun ¶
func (t *Test) ArchiveTestRun(req *ArchiveTestRunReq) (resp ArchiveTestRunResp, err error)
ArchiveTestRun 归档测试计划
func (*Test) CreateAttachmentPrepareSignUrl ¶
func (t *Test) CreateAttachmentPrepareSignUrl(req *CreateAttachmentPrepareSignUrlReq) (resp CreateAttachmentPrepareSignUrlResp, err error)
CreateAttachmentPrepareSignUrl 生成附件预上传信息
func (*Test) CreateCaseResult ¶
func (t *Test) CreateCaseResult(req *CreateCaseResultReq) (resp CreateCaseResultResp, err error)
CreateCaseResult 测试用例添加测试结果
func (*Test) CreateReport ¶
func (t *Test) CreateReport(req *CreateReportReq) (resp CreateReportResp, err error)
CreateReport 创建测试报告
func (*Test) CreateTestCase ¶
func (t *Test) CreateTestCase(req *CreateTestCaseReq) (resp CreateTestCaseResp, err error)
CreateTestCase 创建测试用例
func (*Test) CreateTestCaseSection ¶
func (t *Test) CreateTestCaseSection(req *CreateTestCaseSectionReq) (resp CreateTestCaseSectionResp, err error)
CreateTestCaseSection 创建测试用例分组
func (*Test) CreateTestDefect ¶
func (t *Test) CreateTestDefect(req *CreateTestDefectReq) (resp CreateTestDefectResp, err error)
CreateTestDefect 测试任务关联缺陷
func (*Test) CreateTestResult ¶
func (t *Test) CreateTestResult(req *CreateTestResultReq) (resp CreateTestResultResp, err error)
CreateTestResult 测试任务添加测试结果
func (*Test) CreateTestResults ¶
func (t *Test) CreateTestResults(req *CreateTestResultsReq) (resp CreateTestResultsResp, err error)
CreateTestResults 测试任务状态批量更新
func (*Test) CreateTestRun ¶
func (t *Test) CreateTestRun(req *CreateTestRunReq) (resp CreateTestRunResp, err error)
CreateTestRun 创建测试计划
func (*Test) CreateTestStepResult ¶
func (t *Test) CreateTestStepResult(req *CreateTestStepResultReq) (resp CreateTestStepResultResp, err error)
CreateTestStepResult 测试任务单独添加某步骤的测试结果
func (*Test) DeleteReport ¶
func (t *Test) DeleteReport(req *DeleteReportReq) (resp DeleteReportResp, err error)
DeleteReport 删除测试报告
func (*Test) DeleteTestCase ¶
func (t *Test) DeleteTestCase(req *DeleteTestCaseReq) (resp DeleteTestCaseResp, err error)
DeleteTestCase 删除测试用例
func (*Test) DeleteTestCaseSection ¶
func (t *Test) DeleteTestCaseSection(req *DeleteTestCaseSectionReq) (resp DeleteTestCaseSectionResp, err error)
DeleteTestCaseSection 删除测试用例分组
func (*Test) DeleteTestRun ¶
func (t *Test) DeleteTestRun(req *DeleteTestRunReq) (resp DeleteTestRunResp, err error)
DeleteTestRun 删除测试计划
func (*Test) DescribeReport ¶
func (t *Test) DescribeReport(req *DescribeReportReq) (resp DescribeReportResp, err error)
DescribeReport 测试报告详情
func (*Test) DescribeReportList ¶
func (t *Test) DescribeReportList(req *DescribeReportListReq) (resp DescribeReportListResp, err error)
DescribeReportList 测试报告列表
func (*Test) DescribeRequirementTestCaseList ¶
func (t *Test) DescribeRequirementTestCaseList(req *DescribeRequirementTestCaseListReq) (resp DescribeRequirementTestCaseListResp, err error)
DescribeRequirementTestCaseList 需求关联的测试用例列表
func (*Test) DescribeTest ¶
func (t *Test) DescribeTest(req *DescribeTestReq) (resp DescribeTestResp, err error)
DescribeTest 测试任务详情
func (*Test) DescribeTestCase ¶
func (t *Test) DescribeTestCase(req *DescribeTestCaseReq) (resp DescribeTestCaseResp, err error)
DescribeTestCase 测试用例详情
func (*Test) DescribeTestCaseList ¶
func (t *Test) DescribeTestCaseList(req *DescribeTestCaseListReq) (resp DescribeTestCaseListResp, err error)
DescribeTestCaseList 测试用例列表
func (*Test) DescribeTestCaseSectionList ¶
func (t *Test) DescribeTestCaseSectionList(req *DescribeTestCaseSectionListReq) (resp DescribeTestCaseSectionListResp, err error)
DescribeTestCaseSectionList 测试用例分组列表
func (*Test) DescribeTestDefectList ¶
func (t *Test) DescribeTestDefectList(req *DescribeTestDefectListReq) (resp DescribeTestDefectListResp, err error)
DescribeTestDefectList 测试任务关联的缺陷列表
func (*Test) DescribeTestList ¶
func (t *Test) DescribeTestList(req *DescribeTestListReq) (resp DescribeTestListResp, err error)
DescribeTestList 测试任务列表
func (*Test) DescribeTestRun ¶
func (t *Test) DescribeTestRun(req *DescribeTestRunReq) (resp DescribeTestRunResp, err error)
DescribeTestRun 测试计划详情
func (*Test) DescribeTestRunList ¶
func (t *Test) DescribeTestRunList(req *DescribeTestRunListReq) (resp DescribeTestRunListResp, err error)
DescribeTestRunList 测试计划列表
func (*Test) ModifyTestCase ¶
func (t *Test) ModifyTestCase(req *ModifyTestCaseReq) (resp ModifyTestCaseResp, err error)
ModifyTestCase 修改测试用例
func (*Test) ModifyTestCaseSection ¶
func (t *Test) ModifyTestCaseSection(req *ModifyTestCaseSectionReq) (resp ModifyTestCaseSectionResp, err error)
ModifyTestCaseSection 修改测试用例分组
func (*Test) ModifyTestRun ¶
func (t *Test) ModifyTestRun(req *ModifyTestRunReq) (resp ModifyTestRunResp, err error)
ModifyTestRun 修改测试计划
Source Files ¶
- archiveTestRun.go
- createAttachmentPrepareSignUrl.go
- createCaseResult.go
- createReport.go
- createTestCase.go
- createTestCaseSection.go
- createTestDefect.go
- createTestResult.go
- createTestResults.go
- createTestRun.go
- createTestStepResult.go
- deleteReport.go
- deleteTestCase.go
- deleteTestCaseSection.go
- deleteTestRun.go
- describeReport.go
- describeReportList.go
- describeRequirementTestCaseList.go
- describeTest.go
- describeTestCase.go
- describeTestCaseList.go
- describeTestCaseSectionList.go
- describeTestDefectList.go
- describeTestList.go
- describeTestRun.go
- describeTestRunList.go
- modifyTestCase.go
- modifyTestCaseSection.go
- modifyTestRun.go
- test.go