Documentation ¶
Index ¶
- type ApiError
- type AssignedUserInfo
- type AssociateDefectInfoVo
- type AssociateIssueInfoVo
- type AttributeChange
- type BatchDeleteTestCaseRequest
- type BatchDeleteTestCaseRequestBody
- type BatchDeleteTestCaseResponse
- type CaseCompletionRateVo
- type CasePassRateVo
- type CoverRateVo
- type CreateApiTestSuiteByRepoFileRequest
- type CreateApiTestSuiteByRepoFileResponse
- type CreateInfoVo
- type CreatePlanRequest
- type CreatePlanRequestBody
- type CreatePlanResponse
- type CreateServiceRequest
- type CreateServiceResponse
- type CreateTestCaseInPlanRequest
- type CreateTestCaseInPlanRequestBody
- type CreateTestCaseInPlanResponse
- type CreateTestCaseRequest
- type CreateTestCaseRequestBody
- type CreateTestCaseResponse
- type CreateTestSuitByRepoFileInfo
- type CustomReportListVo
- type DefectVo
- type DeleteServiceRequest
- type DeleteServiceResponse
- type ElementResourceChangeExternalVo
- type Environment
- type ErrorCaseInfoBean
- type ErrorDetailInfo
- type ExecuteInfoVo
- type ExtendAuthorInfo
- type ExtendInfo
- type ExternalBranchInfoVo
- type ExternalServiceBizCase
- type ExternalServiceCaseInfo
- type ExternalServiceCaseStep
- type ExternalTestCaseHistoryVo
- type ExternalTestCaseVo
- type ExternalUserCaseAndDefect
- type ExternalUserExecuteInfo
- type GenerateReportInfo
- type IntegerIdAndNameVo
- type IssueCoverRateVo
- type ListBranchesRequest
- type ListBranchesRequestSortField
- type ListBranchesRequestSortFieldEnum
- type ListBranchesRequestSortType
- type ListBranchesRequestSortTypeEnum
- type ListBranchesResponse
- type ListEnvironmentsRequest
- type ListEnvironmentsResponse
- type ListTestCaseHistoriesRequest
- type ListTestCaseHistoriesRequestBody
- type ListTestCaseHistoriesResponse
- type ListTestCasesRequest
- type ListTestCasesRequestBody
- type ListTestCasesResponse
- type NameAndId
- type NameAndIdVo
- type NameAndValueVo
- type PlanCycle
- type ReportChartDataVo
- type ReportDimVo
- type ReportFilter
- type ResourceChangeExternalVo
- type ResultValueCustomReportListVo
- type RunTestCaseRequest
- type RunTestCaseRequestBody
- type RunTestCaseResponse
- type ServiceRequestBody
- type ServicesInfo
- type ShowApiTestcaseHistoriesRequest
- type ShowApiTestcaseHistoriesResponse
- type ShowIssuesByPlanIdRequest
- type ShowIssuesByPlanIdResponse
- type ShowPlanJournalsRequest
- type ShowPlanJournalsResponse
- type ShowPlanListRequest
- type ShowPlanListResponse
- type ShowPlansRequest
- type ShowPlansResponse
- type ShowProjectDataDashboardRequest
- type ShowProjectDataDashboardResponse
- type ShowRegisterServiceRequest
- type ShowRegisterServiceResponse
- type ShowReportRequest
- type ShowReportResponse
- type ShowTestCaseAndDefectInfoRequest
- type ShowTestCaseAndDefectInfoRequestBody
- type ShowTestCaseAndDefectInfoResponse
- type ShowTestCaseDetailRequest
- type ShowTestCaseDetailResponse
- type ShowTestCaseDetailV2Request
- type ShowTestCaseDetailV2Response
- type ShowUserExecuteTestCaseInfoRequest
- type ShowUserExecuteTestCaseInfoRequestBody
- type ShowUserExecuteTestCaseInfoResponse
- type TestCaseExecuteBean
- type TestPlanDetail
- type TestPlanDetailCreator
- type TestPlanDetailDesignStage
- type TestPlanDetailExecuteStage
- type TestPlanDetailOwner
- type TestPlanDetailReportStage
- type TestPlanIssueDetail
- type TestPlanJournalDetail
- type TestPlanJournalList
- type TestReportInfoRequestBody
- type TestcaseResult
- type UpdateServiceRequest
- type UpdateServiceResponse
- type UpdateTestCaseRequest
- type UpdateTestCaseRequestBody
- type UpdateTestCaseResponse
- type UpdateTestCaseResultBean
- type UpdateTestCaseResultRequest
- type UpdateTestCaseResultRequestBody
- type UpdateTestCaseResultResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiError ¶ added in v0.1.36
type ApiError struct { // 只有对外的接口才会返回此内容 Code *string `json:"code,omitempty"` // 业务失败的提示内容 Reason *string `json:"reason,omitempty"` }
ApiError 失败时的error信息
type AssignedUserInfo ¶
type AssignedUserInfo struct { // id信息 Id *string `json:"id,omitempty"` // 名称信息 Name *string `json:"name,omitempty"` }
func (AssignedUserInfo) String ¶
func (o AssignedUserInfo) String() string
type AssociateDefectInfoVo ¶ added in v0.1.50
type AssociateDefectInfoVo struct { // 是否已关联 Associate *bool `json:"associate,omitempty"` // 关联缺陷数 AssociateCount *int32 `json:"associate_count,omitempty"` }
AssociateDefectInfoVo 关联缺陷信息
func (AssociateDefectInfoVo) String ¶ added in v0.1.50
func (o AssociateDefectInfoVo) String() string
type AssociateIssueInfoVo ¶ added in v0.1.50
type AssociateIssueInfoVo struct { // 是否已关联 Associate *bool `json:"associate,omitempty"` // 需求ID IssueId *string `json:"issue_id,omitempty"` // 需求类型 TrackerId *string `json:"tracker_id,omitempty"` // 工作项层级ID BoardId *string `json:"board_id,omitempty"` // 需求类型名称 TrackerName *string `json:"tracker_name,omitempty"` }
AssociateIssueInfoVo 关联需求信息
func (AssociateIssueInfoVo) String ¶ added in v0.1.50
func (o AssociateIssueInfoVo) String() string
type AttributeChange ¶ added in v0.0.73
type AttributeChange struct { // 变更后的取值 NewValue *string `json:"new_value,omitempty"` // 变更前的取值 OldValue *string `json:"old_value,omitempty"` // 发生变更的测试计划属性 AttributeType *string `json:"attribute_type,omitempty"` }
AttributeChange 对象,包括编号与名称
func (AttributeChange) String ¶ added in v0.0.73
func (o AttributeChange) String() string
type BatchDeleteTestCaseRequest ¶
type BatchDeleteTestCaseRequest struct { // 项目唯一标识,固定长度32位字符 ProjectId string `json:"project_id"` Body *BatchDeleteTestCaseRequestBody `json:"body,omitempty"` }
BatchDeleteTestCaseRequest Request Object
func (BatchDeleteTestCaseRequest) String ¶
func (o BatchDeleteTestCaseRequest) String() string
type BatchDeleteTestCaseRequestBody ¶
type BatchDeleteTestCaseRequestBody struct { // 注册测试类型服务接口返回的服务id,取值范围为10-9999 ServiceId int32 `json:"service_id"` // 测试用例唯一标识,数组长度小于50个 TestcaseIdList []string `json:"testcase_id_list"` }
BatchDeleteTestCaseRequestBody 批量删除测试用例请求体
func (BatchDeleteTestCaseRequestBody) String ¶
func (o BatchDeleteTestCaseRequestBody) String() string
type BatchDeleteTestCaseResponse ¶
type BatchDeleteTestCaseResponse struct { // 接口调用失败错误码 ErrorCode *string `json:"error_code,omitempty"` // 接口调用失败错误信息 ErrorMsg *string `json:"error_msg,omitempty"` ErrorDetail *ErrorDetailInfo `json:"error_detail,omitempty"` HttpStatusCode int `json:"-"` }
BatchDeleteTestCaseResponse Response Object
func (BatchDeleteTestCaseResponse) String ¶
func (o BatchDeleteTestCaseResponse) String() string
type CaseCompletionRateVo ¶ added in v0.1.71
type CaseCompletionRateVo struct { // 总用例数 Total *int32 `json:"total,omitempty"` // 用例完成率 CompletionRate *string `json:"completion_rate,omitempty"` // 用户自定义状态对应的用例数目 StatusNumberList *[]NameAndValueVo `json:"status_number_list,omitempty"` }
CaseCompletionRateVo 计算用例完成率
func (CaseCompletionRateVo) String ¶ added in v0.1.71
func (o CaseCompletionRateVo) String() string
type CasePassRateVo ¶ added in v0.1.71
type CasePassRateVo struct { // 用例通过率 PassRate *string `json:"pass_rate,omitempty"` // 用户自定义结果对应的用例数目 ResultNumberList *[]NameAndValueVo `json:"result_number_list,omitempty"` }
CasePassRateVo 计算用例通过率
func (CasePassRateVo) String ¶ added in v0.1.71
func (o CasePassRateVo) String() string
type CoverRateVo ¶ added in v0.1.71
type CoverRateVo struct { // 统计测试中的需求 Testing *int32 `json:"testing,omitempty"` // 统计已完成的需求 Finished *int32 `json:"finished,omitempty"` // 统计未测试的需求 NotTested *int32 `json:"not_tested,omitempty"` // 计算需求总数 TotalNumber *int32 `json:"total_number,omitempty"` // 需求覆盖率 CoverRate *string `json:"cover_rate,omitempty"` }
CoverRateVo 需求覆盖率
func (CoverRateVo) String ¶ added in v0.1.71
func (o CoverRateVo) String() string
type CreateApiTestSuiteByRepoFileRequest ¶
type CreateApiTestSuiteByRepoFileRequest struct { // 项目ID,固定长度32位字符(字母和数字)。 ProjectId string `json:"project_id"` Body *CreateTestSuitByRepoFileInfo `json:"body,omitempty"` }
CreateApiTestSuiteByRepoFileRequest Request Object
func (CreateApiTestSuiteByRepoFileRequest) String ¶
func (o CreateApiTestSuiteByRepoFileRequest) String() string
type CreateApiTestSuiteByRepoFileResponse ¶
type CreateApiTestSuiteByRepoFileResponse struct { // 生成的测试套的id TestsuiteId *string `json:"testsuite_id,omitempty"` // 生成的测试用例id列表 TestcaseIds *[]string `json:"testcase_ids,omitempty"` HttpStatusCode int `json:"-"` }
CreateApiTestSuiteByRepoFileResponse Response Object
func (CreateApiTestSuiteByRepoFileResponse) String ¶
func (o CreateApiTestSuiteByRepoFileResponse) String() string
type CreateInfoVo ¶ added in v0.1.50
type CreateInfoVo struct { // 创建时间 Time *string `json:"time,omitempty"` // 创建时间时间戳 Timestamp *int64 `json:"timestamp,omitempty"` // 用户ID UserId *string `json:"user_id,omitempty"` // 用户名称 UserName *string `json:"user_name,omitempty"` }
CreateInfoVo 创建信息
func (CreateInfoVo) String ¶ added in v0.1.50
func (o CreateInfoVo) String() string
type CreatePlanRequest ¶
type CreatePlanRequest struct { // 项目唯一标识,固定长度32位字符 ProjectId string `json:"project_id"` Body *CreatePlanRequestBody `json:"body,omitempty"` }
CreatePlanRequest Request Object
func (CreatePlanRequest) String ¶
func (o CreatePlanRequest) String() string
type CreatePlanRequestBody ¶
type CreatePlanRequestBody struct { // 计划名称 Name string `json:"name"` // 处理者id,不填时默认使用当前用户 AssignedId *string `json:"assigned_id,omitempty"` // 计划下包含的用例类型,数组长度小于10个 ServiceIdList []int32 `json:"service_id_list"` PlanCycle *PlanCycle `json:"plan_cycle"` }
CreatePlanRequestBody 创建计划请求体
func (CreatePlanRequestBody) String ¶
func (o CreatePlanRequestBody) String() string
type CreatePlanResponse ¶
type CreatePlanResponse struct { // 接口调用成功返回的计划id PlanId *string `json:"plan_id,omitempty"` // 接口调用成功不返回,调用失败错误码 ErrorCode *string `json:"error_code,omitempty"` // 接口调用成功不返回,调用失败错误信息 ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
CreatePlanResponse Response Object
func (CreatePlanResponse) String ¶
func (o CreatePlanResponse) String() string
type CreateServiceRequest ¶
type CreateServiceRequest struct {
Body *ServiceRequestBody `json:"body,omitempty"`
}
CreateServiceRequest Request Object
func (CreateServiceRequest) String ¶
func (o CreateServiceRequest) String() string
type CreateServiceResponse ¶
type CreateServiceResponse struct { // 接口调用成功返回的服务名 ServiceName *string `json:"service_name,omitempty"` // 接口调用成功返回的服务id ServiceId *int32 `json:"service_id,omitempty"` // 接口调用成功不返回,调用失败错误码 ErrorCode *string `json:"error_code,omitempty"` // 接口调用成功不返回,调用失败错误信息 ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
CreateServiceResponse Response Object
func (CreateServiceResponse) String ¶
func (o CreateServiceResponse) String() string
type CreateTestCaseInPlanRequest ¶
type CreateTestCaseInPlanRequest struct { // 项目唯一标识,固定长度32位字符 ProjectId string `json:"project_id"` // 计划唯一标识,长度11-34位字符 PlanId string `json:"plan_id"` Body *CreateTestCaseInPlanRequestBody `json:"body,omitempty"` }
CreateTestCaseInPlanRequest Request Object
func (CreateTestCaseInPlanRequest) String ¶
func (o CreateTestCaseInPlanRequest) String() string
type CreateTestCaseInPlanRequestBody ¶
type CreateTestCaseInPlanRequestBody struct { // 注册测试类型服务接口返回的服务id ServiceId int32 `json:"service_id"` // 计划下包含的用例个数,数组长度小于50个,只能包含一种测试类型 TestcaseIdList []string `json:"testcase_id_list"` }
CreateTestCaseInPlanRequestBody 计划中批量添加测试用例请求体
func (CreateTestCaseInPlanRequestBody) String ¶
func (o CreateTestCaseInPlanRequestBody) String() string
type CreateTestCaseInPlanResponse ¶
type CreateTestCaseInPlanResponse struct {
HttpStatusCode int `json:"-"`
}
CreateTestCaseInPlanResponse Response Object
func (CreateTestCaseInPlanResponse) String ¶
func (o CreateTestCaseInPlanResponse) String() string
type CreateTestCaseRequest ¶
type CreateTestCaseRequest struct { // 项目唯一标识,固定长度32位字符 ProjectId string `json:"project_id"` Body *CreateTestCaseRequestBody `json:"body,omitempty"` }
CreateTestCaseRequest Request Object
func (CreateTestCaseRequest) String ¶
func (o CreateTestCaseRequest) String() string
type CreateTestCaseRequestBody ¶
type CreateTestCaseRequestBody struct { // 页面上显示的用例名称,长度为[3-128]位字符 Name string `json:"name"` // 该值由注册接口返回,取值范围为10-9999 ServiceId int32 `json:"service_id"` // 测试用例等级,可选值为[0,1,2,3,4],不填时默认为2 RankId *string `json:"rank_id,omitempty"` // 用例编号,不填该值时会自动生成,长度为[3-128]位字符 TestcaseNumber *string `json:"testcase_number,omitempty"` ExtendInfo *ExternalServiceCaseInfo `json:"extend_info,omitempty"` }
CreateTestCaseRequestBody 创建测试用例请求体
func (CreateTestCaseRequestBody) String ¶
func (o CreateTestCaseRequestBody) String() string
type CreateTestCaseResponse ¶
type CreateTestCaseResponse struct { // 测试用例唯一标识 TestcaseId *string `json:"testcase_id,omitempty"` // 软开云项目唯一标识 ProjectId *string `json:"project_id,omitempty"` // 注册测试类型服务接口返回的服务id ServiceId *int32 `json:"service_id,omitempty"` // 测试用例名称 Name *string `json:"name,omitempty"` // 测试用例编号 TestcaseNumber *string `json:"testcase_number,omitempty"` // 测试用例等级 RankId *string `json:"rank_id,omitempty"` // 测试用例状态 StatusId *string `json:"status_id,omitempty"` AssignedUser *AssignedUserInfo `json:"assigned_user,omitempty"` // 测试用例执行次数 ExecuteCount *int32 `json:"execute_count,omitempty"` // 测试用例执行结果 ResultId *string `json:"result_id,omitempty"` ExtendInfo *ExtendInfo `json:"extend_info,omitempty"` // 接口调用失败错误码 ErrorCode *string `json:"error_code,omitempty"` // 接口调用失败错误信息 ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
CreateTestCaseResponse Response Object
func (CreateTestCaseResponse) String ¶
func (o CreateTestCaseResponse) String() string
type CreateTestSuitByRepoFileInfo ¶
type CreateTestSuitByRepoFileInfo struct { // 要生成的测试套名称 TestsuiteName string `json:"testsuite_name"` // 仓库id RepositoryId string `json:"repository_id"` // 仓库分支 RepositoryBranch string `json:"repository_branch"` // 仓库中yaml或json文件的相对路径,仅支持swagger 2.0版本的yaml和json文件 FilePath string `json:"file_path"` }
CreateTestSuitByRepoFileInfo 生成测试套的请求信息
func (CreateTestSuitByRepoFileInfo) String ¶
func (o CreateTestSuitByRepoFileInfo) String() string
type CustomReportListVo ¶ added in v0.1.36
type CustomReportListVo struct { // 报表id Id *string `json:"id,omitempty"` // 报表名称 Name *string `json:"name,omitempty"` Filter *ReportFilter `json:"filter,omitempty"` // 工件类型(用例:case,测试套:task) WorkpieceType *string `json:"workpiece_type,omitempty"` // 分析维度 AnalysisDimension *string `json:"analysis_dimension,omitempty"` // 对比维度 CompareDimension *string `json:"compare_dimension,omitempty"` // 报表数据 ChartData *[]ReportChartDataVo `json:"chart_data,omitempty"` }
CustomReportListVo 实际的数据类型:单个对象,集合或NULL
func (CustomReportListVo) String ¶ added in v0.1.36
func (o CustomReportListVo) String() string
type DefectVo ¶ added in v0.1.71
type DefectVo struct { // 缺陷数 Total *int32 `json:"total,omitempty"` // 未关闭缺陷数 NotSolved *int32 `json:"not_solved,omitempty"` // 组装缺陷每种重要程度的名称和对应的数目 SeverityNumberList *[]NameAndValueVo `json:"severity_number_list,omitempty"` }
DefectVo 整体缺陷信息
type DeleteServiceRequest ¶
type DeleteServiceRequest struct { // 注册服务唯一标识,该值由注册接口返回 ServiceId int32 `json:"service_id"` }
DeleteServiceRequest Request Object
func (DeleteServiceRequest) String ¶
func (o DeleteServiceRequest) String() string
type DeleteServiceResponse ¶
type DeleteServiceResponse struct { // 接口调用失败错误码 ErrorCode *string `json:"error_code,omitempty"` // 接口调用失败错误信息 ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
DeleteServiceResponse Response Object
func (DeleteServiceResponse) String ¶
func (o DeleteServiceResponse) String() string
type ElementResourceChangeExternalVo ¶ added in v0.1.50
type ElementResourceChangeExternalVo struct { // 工作项类型 TrackerName *string `json:"tracker_name,omitempty"` // 值 Value *string `json:"value,omitempty"` // key Key *string `json:"key,omitempty"` // 对象值 ObjectValue *interface{} `json:"object_value,omitempty"` // 对象key ObjectKey *interface{} `json:"object_key,omitempty"` // 缺陷类型 TrackerNames *interface{} `json:"tracker_names,omitempty"` // 归属看板信息,用例关联工作项信息使用 BoardInfo *[]interface{} `json:"board_info,omitempty"` }
ElementResourceChangeExternalVo 数据信息
func (ElementResourceChangeExternalVo) String ¶ added in v0.1.50
func (o ElementResourceChangeExternalVo) String() string
type Environment ¶
type Environment struct { // 环境分组id EnvironmentId *string `json:"environment_id,omitempty"` // 环境分组名 EnvironmentName *string `json:"environment_name,omitempty"` // 环境分组描述 EnvironmentDescription *string `json:"environment_description,omitempty"` // 是否是默认环境 IsDefault *bool `json:"is_default,omitempty"` }
func (Environment) String ¶
func (o Environment) String() string
type ErrorCaseInfoBean ¶
type ErrorCaseInfoBean struct { // 失败错误码 ErrorCode *string `json:"error_code,omitempty"` // 失败错误信息 ErrorMsg *string `json:"error_msg,omitempty"` // 失败资源信息 TestcaseId *string `json:"testcase_id,omitempty"` }
func (ErrorCaseInfoBean) String ¶
func (o ErrorCaseInfoBean) String() string
type ErrorDetailInfo ¶
type ErrorDetailInfo struct { // 批量操作失败的资源的详情信息 Failed *[]ErrorCaseInfoBean `json:"failed,omitempty"` }
func (ErrorDetailInfo) String ¶
func (o ErrorDetailInfo) String() string
type ExecuteInfoVo ¶ added in v0.1.50
type ExecuteInfoVo struct { // 执行开始时间 Time *string `json:"time,omitempty"` // 执行开始时间时间戳 Timestamp *int64 `json:"timestamp,omitempty"` // 执行时长 Duration *string `json:"duration,omitempty"` // 用户ID UserId *string `json:"user_id,omitempty"` // 用户名称 UserName *string `json:"user_name,omitempty"` // 执行次数 ExecuteTimes *int32 `json:"execute_times,omitempty"` }
ExecuteInfoVo 执行信息
func (ExecuteInfoVo) String ¶ added in v0.1.50
func (o ExecuteInfoVo) String() string
type ExtendAuthorInfo ¶
type ExtendAuthorInfo struct { // id信息 Id *string `json:"id,omitempty"` // 名称信息 Name *string `json:"name,omitempty"` // 时间信息 Time *string `json:"time,omitempty"` }
func (ExtendAuthorInfo) String ¶
func (o ExtendAuthorInfo) String() string
type ExtendInfo ¶
type ExtendInfo struct { Author *ExtendAuthorInfo `json:"author,omitempty"` Updator *ExtendAuthorInfo `json:"updator,omitempty"` Domain *AssignedUserInfo `json:"domain,omitempty"` // 描述信息 Description *string `json:"description,omitempty"` // 前置条件 Preparation *string `json:"preparation,omitempty"` // 测试步骤,数组长度小于10 Steps *[]ExternalServiceCaseStep `json:"steps,omitempty"` // 标签信息 LabelList *[]AssignedUserInfo `json:"label_list,omitempty"` // 缺陷信息 DefectList *[]AssignedUserInfo `json:"defect_list,omitempty"` Module *AssignedUserInfo `json:"module,omitempty"` Issue *AssignedUserInfo `json:"issue,omitempty"` // 测试版本号 TestVersionId *string `json:"test_version_id,omitempty"` FixedVersion *AssignedUserInfo `json:"fixed_version,omitempty"` }
ExtendInfo 用例其他扩展信息
func (ExtendInfo) String ¶
func (o ExtendInfo) String() string
type ExternalBranchInfoVo ¶ added in v0.1.50
type ExternalBranchInfoVo struct { // 分支ID Id *string `json:"id,omitempty"` // 资源类型 Type *string `json:"type,omitempty"` // 创建人 Author *string `json:"author,omitempty"` // 名称 Name *string `json:"name,omitempty"` // 区域 Region *string `json:"region,omitempty"` // 最后修改人 LastModifier *string `json:"last_modifier,omitempty"` // 最后修改时间 LastModified *sdktime.SdkTime `json:"last_modified,omitempty"` // 修改时间时间戳 LastModifiedTimestamp *int64 `json:"last_modified_timestamp,omitempty"` // 创建时间 CreationDate *sdktime.SdkTime `json:"creation_date,omitempty"` // 创建时间时间戳 CreationDateTimestamp *int64 `json:"creation_date_timestamp,omitempty"` // 创建人名称 AuthorName *string `json:"author_name,omitempty"` // 是否为基线分支。0表示不是基线分支,1表示是基线分支。 IsBaseBranch *int32 `json:"is_base_branch,omitempty"` }
ExternalBranchInfoVo 分支版本信息
func (ExternalBranchInfoVo) String ¶ added in v0.1.50
func (o ExternalBranchInfoVo) String() string
type ExternalServiceBizCase ¶
type ExternalServiceBizCase struct { // 测试用例描述信息,长度为[0-500]位字符 Description *string `json:"description,omitempty"` // 执行该测试用例时需要满足的前置条件,长度为[0-500]位字符 Preparation *string `json:"preparation,omitempty"` // 测试步骤,数组长度小于10 Steps *[]ExternalServiceCaseStep `json:"steps,omitempty"` // 标签名称列表,数组长度小于25 LabelList *[]string `json:"label_list,omitempty"` // 模块号,长度为[0-32]位字符 ModuleId *string `json:"module_id,omitempty"` // 测试版本号,长度为[0-10]位字符 TestVersionId *string `json:"test_version_id,omitempty"` // 迭代号,长度为[0-32]位字符 FixVersionId *string `json:"fix_version_id,omitempty"` // 处理者id信息,固定长度32位字符 AssignedId *string `json:"assigned_id,omitempty"` // 用例关联的需求id信息,长度为[0-32]位字符 IssueId *string `json:"issue_id,omitempty"` // 测试用例状态信息,(0-新建,5-设计中,6-测试中,7-完成) StatusId *string `json:"status_id,omitempty"` // 缺陷id信息,数组长度小于50个 DefectIdList *[]string `json:"defect_id_list,omitempty"` }
ExternalServiceBizCase 测试用例其他扩展信息
func (ExternalServiceBizCase) String ¶
func (o ExternalServiceBizCase) String() string
type ExternalServiceCaseInfo ¶
type ExternalServiceCaseInfo struct { // 测试用例描述信息,长度为[0-500]位字符 Description *string `json:"description,omitempty"` // 执行该测试用例时需要满足的前置条件,长度为[0-500]位字符 Preparation *string `json:"preparation,omitempty"` // 测试步骤,数组长度小于10 Steps *[]ExternalServiceCaseStep `json:"steps,omitempty"` // 标签名称列表,数组长度小于25 LabelList *[]string `json:"label_list,omitempty"` // 模块号,长度为[0-32]位字符 ModuleId *string `json:"module_id,omitempty"` // 测试版本号,长度为[0-10]位字符 TestVersionId *string `json:"test_version_id,omitempty"` // 迭代号,长度为[0-32]位字符 FixVersionId *string `json:"fix_version_id,omitempty"` // 处理者id信息,固定长度32位字符 AssignedId *string `json:"assigned_id,omitempty"` // 用例关联的需求id信息,长度为[0-32]位字符 IssueId *string `json:"issue_id,omitempty"` }
ExternalServiceCaseInfo 测试用例其他扩展信息
func (ExternalServiceCaseInfo) String ¶
func (o ExternalServiceCaseInfo) String() string
type ExternalServiceCaseStep ¶
type ExternalServiceCaseStep struct { // 测试用例预期结果信息,长度为[0-500]位字符 ExpectResult *string `json:"expect_result,omitempty"` // 测试步骤描述信息,长度为[0-500]位字符 TestStep *string `json:"test_step,omitempty"` }
ExternalServiceCaseStep 测试步骤,数组长度小于10
func (ExternalServiceCaseStep) String ¶
func (o ExternalServiceCaseStep) String() string
type ExternalTestCaseHistoryVo ¶ added in v0.1.50
type ExternalTestCaseHistoryVo struct { // 资源历史记录创建人ID Author *string `json:"author,omitempty"` // 逻辑region Region *string `json:"region,omitempty"` // 历史记录字段变更列表 Changes *[]ResourceChangeExternalVo `json:"changes,omitempty"` // 历史记录id Id *string `json:"id,omitempty"` // 用例id TestcaseId *string `json:"testcase_id,omitempty"` // 创建时间 CreationDate *sdktime.SdkTime `json:"creation_date,omitempty"` // 创建时间时间戳 CreateDateTimestamp *int64 `json:"create_date_timestamp,omitempty"` // 创建人名称 AuthorName *string `json:"author_name,omitempty"` // 项目id ProjectId *string `json:"project_id,omitempty"` }
ExternalTestCaseHistoryVo 实际的数据类型:单个对象,集合 或 NULL
func (ExternalTestCaseHistoryVo) String ¶ added in v0.1.50
func (o ExternalTestCaseHistoryVo) String() string
type ExternalTestCaseVo ¶ added in v0.1.50
type ExternalTestCaseVo struct { // 用例名称 Name *string `json:"name,omitempty"` Owner *NameAndIdVo `json:"owner,omitempty"` Status *NameAndIdVo `json:"status,omitempty"` Result *NameAndIdVo `json:"result,omitempty"` Module *NameAndIdVo `json:"module,omitempty"` Iteration *NameAndIdVo `json:"iteration,omitempty"` // 用例ID Id *string `json:"id,omitempty"` // 用例编号 Number *string `json:"number,omitempty"` // 用例描述 Description *string `json:"description,omitempty"` // 用例等级 RankId *string `json:"rank_id,omitempty"` // 项目ID ProjectId *string `json:"project_id,omitempty"` ExecutionType *NameAndIdVo `json:"execution_type,omitempty"` TestType *IntegerIdAndNameVo `json:"test_type,omitempty"` CreateInfo *CreateInfoVo `json:"create_info,omitempty"` ExecuteInfo *ExecuteInfoVo `json:"execute_info,omitempty"` AssociateIssueInfo *AssociateIssueInfoVo `json:"associate_issue_info,omitempty"` AssociateDefectInfo *AssociateDefectInfoVo `json:"associate_defect_info,omitempty"` }
func (ExternalTestCaseVo) String ¶ added in v0.1.50
func (o ExternalTestCaseVo) String() string
type ExternalUserCaseAndDefect ¶ added in v0.1.54
type ExternalUserCaseAndDefect struct { Creator *NameAndIdVo `json:"creator,omitempty"` // 缺陷数 DefectCount *int32 `json:"defect_count,omitempty"` // 缺陷ID列表 DefectIds *[]string `json:"defect_ids,omitempty"` // 用例ID TestcaseId *string `json:"testcase_id,omitempty"` // 分支ID BranchId *string `json:"branch_id,omitempty"` }
ExternalUserCaseAndDefect 用户创建用例以及关联缺陷信息
func (ExternalUserCaseAndDefect) String ¶ added in v0.1.54
func (o ExternalUserCaseAndDefect) String() string
type ExternalUserExecuteInfo ¶ added in v0.1.54
type ExternalUserExecuteInfo struct { Executor *NameAndIdVo `json:"executor,omitempty"` // 执行用例数 ExecuteCount *int32 `json:"execute_count,omitempty"` }
ExternalUserExecuteInfo 用户用例执行信息
func (ExternalUserExecuteInfo) String ¶ added in v0.1.54
func (o ExternalUserExecuteInfo) String() string
type GenerateReportInfo ¶ added in v0.1.36
type GenerateReportInfo struct { // 报表名称 Name *string `json:"name,omitempty"` // 工件类型(用例:case,测试套:suite) WorkpieceType *string `json:"workpiece_type,omitempty"` // 分析维度。该参数选择横坐标(X轴)维度,不传会返回空列表。 AnalysisDimRow *string `json:"analysis_dim_row,omitempty"` // 对比维度 CompareDimColumn *string `json:"compare_dim_column,omitempty"` Filter *ReportFilter `json:"filter,omitempty"` }
func (GenerateReportInfo) String ¶ added in v0.1.36
func (o GenerateReportInfo) String() string
type IntegerIdAndNameVo ¶ added in v0.1.50
type IntegerIdAndNameVo struct { // 数据库存储数字 Id *int32 `json:"id,omitempty"` // 页面显示值 Name *string `json:"name,omitempty"` }
IntegerIdAndNameVo 测试类型信息
func (IntegerIdAndNameVo) String ¶ added in v0.1.50
func (o IntegerIdAndNameVo) String() string
type IssueCoverRateVo ¶ added in v0.1.71
type IssueCoverRateVo struct { Epic *CoverRateVo `json:"epic,omitempty"` Feature *CoverRateVo `json:"feature,omitempty"` Story *CoverRateVo `json:"story,omitempty"` Summary *CoverRateVo `json:"summary,omitempty"` }
IssueCoverRateVo 看板项目的需求覆盖率
func (IssueCoverRateVo) String ¶ added in v0.1.71
func (o IssueCoverRateVo) String() string
type ListBranchesRequest ¶ added in v0.1.50
type ListBranchesRequest struct { // 项目ID,固定长度32位字符(字母和数字)。 ProjectId string `json:"project_id"` // 排序字段 SortField *ListBranchesRequestSortField `json:"sort_field,omitempty"` // 排序方式 SortType *ListBranchesRequestSortType `json:"sort_type,omitempty"` // 起始偏移量,表示从此偏移量开始查询, offset大于等于0,小于等于20000 Offset int32 `json:"offset"` // 每页显示的条目数量,最大支持200条 Limit int32 `json:"limit"` }
ListBranchesRequest Request Object
func (ListBranchesRequest) String ¶ added in v0.1.50
func (o ListBranchesRequest) String() string
type ListBranchesRequestSortField ¶ added in v0.1.50
type ListBranchesRequestSortField struct {
// contains filtered or unexported fields
}
func (ListBranchesRequestSortField) MarshalJSON ¶ added in v0.1.50
func (c ListBranchesRequestSortField) MarshalJSON() ([]byte, error)
func (*ListBranchesRequestSortField) UnmarshalJSON ¶ added in v0.1.50
func (c *ListBranchesRequestSortField) UnmarshalJSON(b []byte) error
func (ListBranchesRequestSortField) Value ¶ added in v0.1.50
func (c ListBranchesRequestSortField) Value() string
type ListBranchesRequestSortFieldEnum ¶ added in v0.1.50
type ListBranchesRequestSortFieldEnum struct { NAME ListBranchesRequestSortField CREATION_DATE ListBranchesRequestSortField }
func GetListBranchesRequestSortFieldEnum ¶ added in v0.1.50
func GetListBranchesRequestSortFieldEnum() ListBranchesRequestSortFieldEnum
type ListBranchesRequestSortType ¶ added in v0.1.50
type ListBranchesRequestSortType struct {
// contains filtered or unexported fields
}
func (ListBranchesRequestSortType) MarshalJSON ¶ added in v0.1.50
func (c ListBranchesRequestSortType) MarshalJSON() ([]byte, error)
func (*ListBranchesRequestSortType) UnmarshalJSON ¶ added in v0.1.50
func (c *ListBranchesRequestSortType) UnmarshalJSON(b []byte) error
func (ListBranchesRequestSortType) Value ¶ added in v0.1.50
func (c ListBranchesRequestSortType) Value() string
type ListBranchesRequestSortTypeEnum ¶ added in v0.1.50
type ListBranchesRequestSortTypeEnum struct { ASC ListBranchesRequestSortType DESC ListBranchesRequestSortType }
func GetListBranchesRequestSortTypeEnum ¶ added in v0.1.50
func GetListBranchesRequestSortTypeEnum() ListBranchesRequestSortTypeEnum
type ListBranchesResponse ¶ added in v0.1.50
type ListBranchesResponse struct { // 起始记录数 大于 实际总条数时, 值为0, 分页请求才有此值 Total *int32 `json:"total,omitempty"` // 项目ID ProjectId *string `json:"project_id,omitempty"` // 实际的数据类型:单个对象,集合 或 NULL Values *[]ExternalBranchInfoVo `json:"values,omitempty"` HttpStatusCode int `json:"-"` }
ListBranchesResponse Response Object
func (ListBranchesResponse) String ¶ added in v0.1.50
func (o ListBranchesResponse) String() string
type ListEnvironmentsRequest ¶
type ListEnvironmentsRequest struct { // 项目ID,固定长度32位字符(字母和数字)。 ProjectId string `json:"project_id"` // 起始偏移量,表示从此偏移量开始查询, offset大于等于0 Offset int64 `json:"offset"` // 每页显示的条目数量,最大支持200条 Limit int64 `json:"limit"` }
ListEnvironmentsRequest Request Object
func (ListEnvironmentsRequest) String ¶
func (o ListEnvironmentsRequest) String() string
type ListEnvironmentsResponse ¶
type ListEnvironmentsResponse struct { // 环境分组列表 Environments *[]Environment `json:"environments,omitempty"` // 偏移量,表示从此偏移量开始查询,offset大于等于0 Offset *int64 `json:"offset,omitempty"` // 每页显示的条目数量,最大支持200条 Limit *int64 `json:"limit,omitempty"` // 环境分组总条数 TotalCount *int64 `json:"total_count,omitempty"` HttpStatusCode int `json:"-"` }
ListEnvironmentsResponse Response Object
func (ListEnvironmentsResponse) String ¶
func (o ListEnvironmentsResponse) String() string
type ListTestCaseHistoriesRequest ¶ added in v0.1.50
type ListTestCaseHistoriesRequest struct { // 项目ID,固定长度32位字符(字母和数字)。 ProjectId string `json:"project_id"` // 用例ID,长度11-34位字符(字母和数字)。 TestcaseId string `json:"testcase_id"` Body *ListTestCaseHistoriesRequestBody `json:"body,omitempty"` }
ListTestCaseHistoriesRequest Request Object
func (ListTestCaseHistoriesRequest) String ¶ added in v0.1.50
func (o ListTestCaseHistoriesRequest) String() string
type ListTestCaseHistoriesRequestBody ¶ added in v0.1.50
type ListTestCaseHistoriesRequestBody struct { // 起始偏移量,表示从此偏移量开始查询,offset大于等于0,小于等于20000 Offset int32 `json:"offset"` // 每页显示的条目数量,最大支持200条 Limit int32 `json:"limit"` // 版本ID(分支ID或测试计划ID),长度11-34位字符(字母和数字)。 VersionId string `json:"version_id"` }
ListTestCaseHistoriesRequestBody 查询用例修改历史记录请求体
func (ListTestCaseHistoriesRequestBody) String ¶ added in v0.1.50
func (o ListTestCaseHistoriesRequestBody) String() string
type ListTestCaseHistoriesResponse ¶ added in v0.1.50
type ListTestCaseHistoriesResponse struct { // 起始记录数 大于 实际总条数时, 值为0, 分页请求才有此值 Total *int32 `json:"total,omitempty"` // 实际的数据类型:单个对象,集合 或 NULL Values *[]ExternalTestCaseHistoryVo `json:"values,omitempty"` HttpStatusCode int `json:"-"` }
ListTestCaseHistoriesResponse Response Object
func (ListTestCaseHistoriesResponse) String ¶ added in v0.1.50
func (o ListTestCaseHistoriesResponse) String() string
type ListTestCasesRequest ¶ added in v0.1.50
type ListTestCasesRequest struct { // 项目ID,固定长度32位字符(字母和数字)。 ProjectId string `json:"project_id"` Body *ListTestCasesRequestBody `json:"body,omitempty"` }
ListTestCasesRequest Request Object
func (ListTestCasesRequest) String ¶ added in v0.1.50
func (o ListTestCasesRequest) String() string
type ListTestCasesRequestBody ¶ added in v0.1.50
type ListTestCasesRequestBody struct { // 起始偏移量,表示从此偏移量开始查询,offset大于等于0,小于等于100000 Offset int32 `json:"offset"` // 每页显示的条目数量,最大支持200条 Limit int32 `json:"limit"` // 用例测试执行方式ID ExecutionTypeId *int32 `json:"execution_type_id,omitempty"` // 分支/测试计划ID,长度11-34位字符(字母和数字)。 VersionId *string `json:"version_id,omitempty"` }
func (ListTestCasesRequestBody) String ¶ added in v0.1.50
func (o ListTestCasesRequestBody) String() string
type ListTestCasesResponse ¶ added in v0.1.50
type ListTestCasesResponse struct { // 用例详情列表 Values *[]ExternalTestCaseVo `json:"values,omitempty"` // 用例总数 Total *int32 `json:"total,omitempty"` HttpStatusCode int `json:"-"` }
ListTestCasesResponse Response Object
func (ListTestCasesResponse) String ¶ added in v0.1.50
func (o ListTestCasesResponse) String() string
type NameAndId ¶ added in v0.0.71
type NameAndId struct { // 对象编号 Id *string `json:"id,omitempty"` // 对象名称 Name *string `json:"name,omitempty"` }
NameAndId 对象编号与名称
type NameAndIdVo ¶ added in v0.1.50
type NameAndIdVo struct { // ID Id *string `json:"id,omitempty"` // 名称 Name *string `json:"name,omitempty"` }
NameAndIdVo 服务类型信息
func (NameAndIdVo) String ¶ added in v0.1.50
func (o NameAndIdVo) String() string
type NameAndValueVo ¶ added in v0.1.71
type NameAndValueVo struct { // 名称 Name *string `json:"name,omitempty"` // 值 Value *int32 `json:"value,omitempty"` }
NameAndValueVo 用户自定义状态对应的用例数目
func (NameAndValueVo) String ¶ added in v0.1.71
func (o NameAndValueVo) String() string
type PlanCycle ¶
type PlanCycle struct { // 计划开始时间,要求用UTC时间表示。如2020-03-04 StartDate *string `json:"start_date,omitempty"` // 计划结束时间,要求用UTC时间表示。如2020-03-31 EndDate *string `json:"end_date,omitempty"` }
PlanCycle 计划周期信息
type ReportChartDataVo ¶ added in v0.1.36
type ReportChartDataVo struct { // 报表id Id *string `json:"id,omitempty"` // 报表名称 Name *string `json:"name,omitempty"` AnalyzeDim *ReportDimVo `json:"analyze_dim,omitempty"` // 对比维度数据 CompareDim *[]ReportDimVo `json:"compare_dim,omitempty"` }
ReportChartDataVo 报表数据
func (ReportChartDataVo) String ¶ added in v0.1.36
func (o ReportChartDataVo) String() string
type ReportDimVo ¶ added in v0.1.36
type ReportDimVo struct { // id Id *string `json:"id,omitempty"` // 名称 Name *string `json:"name,omitempty"` // 值 Value *int32 `json:"value,omitempty"` }
ReportDimVo 对比维度数据
func (ReportDimVo) String ¶ added in v0.1.36
func (o ReportDimVo) String() string
type ReportFilter ¶ added in v0.1.36
type ReportFilter struct { // 创建人 CreatorIds *string `json:"creatorIds,omitempty"` // 所属人 OwnerIds *string `json:"ownerIds,omitempty"` // 级别 Ranks *string `json:"ranks,omitempty"` // releaseId ReleaseIds *string `json:"releaseIds,omitempty"` // 状态 Status *string `json:"status,omitempty"` // 级别 ModuleIds *string `json:"moduleIds,omitempty"` // 结果 Results *string `json:"results,omitempty"` // 标签 LabelIds *string `json:"labelIds,omitempty"` // 开始时间 StartTime *string `json:"startTime,omitempty"` // 结束时间 EndTime *string `json:"endTime,omitempty"` // 是否关联需求 IsAssociateIssue *string `json:"isAssociateIssue,omitempty"` }
ReportFilter 过滤条件
func (ReportFilter) String ¶ added in v0.1.36
func (o ReportFilter) String() string
type ResourceChangeExternalVo ¶ added in v0.1.50
type ResourceChangeExternalVo struct { // 变更字段 FieldName *string `json:"field_name,omitempty"` // 测试用例自定义字段类型 CustomFieldType *string `json:"custom_field_type,omitempty"` OldChangeInfo *ElementResourceChangeExternalVo `json:"old_change_info,omitempty"` NewChangeInfo *ElementResourceChangeExternalVo `json:"new_change_info,omitempty"` }
ResourceChangeExternalVo 历史记录字段变更列表
func (ResourceChangeExternalVo) String ¶ added in v0.1.50
func (o ResourceChangeExternalVo) String() string
type ResultValueCustomReportListVo ¶ added in v0.1.36
type ResultValueCustomReportListVo struct { // 起始记录数大于实际总条数时,值为0,分页请求才有此值 Total *int32 `json:"total,omitempty"` Value *CustomReportListVo `json:"value,omitempty"` // 业务失败的提示内容,对内接口才有此值 Reason *string `json:"reason,omitempty"` PageSize *int32 `json:"page_size,omitempty"` PageNo *int32 `json:"page_no,omitempty"` HasMore *bool `json:"has_more,omitempty"` }
ResultValueCustomReportListVo 请求的返回的数据对象
func (ResultValueCustomReportListVo) String ¶ added in v0.1.36
func (o ResultValueCustomReportListVo) String() string
type RunTestCaseRequest ¶
type RunTestCaseRequest struct { // 项目唯一标识,固定长度32位字符 ProjectId string `json:"project_id"` Body *RunTestCaseRequestBody `json:"body,omitempty"` }
RunTestCaseRequest Request Object
func (RunTestCaseRequest) String ¶
func (o RunTestCaseRequest) String() string
type RunTestCaseRequestBody ¶
type RunTestCaseRequestBody struct { // 注册测试类型服务接口返回的服务id ServiceId int32 `json:"service_id"` // 测试计划id PlanId *string `json:"plan_id,omitempty"` // 测试用例执行信息,数组长度小于等于50 ExecuteList []TestCaseExecuteBean `json:"execute_list"` }
RunTestCaseRequestBody 执行测试用例请求体
func (RunTestCaseRequestBody) String ¶
func (o RunTestCaseRequestBody) String() string
type RunTestCaseResponse ¶
type RunTestCaseResponse struct { // 接口调用失败错误码 ErrorCode *string `json:"error_code,omitempty"` // 接口调用失败错误信息 ErrorMsg *string `json:"error_msg,omitempty"` ErrorDetail *ErrorDetailInfo `json:"error_detail,omitempty"` HttpStatusCode int `json:"-"` }
RunTestCaseResponse Response Object
func (RunTestCaseResponse) String ¶
func (o RunTestCaseResponse) String() string
type ServiceRequestBody ¶
type ServiceRequestBody struct { // 测试类型名称,用于界面显示,不能使用当前保留名,长度小于等于16位字符 ServiceName string `json:"service_name"` // server_host是由用户提供的域名。 我们会通过此域名进行接口调用,请以https/http开头,长度小于等于128位字符。 TestHub将会通过此域名下的接口,保证服务数据与用户系统数据的一致性。 ServerHost string `json:"server_host"` }
ServiceRequestBody 新测试类型服务信息
func (ServiceRequestBody) String ¶
func (o ServiceRequestBody) String() string
type ServicesInfo ¶
type ServicesInfo struct { // 服务id Id *int32 `json:"id,omitempty"` // 服务名称 Name *string `json:"name,omitempty"` }
func (ServicesInfo) String ¶
func (o ServicesInfo) String() string
type ShowApiTestcaseHistoriesRequest ¶ added in v0.1.50
type ShowApiTestcaseHistoriesRequest struct { // 测试用例id TestcaseId string `json:"testcase_id"` // 起始偏移量,表示从此偏移量开始查询, offset大于等于1 Offset *int32 `json:"offset,omitempty"` // 每页显示的条目数量,最大支持200条 Limit *int32 `json:"limit,omitempty"` // 测试计划id PlanId *string `json:"plan_id,omitempty"` // 项目ID,固定长度32位字符(字母和数字)。 ProjectId string `json:"project_id"` }
ShowApiTestcaseHistoriesRequest Request Object
func (ShowApiTestcaseHistoriesRequest) String ¶ added in v0.1.50
func (o ShowApiTestcaseHistoriesRequest) String() string
type ShowApiTestcaseHistoriesResponse ¶ added in v0.1.50
type ShowApiTestcaseHistoriesResponse struct { // 测试用例总数 TotalCount *int32 `json:"total_count,omitempty"` // 测试服务id ProjectId *string `json:"project_id,omitempty"` // 测试用例id TestcaseId *string `json:"testcase_id,omitempty"` // 测试用例名称 TestcaseName *string `json:"testcase_name,omitempty"` // 测试用例结果集 TestcaseResults *[]TestcaseResult `json:"testcase_results,omitempty"` HttpStatusCode int `json:"-"` }
ShowApiTestcaseHistoriesResponse Response Object
func (ShowApiTestcaseHistoriesResponse) String ¶ added in v0.1.50
func (o ShowApiTestcaseHistoriesResponse) String() string
type ShowIssuesByPlanIdRequest ¶ added in v0.0.73
type ShowIssuesByPlanIdRequest struct { // 项目id,项目唯一标识,固定长度32位字符 ProjectId string `json:"project_id"` // 测试计划id,测试计划的唯一标识,长度11-34位字符 PlanId string `json:"plan_id"` // 起始偏移量,表示从此偏移量开始查询, offset大于等于0 Offset int64 `json:"offset"` // 每页显示的条目数量,最大支持200条 Limit int64 `json:"limit"` }
ShowIssuesByPlanIdRequest Request Object
func (ShowIssuesByPlanIdRequest) String ¶ added in v0.0.73
func (o ShowIssuesByPlanIdRequest) String() string
type ShowIssuesByPlanIdResponse ¶ added in v0.0.73
type ShowIssuesByPlanIdResponse struct { // 项目下某个测试计划关联的需求列表的返回结构 Body *[]TestPlanIssueDetail `json:"body,omitempty"` HttpStatusCode int `json:"-"` }
ShowIssuesByPlanIdResponse Response Object
func (ShowIssuesByPlanIdResponse) String ¶ added in v0.0.73
func (o ShowIssuesByPlanIdResponse) String() string
type ShowPlanJournalsRequest ¶ added in v0.0.73
type ShowPlanJournalsRequest struct { // 项目id,项目唯一标识,固定长度32位字符 ProjectId string `json:"project_id"` // 测试计划id,测试计划的唯一标识,长度11-34位字符 PlanId string `json:"plan_id"` // 起始偏移量,表示从此偏移量开始查询, offset大于等于0 Offset int64 `json:"offset"` // 每页显示的条目数量,最大支持200条 Limit int64 `json:"limit"` }
ShowPlanJournalsRequest Request Object
func (ShowPlanJournalsRequest) String ¶ added in v0.0.73
func (o ShowPlanJournalsRequest) String() string
type ShowPlanJournalsResponse ¶ added in v0.0.73
type ShowPlanJournalsResponse struct { // 项目下查询测试计划操作历史返回结构 Body *[]TestPlanJournalList `json:"body,omitempty"` HttpStatusCode int `json:"-"` }
ShowPlanJournalsResponse Response Object
func (ShowPlanJournalsResponse) String ¶ added in v0.0.73
func (o ShowPlanJournalsResponse) String() string
type ShowPlanListRequest ¶ added in v0.0.74
type ShowPlanListRequest struct { // 项目id,项目唯一标识,固定长度32位字符 ProjectId string `json:"project_id"` // 起始偏移量,表示从此偏移量开始查询, offset大于等于0 Offset int64 `json:"offset"` // 每页显示的条目数量,最大支持200条 Limit int64 `json:"limit"` // 模糊查询使用(针对测试计划名称) Name *string `json:"name,omitempty"` // 测试计划所处阶段(create,design,execute,report) CurrentStage *string `json:"current_stage,omitempty"` }
ShowPlanListRequest Request Object
func (ShowPlanListRequest) String ¶ added in v0.0.74
func (o ShowPlanListRequest) String() string
type ShowPlanListResponse ¶ added in v0.0.74
type ShowPlanListResponse struct { // 项目下查询测试计划列表返回结构 Body *[]TestPlanDetail `json:"body,omitempty"` HttpStatusCode int `json:"-"` }
ShowPlanListResponse Response Object
func (ShowPlanListResponse) String ¶ added in v0.0.74
func (o ShowPlanListResponse) String() string
type ShowPlansRequest ¶
type ShowPlansRequest struct { // 项目id,项目唯一标识,固定长度32位字符 ProjectId string `json:"project_id"` // 模糊查询使用(针对测试计划名称) Name *string `json:"name,omitempty"` // 测试计划所处阶段(create,design,execute,report) CurrentStage *string `json:"current_stage,omitempty"` // 页号,取值范围为1-20000 Offset int32 `json:"offset"` // 每页显示的条目数量,取值范围为1-200 Limit int32 `json:"limit"` }
ShowPlansRequest Request Object
func (ShowPlansRequest) String ¶
func (o ShowPlansRequest) String() string
type ShowPlansResponse ¶
type ShowPlansResponse struct { // 项目下查询测试计划列表返回结构 Body *[]TestPlanDetail `json:"body,omitempty"` HttpStatusCode int `json:"-"` }
ShowPlansResponse Response Object
func (ShowPlansResponse) String ¶
func (o ShowPlansResponse) String() string
type ShowProjectDataDashboardRequest ¶ added in v0.1.71
type ShowProjectDataDashboardRequest struct { // 项目ID,固定长度32位字符(字母和数字)。 ProjectId string `json:"project_id"` Body *TestReportInfoRequestBody `json:"body,omitempty"` }
ShowProjectDataDashboardRequest Request Object
func (ShowProjectDataDashboardRequest) String ¶ added in v0.1.71
func (o ShowProjectDataDashboardRequest) String() string
type ShowProjectDataDashboardResponse ¶ added in v0.1.71
type ShowProjectDataDashboardResponse struct { Defect *DefectVo `json:"defect,omitempty"` CasePassRate *CasePassRateVo `json:"case_pass_rate,omitempty"` CaseCompletionRate *CaseCompletionRateVo `json:"case_completion_rate,omitempty"` // 项目类型 ProjectType *string `json:"project_type,omitempty"` IssueCoverRate *IssueCoverRateVo `json:"issue_cover_rate,omitempty"` HttpStatusCode int `json:"-"` }
ShowProjectDataDashboardResponse Response Object
func (ShowProjectDataDashboardResponse) String ¶ added in v0.1.71
func (o ShowProjectDataDashboardResponse) String() string
type ShowRegisterServiceRequest ¶
type ShowRegisterServiceRequest struct { }
ShowRegisterServiceRequest Request Object
func (ShowRegisterServiceRequest) String ¶
func (o ShowRegisterServiceRequest) String() string
type ShowRegisterServiceResponse ¶
type ShowRegisterServiceResponse struct { // 注册服务信息 Services *[]ServicesInfo `json:"services,omitempty"` HttpStatusCode int `json:"-"` }
ShowRegisterServiceResponse Response Object
func (ShowRegisterServiceResponse) String ¶
func (o ShowRegisterServiceResponse) String() string
type ShowReportRequest ¶ added in v0.1.36
type ShowReportRequest struct { // 项目id ProjectId string `json:"project_id"` // 分支/计划id PlanId string `json:"plan_id"` Body *GenerateReportInfo `json:"body,omitempty"` }
ShowReportRequest Request Object
func (ShowReportRequest) String ¶ added in v0.1.36
func (o ShowReportRequest) String() string
type ShowReportResponse ¶ added in v0.1.36
type ShowReportResponse struct { // success|error Status *string `json:"status,omitempty"` Result *ResultValueCustomReportListVo `json:"result,omitempty"` Error *ApiError `json:"error,omitempty"` // 由接口调用方传入,建议使用UUID保证请求的唯一性。 RequestId *string `json:"request_id,omitempty"` HttpStatusCode int `json:"-"` }
ShowReportResponse Response Object
func (ShowReportResponse) String ¶ added in v0.1.36
func (o ShowReportResponse) String() string
type ShowTestCaseAndDefectInfoRequest ¶ added in v0.1.54
type ShowTestCaseAndDefectInfoRequest struct { // 项目ID,固定长度32位字符(字母和数字)。 ProjectId string `json:"project_id"` Body *ShowTestCaseAndDefectInfoRequestBody `json:"body,omitempty"` }
ShowTestCaseAndDefectInfoRequest Request Object
func (ShowTestCaseAndDefectInfoRequest) String ¶ added in v0.1.54
func (o ShowTestCaseAndDefectInfoRequest) String() string
type ShowTestCaseAndDefectInfoRequestBody ¶ added in v0.1.54
type ShowTestCaseAndDefectInfoRequestBody struct { // 起始偏移量,表示从此偏移量开始查询,offset大于等于0,小于等于100000 Offset int32 `json:"offset"` // 每页显示的条目数量,最大支持100条 Limit int32 `json:"limit"` // 分支ID BranchId *string `json:"branch_id,omitempty"` // 用例创建时间段开始 CreateTestcaseStartTime string `json:"create_testcase_start_time"` // 用例创建时间段截止 CreateTestcaseEndTime string `json:"create_testcase_end_time"` // 缺陷关联时间段开始 AssociateDefectStartTime *string `json:"associate_defect_start_time,omitempty"` // 缺陷关联时间段截止 AssociateDefectEndTime *string `json:"associate_defect_end_time,omitempty"` }
ShowTestCaseAndDefectInfoRequestBody 查询用户用例关联缺陷的统计信息请求体
func (ShowTestCaseAndDefectInfoRequestBody) String ¶ added in v0.1.54
func (o ShowTestCaseAndDefectInfoRequestBody) String() string
type ShowTestCaseAndDefectInfoResponse ¶ added in v0.1.54
type ShowTestCaseAndDefectInfoResponse struct { // 起始记录数大于实际总条数时,值为0。 Total *int32 `json:"total,omitempty"` // 查询用户用例关联缺陷的统计信息 Values *[]ExternalUserCaseAndDefect `json:"values,omitempty"` HttpStatusCode int `json:"-"` }
ShowTestCaseAndDefectInfoResponse Response Object
func (ShowTestCaseAndDefectInfoResponse) String ¶ added in v0.1.54
func (o ShowTestCaseAndDefectInfoResponse) String() string
type ShowTestCaseDetailRequest ¶
type ShowTestCaseDetailRequest struct { // 项目唯一标识,固定长度32位字符 ProjectId string `json:"project_id"` // 测试用例唯一标识,固定长度32位字符 TestcaseId string `json:"testcase_id"` }
ShowTestCaseDetailRequest Request Object
func (ShowTestCaseDetailRequest) String ¶
func (o ShowTestCaseDetailRequest) String() string
type ShowTestCaseDetailResponse ¶
type ShowTestCaseDetailResponse struct { // 测试用例唯一标识 TestcaseId *string `json:"testcase_id,omitempty"` // 软开云项目唯一标识 ProjectId *string `json:"project_id,omitempty"` // 注册测试类型服务接口返回的服务id ServiceId *int32 `json:"service_id,omitempty"` // 测试用例名称 Name *string `json:"name,omitempty"` // 测试用例编号 TestcaseNumber *string `json:"testcase_number,omitempty"` // 测试用例等级 RankId *string `json:"rank_id,omitempty"` // 测试用例状态 StatusId *string `json:"status_id,omitempty"` AssignedUser *AssignedUserInfo `json:"assigned_user,omitempty"` // 测试用例执行次数 ExecuteCount *int32 `json:"execute_count,omitempty"` // 测试用例执行结果 ResultId *string `json:"result_id,omitempty"` ExtendInfo *ExtendInfo `json:"extend_info,omitempty"` // 接口调用失败错误码 ErrorCode *string `json:"error_code,omitempty"` // 接口调用失败错误信息 ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
ShowTestCaseDetailResponse Response Object
func (ShowTestCaseDetailResponse) String ¶
func (o ShowTestCaseDetailResponse) String() string
type ShowTestCaseDetailV2Request ¶
type ShowTestCaseDetailV2Request struct { // 项目唯一标识,固定长度32位字符 ProjectId string `json:"project_id"` // 用例编号,长度为[3-128]位字符 TestcaseNumber string `json:"testcase_number"` }
ShowTestCaseDetailV2Request Request Object
func (ShowTestCaseDetailV2Request) String ¶
func (o ShowTestCaseDetailV2Request) String() string
type ShowTestCaseDetailV2Response ¶
type ShowTestCaseDetailV2Response struct { // 测试用例唯一标识 TestcaseId *string `json:"testcase_id,omitempty"` // 软开云项目唯一标识 ProjectId *string `json:"project_id,omitempty"` // 注册测试类型服务接口返回的服务id ServiceId *int32 `json:"service_id,omitempty"` // 测试用例名称 Name *string `json:"name,omitempty"` // 测试用例编号 TestcaseNumber *string `json:"testcase_number,omitempty"` // 测试用例等级 RankId *string `json:"rank_id,omitempty"` // 测试用例状态 StatusId *string `json:"status_id,omitempty"` AssignedUser *AssignedUserInfo `json:"assigned_user,omitempty"` // 测试用例执行次数 ExecuteCount *int32 `json:"execute_count,omitempty"` // 测试用例执行结果 ResultId *string `json:"result_id,omitempty"` ExtendInfo *ExtendInfo `json:"extend_info,omitempty"` // 接口调用失败错误码 ErrorCode *string `json:"error_code,omitempty"` // 接口调用失败错误信息 ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
ShowTestCaseDetailV2Response Response Object
func (ShowTestCaseDetailV2Response) String ¶
func (o ShowTestCaseDetailV2Response) String() string
type ShowUserExecuteTestCaseInfoRequest ¶ added in v0.1.54
type ShowUserExecuteTestCaseInfoRequest struct { // 项目ID,固定长度32位字符(字母和数字)。 ProjectId string `json:"project_id"` Body *ShowUserExecuteTestCaseInfoRequestBody `json:"body,omitempty"` }
ShowUserExecuteTestCaseInfoRequest Request Object
func (ShowUserExecuteTestCaseInfoRequest) String ¶ added in v0.1.54
func (o ShowUserExecuteTestCaseInfoRequest) String() string
type ShowUserExecuteTestCaseInfoRequestBody ¶ added in v0.1.54
type ShowUserExecuteTestCaseInfoRequestBody struct { // 起始偏移量,表示从此偏移量开始查询,offset大于等于0,小于等于20000 Offset int32 `json:"offset"` // 每页显示的条目数量,最大支持100条 Limit int32 `json:"limit"` // 用例执行时间段开始 ExecuteStartTime string `json:"execute_start_time"` // 用例执行时间段截止 ExecuteEndTime string `json:"execute_end_time"` }
ShowUserExecuteTestCaseInfoRequestBody 查询时段内用例的执行情况请求体
func (ShowUserExecuteTestCaseInfoRequestBody) String ¶ added in v0.1.54
func (o ShowUserExecuteTestCaseInfoRequestBody) String() string
type ShowUserExecuteTestCaseInfoResponse ¶ added in v0.1.54
type ShowUserExecuteTestCaseInfoResponse struct { // 起始记录数大于实际总条数时,值为0。 Total *int32 `json:"total,omitempty"` // 时段内用例的执行情况 Values *[]ExternalUserExecuteInfo `json:"values,omitempty"` HttpStatusCode int `json:"-"` }
ShowUserExecuteTestCaseInfoResponse Response Object
func (ShowUserExecuteTestCaseInfoResponse) String ¶ added in v0.1.54
func (o ShowUserExecuteTestCaseInfoResponse) String() string
type TestCaseExecuteBean ¶
type TestCaseExecuteBean struct { // 测试用例唯一标识,列表中不允许存在重复的id,固定长度32位字符 TestcaseId string `json:"testcase_id"` // 注册服务执行id,该值不允许重复,不超过32位字符 ExecuteId string `json:"execute_id"` // 测试用例结果,(0-成功,1-失败,5-执行中,6-停止) ResultId string `json:"result_id"` // 用例开始执行的时间戳,在执行开始时该字段必传 StartTime int64 `json:"start_time"` }
TestCaseExecuteBean 测试用例执行信息,数组长度小于等于50
func (TestCaseExecuteBean) String ¶
func (o TestCaseExecuteBean) String() string
type TestPlanDetail ¶ added in v0.0.74
type TestPlanDetail struct { // 测试计划id PlanId *string `json:"plan_id,omitempty"` // 测试计划名称 Name *string `json:"name,omitempty"` // 测试计划开始时间 StartDate *string `json:"start_date,omitempty"` // 测试计划截止时间 EndDate *string `json:"end_date,omitempty"` // 测试计划实际完成时间(测试计划实际完成指测试计划下所有测试用例处于完成状态) FinishDate *string `json:"finish_date,omitempty"` // 项目id ProjectId *string `json:"project_id,omitempty"` // 当前测试计划所处的阶段 CurrentStage *string `json:"current_stage,omitempty"` // 获取超期时间,正值表示已超期 ExpireDay *int32 `json:"expire_day,omitempty"` Creator *TestPlanDetailCreator `json:"creator,omitempty"` Owner *TestPlanDetailOwner `json:"owner,omitempty"` DesignStage *TestPlanDetailDesignStage `json:"design_stage,omitempty"` ExecuteStage *TestPlanDetailExecuteStage `json:"execute_stage,omitempty"` ReportStage *TestPlanDetailReportStage `json:"report_stage,omitempty"` Iteration *NameAndId `json:"iteration,omitempty"` }
TestPlanDetail 测试计划详情
func (TestPlanDetail) String ¶ added in v0.0.74
func (o TestPlanDetail) String() string
type TestPlanDetailCreator ¶ added in v0.0.81
type TestPlanDetailCreator struct { // 测试计划创建者id Id *string `json:"id,omitempty"` // 测试计划创建者的昵称,当用户未设置昵称时不返回该字段 NickName *string `json:"nick_name,omitempty"` // 测试计划创建者的用户名称 UserName *string `json:"user_name,omitempty"` }
TestPlanDetailCreator 测试计划创建者信息
func (TestPlanDetailCreator) String ¶ added in v0.0.81
func (o TestPlanDetailCreator) String() string
type TestPlanDetailDesignStage ¶ added in v0.0.74
type TestPlanDetailDesignStage struct { // 用例个数 CaseCount *int32 `json:"case_count,omitempty"` // 需求个数 IssueCount *int32 `json:"issue_count,omitempty"` // 已被用例关联的需求个数 IssueCoveredCount *string `json:"issue_covered_count,omitempty"` }
TestPlanDetailDesignStage 测试计划设计阶段信息
func (TestPlanDetailDesignStage) String ¶ added in v0.0.74
func (o TestPlanDetailDesignStage) String() string
type TestPlanDetailExecuteStage ¶ added in v0.0.74
type TestPlanDetailExecuteStage struct { // 缺陷个数 DefectCount *int32 `json:"defect_count,omitempty"` // 已完成缺陷个数 CompletedDefectCount *int32 `json:"completed_defect_count,omitempty"` // 用例通过率,按用例结果计算 CasePassRate *string `json:"case_pass_rate,omitempty"` // 已执行用例数, 按用例状态统计 ExecutedCaseCount *int32 `json:"executed_case_count,omitempty"` }
TestPlanDetailExecuteStage 测试计划执行阶段信息
func (TestPlanDetailExecuteStage) String ¶ added in v0.0.74
func (o TestPlanDetailExecuteStage) String() string
type TestPlanDetailOwner ¶ added in v0.0.74
type TestPlanDetailOwner struct { // 测试计划处理者id Id *string `json:"id,omitempty"` // 测试计划处理者名称,优先返回nickName,不存在则返回userName Name *string `json:"name,omitempty"` // 测试计划处理者的昵称,当用户未设置昵称时不返回该字段 NickName *string `json:"nick_name,omitempty"` // 测试计划处理者的用户名称 UserName *string `json:"user_name,omitempty"` }
TestPlanDetailOwner 测试计划处理者信息
func (TestPlanDetailOwner) String ¶ added in v0.0.74
func (o TestPlanDetailOwner) String() string
type TestPlanDetailReportStage ¶ added in v0.0.74
type TestPlanDetailReportStage struct { // 用例完成率,按状态统计 CaseCompleteRate *string `json:"case_complete_rate,omitempty"` }
TestPlanDetailReportStage 测试计划完成阶段信息
func (TestPlanDetailReportStage) String ¶ added in v0.0.74
func (o TestPlanDetailReportStage) String() string
type TestPlanIssueDetail ¶ added in v0.0.74
type TestPlanIssueDetail struct { // 项目id,项目唯一标识,固定长度32位字符 ProjectId *string `json:"project_id,omitempty"` // 测试计划id PlanId *string `json:"plan_id,omitempty"` // 工作项id WorkitemId *string `json:"workitem_id,omitempty"` // 父工作项 ParentIssue *string `json:"parent_issue,omitempty"` // 预计开始日期 StartDate *string `json:"start_date,omitempty"` // 预计结束日期 EndDate *string `json:"end_date,omitempty"` // 工作项名称 Name *string `json:"name,omitempty"` // region信息 RegionId *string `json:"region_id,omitempty"` Owner *NameAndId `json:"owner,omitempty"` Severity *NameAndId `json:"severity,omitempty"` Status *NameAndId `json:"status,omitempty"` Tracker *NameAndId `json:"tracker,omitempty"` Iteration *NameAndId `json:"iteration,omitempty"` Module *NameAndId `json:"module,omitempty"` }
TestPlanIssueDetail 测试计划需求列表详情
func (TestPlanIssueDetail) String ¶ added in v0.0.74
func (o TestPlanIssueDetail) String() string
type TestPlanJournalDetail ¶ added in v0.0.74
type TestPlanJournalDetail struct { // 测试计划基础信息变更,包括计划名称,测试类型,计划处理者、版本号、关联迭代、开始日期、截至日期、描述 Updated *[]AttributeChange `json:"updated,omitempty"` // 测试计划资源的添加记录(工作项或者测试用例) Added *[]NameAndId `json:"added,omitempty"` // 测试计划资源的移除记录(工作项或者测试用例) Deleted *[]NameAndId `json:"deleted,omitempty"` // 表明该条变更记录的具体变更类型,例如测试用例(testCase),需求(issue) JournalizedType *string `json:"journalized_type,omitempty"` // 表明该条变更记录属于基础信息变更还是资源(需求添加移除、用例添加移除)变更 Type *string `json:"type,omitempty"` }
TestPlanJournalDetail 测试计划操作历史详情
func (TestPlanJournalDetail) String ¶ added in v0.0.74
func (o TestPlanJournalDetail) String() string
type TestPlanJournalList ¶ added in v0.0.74
type TestPlanJournalList struct { // 项目id,项目唯一标识,固定长度32位字符 ProjectId *string `json:"project_id,omitempty"` // 测试计划id PlanId *string `json:"plan_id,omitempty"` // 变更时间 OperateTime *string `json:"operate_time,omitempty"` Operator *NameAndId `json:"operator,omitempty"` // 历史记录详情 Detail *[]TestPlanJournalDetail `json:"detail,omitempty"` }
TestPlanJournalList 项目下某个测试计划操作历史列表
func (TestPlanJournalList) String ¶ added in v0.0.74
func (o TestPlanJournalList) String() string
type TestReportInfoRequestBody ¶ added in v0.1.71
type TestReportInfoRequestBody struct { // 测试计划id,(plan_id和branch_id不能同时为空,优先取plan_id) PlanId *string `json:"plan_id,omitempty"` // 分支id,(plan_id和branch_id不能同时为空,优先取plan_id) BranchId *string `json:"branch_id,omitempty"` // 模块ID(查询未设置传入-2) ModuleId *string `json:"module_id,omitempty"` // 筛选迭代ID(查询未设置传入-2) FixedVersionId *string `json:"fixed_version_id,omitempty"` }
TestReportInfoRequestBody 查询质量报告看板统计信息请求体
func (TestReportInfoRequestBody) String ¶ added in v0.1.71
func (o TestReportInfoRequestBody) String() string
type TestcaseResult ¶ added in v0.1.50
type TestcaseResult struct { // 结果 ExecuteResultId *string `json:"execute_result_id,omitempty"` // 测试用例状态 ExecuteStatus *string `json:"execute_status,omitempty"` // 失败原因 FailureCause *string `json:"failure_cause,omitempty"` // 任务id TaskId *string `json:"task_id,omitempty"` // 测试计划id PlanId *string `json:"plan_id,omitempty"` // 开始时间 StartTime *string `json:"start_time,omitempty"` // 结束时间 EndTime *string `json:"end_time,omitempty"` // 执行测试用例用户id ExecutorId *string `json:"executor_id,omitempty"` // 执行测试用例用户name ExecutorName *string `json:"executor_name,omitempty"` }
TestcaseResult 测试用例结果
func (TestcaseResult) String ¶ added in v0.1.50
func (o TestcaseResult) String() string
type UpdateServiceRequest ¶
type UpdateServiceRequest struct { // 注册服务唯一标识,该值由注册接口返回 ServiceId int32 `json:"service_id"` Body *ServiceRequestBody `json:"body,omitempty"` }
UpdateServiceRequest Request Object
func (UpdateServiceRequest) String ¶
func (o UpdateServiceRequest) String() string
type UpdateServiceResponse ¶
type UpdateServiceResponse struct { // 接口调用成功返回的服务名 ServiceName *string `json:"service_name,omitempty"` // 接口调用成功返回的服务id ServiceId *int32 `json:"service_id,omitempty"` // 接口调用成功不返回,调用失败错误码 ErrorCode *string `json:"error_code,omitempty"` // 接口调用成功不返回,调用失败错误信息 ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
UpdateServiceResponse Response Object
func (UpdateServiceResponse) String ¶
func (o UpdateServiceResponse) String() string
type UpdateTestCaseRequest ¶
type UpdateTestCaseRequest struct { // 项目唯一标识,固定长度32位字符 ProjectId string `json:"project_id"` // 测试用例唯一标识,固定长度32位字符 TestcaseId string `json:"testcase_id"` Body *UpdateTestCaseRequestBody `json:"body,omitempty"` }
UpdateTestCaseRequest Request Object
func (UpdateTestCaseRequest) String ¶
func (o UpdateTestCaseRequest) String() string
type UpdateTestCaseRequestBody ¶
type UpdateTestCaseRequestBody struct { // 页面上显示的用例名称,长度为[3-128]位字符 Name string `json:"name"` // 注册测试类型服务接口返回的服务id,取值范围为10-9999 ServiceId int32 `json:"service_id"` // 测试用例等级,可选值为[0,1,2,3,4],不填时默认为2 RankId *string `json:"rank_id,omitempty"` // 用例编号,不填该值时会自动生成,长度为[3-128]位字符 TestcaseNumber *string `json:"testcase_number,omitempty"` ExtendInfo *ExternalServiceBizCase `json:"extend_info,omitempty"` }
UpdateTestCaseRequestBody 更新测试用例信息请求体
func (UpdateTestCaseRequestBody) String ¶
func (o UpdateTestCaseRequestBody) String() string
type UpdateTestCaseResponse ¶
type UpdateTestCaseResponse struct { // 测试用例唯一标识 TestcaseId *string `json:"testcase_id,omitempty"` // 软开云项目唯一标识 ProjectId *string `json:"project_id,omitempty"` // 注册测试类型服务接口返回的服务id ServiceId *int32 `json:"service_id,omitempty"` // 测试用例名称 Name *string `json:"name,omitempty"` // 测试用例编号 TestcaseNumber *string `json:"testcase_number,omitempty"` // 测试用例等级 RankId *string `json:"rank_id,omitempty"` // 测试用例状态 StatusId *string `json:"status_id,omitempty"` AssignedUser *AssignedUserInfo `json:"assigned_user,omitempty"` // 测试用例执行次数 ExecuteCount *int32 `json:"execute_count,omitempty"` // 测试用例执行结果 ResultId *string `json:"result_id,omitempty"` ExtendInfo *ExtendInfo `json:"extend_info,omitempty"` // 接口调用失败错误码 ErrorCode *string `json:"error_code,omitempty"` // 接口调用失败错误信息 ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
UpdateTestCaseResponse Response Object
func (UpdateTestCaseResponse) String ¶
func (o UpdateTestCaseResponse) String() string
type UpdateTestCaseResultBean ¶
type UpdateTestCaseResultBean struct { // 测试用例唯一标识,列表中不允许存在重复的id,固定长度32位字符 TestcaseId string `json:"testcase_id"` // 注册服务执行id,该值不允许重复,不超过32位字符 ExecuteId string `json:"execute_id"` // 测试用例结果,(0-成功,1-失败,5-执行中,6-停止) ResultId string `json:"result_id"` // 用例结束执行的时间戳,在执行结束时该字段必传 EndTime int64 `json:"end_time"` // 执行用例持续时长ms,更新状态时改字段必传 Duration *int64 `json:"duration,omitempty"` // 用于记录该次结果执行的备注信息 Description *string `json:"description,omitempty"` }
UpdateTestCaseResultBean 测试用例状态信息,数组长度小于等于50
func (UpdateTestCaseResultBean) String ¶
func (o UpdateTestCaseResultBean) String() string
type UpdateTestCaseResultRequest ¶
type UpdateTestCaseResultRequest struct { // 项目唯一标识,固定长度32位字符 ProjectId string `json:"project_id"` Body *UpdateTestCaseResultRequestBody `json:"body,omitempty"` }
UpdateTestCaseResultRequest Request Object
func (UpdateTestCaseResultRequest) String ¶
func (o UpdateTestCaseResultRequest) String() string
type UpdateTestCaseResultRequestBody ¶
type UpdateTestCaseResultRequestBody struct { // 注册测试类型服务接口返回的服务id ServiceId int32 `json:"service_id"` // 测试用例状态信息,数组长度小于等于50 ExecuteList []UpdateTestCaseResultBean `json:"execute_list"` }
UpdateTestCaseResultRequestBody 更新测试用例状态请求体
func (UpdateTestCaseResultRequestBody) String ¶
func (o UpdateTestCaseResultRequestBody) String() string
type UpdateTestCaseResultResponse ¶
type UpdateTestCaseResultResponse struct { // 接口调用失败错误码 ErrorCode *string `json:"error_code,omitempty"` // 接口调用失败错误信息 ErrorMsg *string `json:"error_msg,omitempty"` ErrorDetail *ErrorDetailInfo `json:"error_detail,omitempty"` HttpStatusCode int `json:"-"` }
UpdateTestCaseResultResponse Response Object
func (UpdateTestCaseResultResponse) String ¶
func (o UpdateTestCaseResultResponse) String() string
Source Files ¶
- model_api_error.go
- model_assigned_user_info.go
- model_associate_defect_info_vo.go
- model_associate_issue_info_vo.go
- model_attribute_change.go
- model_batch_delete_test_case_request.go
- model_batch_delete_test_case_request_body.go
- model_batch_delete_test_case_response.go
- model_case_completion_rate_vo.go
- model_case_pass_rate_vo.go
- model_cover_rate_vo.go
- model_create_api_test_suite_by_repo_file_request.go
- model_create_api_test_suite_by_repo_file_response.go
- model_create_info_vo.go
- model_create_plan_request.go
- model_create_plan_request_body.go
- model_create_plan_response.go
- model_create_service_request.go
- model_create_service_response.go
- model_create_test_case_in_plan_request.go
- model_create_test_case_in_plan_request_body.go
- model_create_test_case_in_plan_response.go
- model_create_test_case_request.go
- model_create_test_case_request_body.go
- model_create_test_case_response.go
- model_create_test_suit_by_repo_file_info.go
- model_custom_report_list_vo.go
- model_defect_vo.go
- model_delete_service_request.go
- model_delete_service_response.go
- model_element_resource_change_external_vo.go
- model_environment.go
- model_error_case_info_bean.go
- model_error_detail_info.go
- model_execute_info_vo.go
- model_extend_author_info.go
- model_extend_info.go
- model_external_branch_info_vo.go
- model_external_service_biz_case.go
- model_external_service_case_info.go
- model_external_service_case_step.go
- model_external_test_case_history_vo.go
- model_external_test_case_vo.go
- model_external_user_case_and_defect.go
- model_external_user_execute_info.go
- model_generate_report_info.go
- model_integer_id_and_name_vo.go
- model_issue_cover_rate_vo.go
- model_list_branches_request.go
- model_list_branches_response.go
- model_list_environments_request.go
- model_list_environments_response.go
- model_list_test_case_histories_request.go
- model_list_test_case_histories_request_body.go
- model_list_test_case_histories_response.go
- model_list_test_cases_request.go
- model_list_test_cases_request_body.go
- model_list_test_cases_response.go
- model_name_and_id.go
- model_name_and_id_vo.go
- model_name_and_value_vo.go
- model_plan_cycle.go
- model_report_chart_data_vo.go
- model_report_dim_vo.go
- model_report_filter.go
- model_resource_change_external_vo.go
- model_result_value_custom_report_list_vo.go
- model_run_test_case_request.go
- model_run_test_case_request_body.go
- model_run_test_case_response.go
- model_service_request_body.go
- model_services_info.go
- model_show_api_testcase_histories_request.go
- model_show_api_testcase_histories_response.go
- model_show_issues_by_plan_id_request.go
- model_show_issues_by_plan_id_response.go
- model_show_plan_journals_request.go
- model_show_plan_journals_response.go
- model_show_plan_list_request.go
- model_show_plan_list_response.go
- model_show_plans_request.go
- model_show_plans_response.go
- model_show_project_data_dashboard_request.go
- model_show_project_data_dashboard_response.go
- model_show_register_service_request.go
- model_show_register_service_response.go
- model_show_report_request.go
- model_show_report_response.go
- model_show_test_case_and_defect_info_request.go
- model_show_test_case_and_defect_info_request_body.go
- model_show_test_case_and_defect_info_response.go
- model_show_test_case_detail_request.go
- model_show_test_case_detail_response.go
- model_show_test_case_detail_v2_request.go
- model_show_test_case_detail_v2_response.go
- model_show_user_execute_test_case_info_request.go
- model_show_user_execute_test_case_info_request_body.go
- model_show_user_execute_test_case_info_response.go
- model_test_case_execute_bean.go
- model_test_plan_detail.go
- model_test_plan_detail_creator.go
- model_test_plan_detail_design_stage.go
- model_test_plan_detail_execute_stage.go
- model_test_plan_detail_owner.go
- model_test_plan_detail_report_stage.go
- model_test_plan_issue_detail.go
- model_test_plan_journal_detail.go
- model_test_plan_journal_list.go
- model_test_report_info_request_body.go
- model_testcase_result.go
- model_update_service_request.go
- model_update_service_response.go
- model_update_test_case_request.go
- model_update_test_case_request_body.go
- model_update_test_case_response.go
- model_update_test_case_result_bean.go
- model_update_test_case_result_request.go
- model_update_test_case_result_request_body.go
- model_update_test_case_result_response.go