model

package
v0.0.57 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssignedUserInfo

type AssignedUserInfo struct {
	Id *string `json:"id,omitempty"`

	Name *string `json:"name,omitempty"`
}

func (AssignedUserInfo) String

func (o AssignedUserInfo) String() string

type BatchDeleteTestCaseRequest

type BatchDeleteTestCaseRequest struct {
	Body *BatchDeleteTestCaseRequestBody `json:"body,omitempty"`
}

Request Object

func (BatchDeleteTestCaseRequest) String

type BatchDeleteTestCaseRequestBody

type BatchDeleteTestCaseRequestBody struct {
	ServiceId int32 `json:"service_id"`

	TestcaseIdList []string `json:"testcase_id_list"`
}

批量删除测试用例请求体

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:"-"`
}

Response Object

func (BatchDeleteTestCaseResponse) String

type CreateApiTestSuiteByRepoFileRequest

type CreateApiTestSuiteByRepoFileRequest struct {
	Body *CreateTestSuitByRepoFileInfo `json:"body,omitempty"`
}

Request Object

func (CreateApiTestSuiteByRepoFileRequest) String

type CreateApiTestSuiteByRepoFileResponse

type CreateApiTestSuiteByRepoFileResponse struct {
	TestsuiteId *string `json:"testsuite_id,omitempty"`

	TestcaseIds    *[]string `json:"testcase_ids,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (CreateApiTestSuiteByRepoFileResponse) 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"`

	AssignedId *string `json:"assigned_id,omitempty"`

	ServiceIdList []int32 `json:"service_id_list"`

	PlanCycle *PlanCycle `json:"plan_cycle"`
}

创建计划请求体

func (CreatePlanRequestBody) String

func (o CreatePlanRequestBody) String() string

type CreatePlanResponse

type CreatePlanResponse struct {
	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"`

	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 {
	PlanId string `json:"plan_id"`

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

Request Object

func (CreateTestCaseInPlanRequest) String

type CreateTestCaseInPlanRequestBody

type CreateTestCaseInPlanRequestBody struct {
	ServiceId int32 `json:"service_id"`

	TestcaseIdList []string `json:"testcase_id_list"`
}

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

func (CreateTestCaseInPlanRequestBody) String

type CreateTestCaseInPlanResponse

type CreateTestCaseInPlanResponse 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 (CreateTestCaseInPlanResponse) 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 {
	Name string `json:"name"`

	ServiceId int32 `json:"service_id"`

	RankId *string `json:"rank_id,omitempty"`

	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"`

	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"`

	RepositoryId string `json:"repository_id"`

	RepositoryBranch string `json:"repository_branch"`

	FilePath string `json:"file_path"`
}

生成测试套的请求信息

func (CreateTestSuitByRepoFileInfo) 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 {
	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 *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"`

	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 {
	Description *string `json:"description,omitempty"`

	Preparation *string `json:"preparation,omitempty"`

	Steps *[]ExternalServiceCaseStep `json:"steps,omitempty"`

	LabelList *[]string `json:"label_list,omitempty"`

	ModuleId *string `json:"module_id,omitempty"`

	TestVersionId *string `json:"test_version_id,omitempty"`

	FixVersionId *string `json:"fix_version_id,omitempty"`

	AssignedId *string `json:"assigned_id,omitempty"`

	IssueId *string `json:"issue_id,omitempty"`

	StatusId *string `json:"status_id,omitempty"`

	DefectIdList *[]string `json:"defect_id_list,omitempty"`
}

测试用例其他扩展信息

func (ExternalServiceBizCase) String

func (o ExternalServiceBizCase) String() string

type ExternalServiceCaseInfo

type ExternalServiceCaseInfo struct {
	Description *string `json:"description,omitempty"`

	Preparation *string `json:"preparation,omitempty"`

	Steps *[]ExternalServiceCaseStep `json:"steps,omitempty"`

	LabelList *[]string `json:"label_list,omitempty"`

	ModuleId *string `json:"module_id,omitempty"`

	TestVersionId *string `json:"test_version_id,omitempty"`

	FixVersionId *string `json:"fix_version_id,omitempty"`

	AssignedId *string `json:"assigned_id,omitempty"`

	IssueId *string `json:"issue_id,omitempty"`
}

测试用例其他扩展信息

func (ExternalServiceCaseInfo) String

func (o ExternalServiceCaseInfo) String() string

type ExternalServiceCaseStep

type ExternalServiceCaseStep struct {
	ExpectResult *string `json:"expect_result,omitempty"`

	TestStep *string `json:"test_step,omitempty"`
}

测试步骤,数组长度小于10

func (ExternalServiceCaseStep) String

func (o ExternalServiceCaseStep) String() string

type ListEnvironmentsRequest

type ListEnvironmentsRequest struct {
	Offset int64 `json:"offset"`

	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 *int64 `json:"offset,omitempty"`

	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 PlanCycle

type PlanCycle struct {
	StartDate *string `json:"start_date,omitempty"`

	EndDate *string `json:"end_date,omitempty"`
}

计划周期信息

func (PlanCycle) String

func (o PlanCycle) String() string

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 {
	ServiceId int32 `json:"service_id"`

	PlanId *string `json:"plan_id,omitempty"`

	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 {
	ServiceName string `json:"service_name"`

	ServerHost string `json:"server_host"`
}

新测试类型服务信息

func (ServiceRequestBody) String

func (o ServiceRequestBody) String() string

type ServicesInfo

type ServicesInfo struct {
	Id *int32 `json:"id,omitempty"`

	Name *string `json:"name,omitempty"`
}

func (ServicesInfo) String

func (o ServicesInfo) String() string

type ShowPlansRequest

type ShowPlansRequest struct {
	Offset int64 `json:"offset"`

	Limit int64 `json:"limit"`

	Name *string `json:"name,omitempty"`

	CurrentStage *string `json:"current_stage,omitempty"`
}

Request Object

func (ShowPlansRequest) String

func (o ShowPlansRequest) String() string

type ShowPlansResponse

type ShowPlansResponse struct {
	Body           *[]ShowPlansResponseBody `json:"body,omitempty"`
	HttpStatusCode int                      `json:"-"`
}

Response Object

func (ShowPlansResponse) String

func (o ShowPlansResponse) String() string

type ShowPlansResponseBody

type ShowPlansResponseBody struct {
	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"`

	ProjectId *string `json:"project_id,omitempty"`

	CurrentStage *string `json:"current_stage,omitempty"`

	ExpireDay *string `json:"expire_day,omitempty"`

	Owner *ShowPlansResponseOwner `json:"owner,omitempty"`

	DesignStage *ShowPlansResponseDesignStage `json:"design_stage,omitempty"`

	ExecuteStage *ShowPlansResponseExecuteStage `json:"execute_stage,omitempty"`

	ReportStage *ShowPlansResponseReportStage `json:"report_stage,omitempty"`
}

func (ShowPlansResponseBody) String

func (o ShowPlansResponseBody) String() string

type ShowPlansResponseDesignStage

type ShowPlansResponseDesignStage struct {
	CaseCount *int32 `json:"case_count,omitempty"`

	IssueCount *int32 `json:"issue_count,omitempty"`

	IssueCoveredCount *string `json:"issue_covered_count,omitempty"`
}

测试计划设计阶段信息

func (ShowPlansResponseDesignStage) String

type ShowPlansResponseExecuteStage

type ShowPlansResponseExecuteStage 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 (ShowPlansResponseExecuteStage) String

type ShowPlansResponseOwner

type ShowPlansResponseOwner struct {
	Id *string `json:"id,omitempty"`

	Name *string `json:"name,omitempty"`
}

测试计划创建者信息

func (ShowPlansResponseOwner) String

func (o ShowPlansResponseOwner) String() string

type ShowPlansResponseReportStage

type ShowPlansResponseReportStage struct {
	CaseCompleteRate *string `json:"case_complete_rate,omitempty"`
}

测试计划完成阶段信息

func (ShowPlansResponseReportStage) String

type ShowRegisterServiceRequest

type ShowRegisterServiceRequest struct {
}

Request Object

func (ShowRegisterServiceRequest) String

type ShowRegisterServiceResponse

type ShowRegisterServiceResponse struct {
	Services       *[]ServicesInfo `json:"services,omitempty"`
	HttpStatusCode int             `json:"-"`
}

Response Object

func (ShowRegisterServiceResponse) String

type ShowTestCaseDetailRequest

type ShowTestCaseDetailRequest struct {
	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"`

	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

type ShowTestCaseDetailV2Request

type ShowTestCaseDetailV2Request struct {
	TestcaseNumber *string `json:"testcase_number,omitempty"`

	TestcaseId *string `json:"testcase_id,omitempty"`
}

Request Object

func (ShowTestCaseDetailV2Request) String

type ShowTestCaseDetailV2Response

type ShowTestCaseDetailV2Response struct {
	TestcaseId *string `json:"testcase_id,omitempty"`

	ProjectId *string `json:"project_id,omitempty"`

	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

type TestCaseExecuteBean

type TestCaseExecuteBean struct {
	TestcaseId string `json:"testcase_id"`

	ExecuteId string `json:"execute_id"`

	ResultId string `json:"result_id"`

	StartTime int64 `json:"start_time"`
}

测试用例执行信息,数组长度小于等于50

func (TestCaseExecuteBean) String

func (o TestCaseExecuteBean) 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"`

	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 {
	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 {
	Name string `json:"name"`

	ServiceId int32 `json:"service_id"`

	RankId *string `json:"rank_id,omitempty"`

	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"`

	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 {
	TestcaseId string `json:"testcase_id"`

	ExecuteId string `json:"execute_id"`

	ResultId string `json:"result_id"`

	EndTime int64 `json:"end_time"`

	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

type UpdateTestCaseResultRequestBody

type UpdateTestCaseResultRequestBody struct {
	ServiceId int32 `json:"service_id"`

	ExecuteList []UpdateTestCaseResultBean `json:"execute_list"`
}

更新测试用例状态请求体

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:"-"`
}

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