model

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiError

type ApiError struct {

	// 只有对外的接口才会返回此内容
	Code *string `json:"code,omitempty"`

	// 业务失败的提示内容
	Reason *string `json:"reason,omitempty"`
}

ApiError 失败时的error信息

func (ApiError) String

func (o ApiError) String() string

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

type AssociateDefectInfoVo struct {

	// 是否已关联
	Associate *bool `json:"associate,omitempty"`

	// 关联缺陷数
	AssociateCount *int32 `json:"associate_count,omitempty"`
}

AssociateDefectInfoVo 关联缺陷信息

func (AssociateDefectInfoVo) String

func (o AssociateDefectInfoVo) String() string

type AssociateIssueInfoVo

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

func (o AssociateIssueInfoVo) String() string

type AttributeChange

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

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

type BatchDeleteTestCaseRequestBody

type BatchDeleteTestCaseRequestBody struct {

	// 注册测试类型服务接口返回的服务id,取值范围为10-9999
	ServiceId int32 `json:"service_id"`

	// 测试用例唯一标识,数组长度小于50个
	TestcaseIdList []string `json:"testcase_id_list"`
}

BatchDeleteTestCaseRequestBody 批量删除测试用例请求体

func (BatchDeleteTestCaseRequestBody) 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

type CreateApiTestSuiteByRepoFileRequest

type CreateApiTestSuiteByRepoFileRequest struct {

	// 项目ID,固定长度32位字符(字母和数字)。
	ProjectId string `json:"project_id"`

	Body *CreateTestSuitByRepoFileInfo `json:"body,omitempty"`
}

CreateApiTestSuiteByRepoFileRequest Request Object

func (CreateApiTestSuiteByRepoFileRequest) 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

type CreateInfoVo

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

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

type CreateTestCaseInPlanRequestBody

type CreateTestCaseInPlanRequestBody struct {

	// 注册测试类型服务接口返回的服务id
	ServiceId int32 `json:"service_id"`

	// 计划下包含的用例个数,数组长度小于50个,只能包含一种测试类型
	TestcaseIdList []string `json:"testcase_id_list"`
}

CreateTestCaseInPlanRequestBody 计划中批量添加测试用例请求体

func (CreateTestCaseInPlanRequestBody) String

type CreateTestCaseInPlanResponse

type CreateTestCaseInPlanResponse struct {
	HttpStatusCode int `json:"-"`
}

CreateTestCaseInPlanResponse Response Object

func (CreateTestCaseInPlanResponse) 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

type CustomReportListVo

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

func (o CustomReportListVo) String() string

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

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

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

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

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

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

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

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

func (o ExternalTestCaseHistoryVo) String() string

type ExternalTestCaseVo

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

func (o ExternalTestCaseVo) String() string

type GenerateReportInfo

type GenerateReportInfo struct {

	// 报表名称
	Name *string `json:"name,omitempty"`

	// 工件类型(用例:case,测试套:suite)
	WorkpieceType *string `json:"workpiece_type,omitempty"`

	// 分析维度
	AnalysisDimRow *string `json:"analysis_dim_row,omitempty"`

	// 对比维度
	CompareDimColumn *string `json:"compare_dim_column,omitempty"`

	Filter *ReportFilter `json:"filter,omitempty"`
}

func (GenerateReportInfo) String

func (o GenerateReportInfo) String() string

type IntegerIdAndNameVo

type IntegerIdAndNameVo struct {

	// 数据库存储数字
	Id *int32 `json:"id,omitempty"`

	// 页面显示值
	Name *string `json:"name,omitempty"`
}

IntegerIdAndNameVo 测试类型信息

func (IntegerIdAndNameVo) String

func (o IntegerIdAndNameVo) String() string

type ListBranchesRequest

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

func (o ListBranchesRequest) String() string

type ListBranchesRequestSortField

type ListBranchesRequestSortField struct {
	// contains filtered or unexported fields
}

func (ListBranchesRequestSortField) MarshalJSON

