Documentation ¶
Index ¶
- type AssignedUserInfo
- type AttributeChange
- type BatchDeleteTestCaseRequest
- type BatchDeleteTestCaseRequestBody
- type BatchDeleteTestCaseResponse
- type CreateApiTestSuiteByRepoFileRequest
- type CreateApiTestSuiteByRepoFileResponse
- 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 DeleteServiceRequest
- type DeleteServiceResponse
- type Environment
- type ErrorCaseInfoBean
- type ErrorDetailInfo
- type ExtendAuthorInfo
- type ExtendInfo
- type ExternalServiceBizCase
- type ExternalServiceCaseInfo
- type ExternalServiceCaseStep
- type ListEnvironmentsRequest
- type ListEnvironmentsResponse
- type NameAndId
- type PlanCycle
- type RunTestCaseRequest
- type RunTestCaseRequestBody
- type RunTestCaseResponse
- type ServiceRequestBody
- type ServicesInfo
- type ShowIssuesByPlanIdRequest
- type ShowIssuesByPlanIdResponse
- type ShowPlanJournalsRequest
- type ShowPlanJournalsResponse
- type ShowPlanListRequest
- type ShowPlanListResponse
- type ShowPlansRequest
- type ShowPlansResponse
- type ShowRegisterServiceRequest
- type ShowRegisterServiceResponse
- type ShowTestCaseDetailRequest
- type ShowTestCaseDetailResponse
- type ShowTestCaseDetailV2Request
- type ShowTestCaseDetailV2Response
- type TestCaseExecuteBean
- type TestPlanDetail
- type TestPlanDetailCreator
- type TestPlanDetailDesignStage
- type TestPlanDetailExecuteStage
- type TestPlanDetailOwner
- type TestPlanDetailReportStage
- type TestPlanIssueDetail
- type TestPlanJournalDetail
- type TestPlanJournalList
- 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 AssignedUserInfo ¶
type AssignedUserInfo struct { // id信息 Id *string `json:"id,omitempty"` // 名称信息 Name *string `json:"name,omitempty"` }
func (AssignedUserInfo) String ¶
func (o AssignedUserInfo) 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"` }
对象,包括编号与名称
func (AttributeChange) String ¶ added in v0.0.73
func (o AttributeChange) String() string
type BatchDeleteTestCaseRequest ¶
type BatchDeleteTestCaseRequest struct {
Body *BatchDeleteTestCaseRequestBody `json:"body,omitempty"`
}
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"` }
批量删除测试用例请求体
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:"-"` }
Response Object
func (BatchDeleteTestCaseResponse) String ¶
func (o BatchDeleteTestCaseResponse) String() string
type CreateApiTestSuiteByRepoFileRequest ¶
type CreateApiTestSuiteByRepoFileRequest struct {
Body *CreateTestSuitByRepoFileInfo `json:"body,omitempty"`
}
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:"-"` }
Response Object
func (CreateApiTestSuiteByRepoFileResponse) String ¶
func (o CreateApiTestSuiteByRepoFileResponse) String() string
type CreatePlanRequest ¶
type CreatePlanRequest struct {
Body *CreatePlanRequestBody `json:"body,omitempty"`
}
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"` }
创建计划请求体
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:"-"` }
Response Object
func (CreatePlanResponse) String ¶
func (o CreatePlanResponse) String() string
type CreateServiceRequest ¶
type CreateServiceRequest struct {
Body *ServiceRequestBody `json:"body,omitempty"`
}
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:"-"` }
Response Object
func (CreateServiceResponse) String ¶
func (o CreateServiceResponse) String() string
type CreateTestCaseInPlanRequest ¶
type CreateTestCaseInPlanRequest struct { // 计划唯一标识,长度11-34位字符 PlanId string `json:"plan_id"` Body *CreateTestCaseInPlanRequestBody `json:"body,omitempty"` }
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"` }
计划中批量添加测试用例请求体
func (CreateTestCaseInPlanRequestBody) String ¶
func (o CreateTestCaseInPlanRequestBody) String() string
type CreateTestCaseInPlanResponse ¶
type CreateTestCaseInPlanResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (CreateTestCaseInPlanResponse) String ¶
func (o CreateTestCaseInPlanResponse) String() string
type CreateTestCaseRequest ¶
type CreateTestCaseRequest struct {
Body *CreateTestCaseRequestBody `json:"body,omitempty"`
}
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"` }
创建测试用例请求体
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:"-"` }
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"` }
生成测试套的请求信息
func (CreateTestSuitByRepoFileInfo) String ¶
func (o CreateTestSuitByRepoFileInfo) String() string
type DeleteServiceRequest ¶
type DeleteServiceRequest struct { // 注册服务唯一标识,该值由注册接口返回 ServiceId int32 `json:"service_id"` }
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:"-"` }
Response Object
func (DeleteServiceResponse) String ¶
func (o DeleteServiceResponse) 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 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"` }
用例其他扩展信息
func (ExtendInfo) String ¶
func (o ExtendInfo) 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"` }
测试用例其他扩展信息
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"` }
测试用例其他扩展信息
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"` }
测试步骤,数组长度小于10
func (ExternalServiceCaseStep) String ¶
func (o ExternalServiceCaseStep) String() string
type ListEnvironmentsRequest ¶
type ListEnvironmentsRequest struct { // 起始偏移量,表示从此偏移量开始查询, offset大于等于0 Offset int64 `json:"offset"` // 每页显示的条目数量,最大支持200条 Limit int64 `json:"limit"` }
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:"-"` }
Response Object
func (ListEnvironmentsResponse) String ¶
func (o ListEnvironmentsResponse) String() string
type NameAndId ¶ added in v0.0.71
type NameAndId struct { // 对象编号 Id *string `json:"id,omitempty"` // 对象名称 Name *string `json:"name,omitempty"` }
对象编号与名称
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"` }
计划周期信息
type RunTestCaseRequest ¶
type RunTestCaseRequest struct {
Body *RunTestCaseRequestBody `json:"body,omitempty"`
}
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"` }
执行测试用例请求体
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:"-"` }
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"` }
新测试类型服务信息
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 ShowIssuesByPlanIdRequest ¶ added in v0.0.73
type ShowIssuesByPlanIdRequest struct { // 测试计划id,测试计划的唯一标识,长度11-34位字符 PlanId string `json:"plan_id"` // 起始偏移量,表示从此偏移量开始查询, offset大于等于0 Offset int64 `json:"offset"` // 每页显示的条目数量,最大支持200条 Limit int64 `json:"limit"` }
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:"-"` }
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,测试计划的唯一标识,长度11-34位字符 PlanId string `json:"plan_id"` // 起始偏移量,表示从此偏移量开始查询, offset大于等于0 Offset int64 `json:"offset"` // 每页显示的条目数量,最大支持200条 Limit int64 `json:"limit"` }
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:"-"` }
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 { // 起始偏移量,表示从此偏移量开始查询, 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"` }
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:"-"` }
Response Object
func (ShowPlanListResponse) String ¶ added in v0.0.74
func (o ShowPlanListResponse) String() string
type ShowPlansRequest ¶
type ShowPlansRequest struct { // 模糊查询使用(针对测试计划名称) 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"` }
Request Object
func (ShowPlansRequest) String ¶
func (o ShowPlansRequest) String() string
type ShowPlansResponse ¶
type ShowPlansResponse struct { // 项目下查询测试计划列表返回结构 Body *[]TestPlanDetail `json:"body,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowPlansResponse) String ¶
func (o ShowPlansResponse) String() string
type ShowRegisterServiceRequest ¶
type ShowRegisterServiceRequest struct { }
Request Object
func (ShowRegisterServiceRequest) String ¶
func (o ShowRegisterServiceRequest) String() string
type ShowRegisterServiceResponse ¶
type ShowRegisterServiceResponse struct { // 注册服务信息 Services *[]ServicesInfo `json:"services,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowRegisterServiceResponse) String ¶
func (o ShowRegisterServiceResponse) String() string
type ShowTestCaseDetailRequest ¶
type ShowTestCaseDetailRequest struct { // 测试用例唯一标识,固定长度32位字符 TestcaseId string `json:"testcase_id"` }
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:"-"` }
Response Object
func (ShowTestCaseDetailResponse) String ¶
func (o ShowTestCaseDetailResponse) String() string
type ShowTestCaseDetailV2Request ¶
type ShowTestCaseDetailV2Request struct { // 用例编号,长度为[3-128]位字符 TestcaseNumber string `json:"testcase_number"` }
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:"-"` }
Response Object
func (ShowTestCaseDetailV2Response) String ¶
func (o ShowTestCaseDetailV2Response) 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"` }
测试用例执行信息,数组长度小于等于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 *string `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"` }
测试计划详情
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"` }
测试计划创建者信息
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"` }
测试计划设计阶段信息
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"` }
测试计划执行阶段信息
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"` }
测试计划处理者信息
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"` }
测试计划完成阶段信息
func (TestPlanDetailReportStage) String ¶ added in v0.0.74
func (o TestPlanDetailReportStage) String() string
type TestPlanIssueDetail ¶ added in v0.0.74
type TestPlanIssueDetail struct { // DevCloud项目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"` }
测试计划需求列表详情
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"` }
测试计划操作历史详情
func (TestPlanJournalDetail) String ¶ added in v0.0.74
func (o TestPlanJournalDetail) String() string
type TestPlanJournalList ¶ added in v0.0.74
type TestPlanJournalList struct { // DevCloud项目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"` }
项目下某个测试计划操作历史列表
func (TestPlanJournalList) String ¶ added in v0.0.74
func (o TestPlanJournalList) String() string
type UpdateServiceRequest ¶
type UpdateServiceRequest struct { // 注册服务唯一标识,该值由注册接口返回 ServiceId int32 `json:"service_id"` Body *ServiceRequestBody `json:"body,omitempty"` }
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:"-"` }
Response Object
func (UpdateServiceResponse) String ¶
func (o UpdateServiceResponse) String() string
type UpdateTestCaseRequest ¶
type UpdateTestCaseRequest struct { // 测试用例唯一标识,固定长度32位字符 TestcaseId string `json:"testcase_id"` Body *UpdateTestCaseRequestBody `json:"body,omitempty"` }
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"` }
更新测试用例信息请求体
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:"-"` }
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"` }
测试用例状态信息,数组长度小于等于50
func (UpdateTestCaseResultBean) String ¶
func (o UpdateTestCaseResultBean) String() string
type UpdateTestCaseResultRequest ¶
type UpdateTestCaseResultRequest struct {
Body *UpdateTestCaseResultRequestBody `json:"body,omitempty"`
}
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"` }
更新测试用例状态请求体
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:"-"` }
Response Object
func (UpdateTestCaseResultResponse) String ¶
func (o UpdateTestCaseResultResponse) String() string
Source Files ¶
- model_assigned_user_info.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_create_api_test_suite_by_repo_file_request.go
- model_create_api_test_suite_by_repo_file_response.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_delete_service_request.go
- model_delete_service_response.go
- model_environment.go
- model_error_case_info_bean.go
- model_error_detail_info.go
- model_extend_author_info.go
- model_extend_info.go
- model_external_service_biz_case.go
- model_external_service_case_info.go
- model_external_service_case_step.go
- model_list_environments_request.go
- model_list_environments_response.go
- model_name_and_id.go
- model_plan_cycle.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_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_register_service_request.go
- model_show_register_service_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_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_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