func (c ListBranchesRequestSortField) MarshalJSON() ([]byte, error)

func (*ListBranchesRequestSortField) UnmarshalJSON

func (c *ListBranchesRequestSortField) UnmarshalJSON(b []byte) error

func (ListBranchesRequestSortField) Value

type ListBranchesRequestSortFieldEnum

type ListBranchesRequestSortFieldEnum struct {
	NAME          ListBranchesRequestSortField
	CREATION_DATE ListBranchesRequestSortField
}

func GetListBranchesRequestSortFieldEnum

func GetListBranchesRequestSortFieldEnum() ListBranchesRequestSortFieldEnum

type ListBranchesRequestSortType

type ListBranchesRequestSortType struct {
	// contains filtered or unexported fields
}

func (ListBranchesRequestSortType) MarshalJSON

func (c ListBranchesRequestSortType) MarshalJSON() ([]byte, error)

func (*ListBranchesRequestSortType) UnmarshalJSON

func (c *ListBranchesRequestSortType) UnmarshalJSON(b []byte) error

func (ListBranchesRequestSortType) Value

type ListBranchesRequestSortTypeEnum

type ListBranchesRequestSortTypeEnum struct {
	ASC  ListBranchesRequestSortType
	DESC ListBranchesRequestSortType
}

func GetListBranchesRequestSortTypeEnum

func GetListBranchesRequestSortTypeEnum() ListBranchesRequestSortTypeEnum

type ListBranchesResponse

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

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

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

type ListTestCaseHistoriesRequestBody

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

type ListTestCaseHistoriesResponse

type ListTestCaseHistoriesResponse struct {

	// 起始记录数 大于 实际总条数时, 值为0, 分页请求才有此值
	Total *int32 `json:"total,omitempty"`

	// 实际的数据类型:单个对象,集合 或 NULL
	Values         *[]ExternalTestCaseHistoryVo `json:"values,omitempty"`
	HttpStatusCode int                          `json:"-"`
}

ListTestCaseHistoriesResponse Response Object

func (ListTestCaseHistoriesResponse) String

type ListTestCasesRequest

type ListTestCasesRequest struct {

	// 项目ID,固定长度32位字符(字母和数字)。
	ProjectId string `json:"project_id"`

	Body *ListTestCasesRequestBody `json:"body,omitempty"`
}

ListTestCasesRequest Request Object

func (ListTestCasesRequest) String

func (o ListTestCasesRequest) String() string

type ListTestCasesRequestBody

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

func (o ListTestCasesRequestBody) String() string

type ListTestCasesResponse

type ListTestCasesResponse struct {

	// 用例详情列表
	Values *[]ExternalTestCaseVo `json:"values,omitempty"`

	// 用例总数
	Total          *int32 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListTestCasesResponse Response Object

func (ListTestCasesResponse) String

func (o ListTestCasesResponse) String() string

type NameAndId

type NameAndId struct {

	// 对象编号
	Id *string `json:"id,omitempty"`

	// 对象名称
	Name *string `json:"name,omitempty"`
}

NameAndId 对象编号与名称

func (NameAndId) String

func (o NameAndId) String() string

type NameAndIdVo

type NameAndIdVo struct {

	// ID
	Id *string `json:"id,omitempty"`

	// 名称
	Name *string `json:"name,omitempty"`
}

NameAndIdVo 服务类型信息

func (NameAndIdVo) String

func (o NameAndIdVo) 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 计划周期信息

func (PlanCycle) String

func (o PlanCycle) String() string

type ReportChartDataVo

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

func (o ReportChartDataVo) String() string

type ReportDimVo

type ReportDimVo struct {

	// id
	Id *string `json:"id,omitempty"`

	// 名称
	Name *string `json:"name,omitempty"`

	// 值
	Value *int32 `json:"value,omitempty"`
}

ReportDimVo 对比维度数据

func (ReportDimVo) String

func (o ReportDimVo) String() string

type ReportFilter

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

func (o ReportFilter) String() string

type ResourceChangeExternalVo

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

func (o ResourceChangeExternalVo) String() string

type ResultValueCustomReportListVo

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

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

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

type ShowApiTestcaseHistoriesResponse

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

type ShowIssuesByPlanIdRequest

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

func (o ShowIssuesByPlanIdRequest) String() string

type ShowIssuesByPlanIdResponse

type ShowIssuesByPlanIdResponse struct {

	// 项目下某个测试计划关联的需求列表的返回结构
	Body           *[]TestPlanIssueDetail `json:"body,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

ShowIssuesByPlanIdResponse Response Object

func (ShowIssuesByPlanIdResponse) String

type ShowPlanJournalsRequest

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

func (o ShowPlanJournalsRequest) String() string

type ShowPlanJournalsResponse

type ShowPlanJournalsResponse struct {

	// 项目下查询测试计划操作历史返回结构
	Body           *[]TestPlanJournalList `json:"body,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

ShowPlanJournalsResponse Response Object

func (ShowPlanJournalsResponse) String

func (o ShowPlanJournalsResponse) String() string

type ShowPlanListRequest

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

func (o ShowPlanListRequest) String() string

type ShowPlanListResponse

type ShowPlanListResponse struct {

	// 项目下查询测试计划列表返回结构
	Body           *[]TestPlanDetail `json:"body,omitempty"`
	HttpStatusCode int               `json:"-"`
}

ShowPlanListResponse Response Object

func (ShowPlanListResponse) String

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 ShowRegisterServiceRequest

type ShowRegisterServiceRequest struct {
}

ShowRegisterServiceRequest Request Object

func (ShowRegisterServiceRequest) String

type ShowRegisterServiceResponse

type ShowRegisterServiceResponse struct {

	// 注册服务信息
	Services       *[]ServicesInfo `json:"services,omitempty"`
	HttpStatusCode int             `json:"-"`
}

ShowRegisterServiceResponse Response Object

func (ShowRegisterServiceResponse) String

type ShowReportRequest

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

func (o ShowReportRequest) String() string

type ShowReportResponse

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

func (o ShowReportResponse) 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

type ShowTestCaseDetailV2Request

type ShowTestCaseDetailV2Request struct {

	// 项目唯一标识,固定长度32位字符
	ProjectId string `json:"project_id"`

	// 用例编号,长度为[3-128]位字符
	TestcaseNumber string `json:"testcase_number"`
}

ShowTestCaseDetailV2Request Request Object

func (ShowTestCaseDetailV2Request) 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

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

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

func (o TestPlanDetail) String() string

type TestPlanDetailCreator

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

func (o TestPlanDetailCreator) String() string

type TestPlanDetailDesignStage

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

func (o TestPlanDetailDesignStage) String() string

type TestPlanDetailExecuteStage

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

type TestPlanDetailOwner

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

func (o TestPlanDetailOwner) String() string

type TestPlanDetailReportStage

type TestPlanDetailReportStage struct {

	// 用例完成率,按状态统计
	CaseCompleteRate *string `json:"case_complete_rate,omitempty"`
}

TestPlanDetailReportStage 测试计划完成阶段信息

func (TestPlanDetailReportStage) String

func (o TestPlanDetailReportStage) String() string

type TestPlanIssueDetail

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

func (o TestPlanIssueDetail) String() string

type TestPlanJournalDetail

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

func (o TestPlanJournalDetail) String() string

type TestPlanJournalList

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

func (o TestPlanJournalList) String() string

type TestcaseResult

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

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

type UpdateTestCaseResultRequestBody

type UpdateTestCaseResultRequestBody struct {

	// 注册测试类型服务接口返回的服务id
	ServiceId int32 `json:"service_id"`

	// 测试用例状态信息,数组长度小于等于50
	ExecuteList []UpdateTestCaseResultBean `json:"execute_list"`
}

UpdateTestCaseResultRequestBody 更新测试用例状态请求体

func (UpdateTestCaseResultRequestBody) 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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL