Documentation ¶
Index ¶
- type Option
- func WithAutoTest(autotest *autotest.Service) Option
- func WithBundle(bdl *bundle.Bundle) Option
- func WithDBClient(db *dao.DBClient) Option
- func WithIssue(issueSvc *issue.Issue) Option
- func WithIssueState(issueStateSvc *issuestate.IssueState) Option
- func WithTestCase(testCaseSvc *testcase.Service) Option
- func WithTestSet(testSetSvc *testset.Service) Option
- type TestPlan
- func (t *TestPlan) AddTestPlanCaseRelIssueRelations(req apistructs.TestPlanCaseRelIssueRelationAddRequest) error
- func (t *TestPlan) BatchConvertMembers(dbMems []dao2.TestPlanMember) []apistructs.TestPlanMember
- func (t *TestPlan) BatchUpdateTestPlanCaseRels(req apistructs.TestPlanCaseRelBatchUpdateRequest) error
- func (t *TestPlan) Convert(testPlan *dao.TestPlan, relsCount apistructs.TestPlanRelsCount, ...) apistructs.TestPlan
- func (t *TestPlan) ConvertMember(dbMem dao2.TestPlanMember) apistructs.TestPlanMember
- func (t *TestPlan) ConvertRel(dbRel *dao.TestPlanCaseRel, tc *apistructs.TestCase) *apistructs.TestPlanCaseRel
- func (t *TestPlan) Create(req apistructs.TestPlanCreateRequest) (uint64, error)
- func (t *TestPlan) CreateCaseRelations(req apistructs.TestPlanCaseRelCreateRequest) (*apistructs.TestPlanCaseRelCreateResult, error)
- func (t *TestPlan) Delete(identityInfo apistructs.IdentityInfo, testPlanID uint64) error
- func (t *TestPlan) ExecuteAPITest(req apistructs.TestPlanAPITestExecuteRequest) (uint64, error)
- func (t *TestPlan) Export(w io.Writer, req apistructs.TestPlanCaseRelExportRequest) error
- func (t *TestPlan) GenerateReport(testPlanID uint64) (*apistructs.TestPlanReport, error)
- func (t *TestPlan) Get(testPlanID uint64) (*apistructs.TestPlan, error)
- func (t *TestPlan) GetRel(relID uint64) (*apistructs.TestPlanCaseRel, error)
- func (t *TestPlan) InternalRemoveTestPlanCaseRelIssueRelationsByIssueID(issueID uint64) error
- func (t *TestPlan) ListTestPlanCaseRels(req apistructs.TestPlanCaseRelListRequest) (rels []apistructs.TestPlanCaseRel, err error)
- func (t *TestPlan) ListTestSet(req apistructs.TestPlanTestSetsListRequest) ([]apistructs.TestSet, error)
- func (t *TestPlan) Paging(req apistructs.TestPlanPagingRequest) (*apistructs.TestPlanPagingResponseData, error)
- func (t *TestPlan) PagingTestPlanCaseRels(req apistructs.TestPlanCaseRelPagingRequest) (*apistructs.TestPlanCasePagingResponseData, error)
- func (t *TestPlan) RemoveTestPlanCaseRelIssueRelations(req apistructs.TestPlanCaseRelIssueRelationRemoveRequest) error
- func (t *TestPlan) Update(req apistructs.TestPlanUpdateRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*TestPlan)
Option
func WithAutoTest ¶
func WithIssueState ¶
func WithIssueState(issueStateSvc *issuestate.IssueState) Option
func WithTestCase ¶
WithTestCase Set testCaseSvc service
func WithTestSet ¶
WithTestSet Set testSet service
type TestPlan ¶
type TestPlan struct {
// contains filtered or unexported fields
}
TestPlan
func (*TestPlan) AddTestPlanCaseRelIssueRelations ¶
func (t *TestPlan) AddTestPlanCaseRelIssueRelations(req apistructs.TestPlanCaseRelIssueRelationAddRequest) error
AddTestPlanCaseRelIssueRelations 新增测试计划用例与事件缺陷的关联
func (*TestPlan) BatchConvertMembers ¶
func (t *TestPlan) BatchConvertMembers(dbMems []dao2.TestPlanMember) []apistructs.TestPlanMember
func (*TestPlan) BatchUpdateTestPlanCaseRels ¶
func (t *TestPlan) BatchUpdateTestPlanCaseRels(req apistructs.TestPlanCaseRelBatchUpdateRequest) error
BatchUpdateTestPlanCaseRels 批量更新测试计划测试用例关系
func (*TestPlan) Convert ¶
func (t *TestPlan) Convert(testPlan *dao.TestPlan, relsCount apistructs.TestPlanRelsCount, members ...dao.TestPlanMember) apistructs.TestPlan
Convert
func (*TestPlan) ConvertMember ¶
func (t *TestPlan) ConvertMember(dbMem dao2.TestPlanMember) apistructs.TestPlanMember
func (*TestPlan) ConvertRel ¶
func (t *TestPlan) ConvertRel(dbRel *dao.TestPlanCaseRel, tc *apistructs.TestCase) *apistructs.TestPlanCaseRel
ConvertRel
func (*TestPlan) Create ¶
func (t *TestPlan) Create(req apistructs.TestPlanCreateRequest) (uint64, error)
Create 创建测试计划
func (*TestPlan) CreateCaseRelations ¶
func (t *TestPlan) CreateCaseRelations(req apistructs.TestPlanCaseRelCreateRequest) (*apistructs.TestPlanCaseRelCreateResult, error)
func (*TestPlan) Delete ¶
func (t *TestPlan) Delete(identityInfo apistructs.IdentityInfo, testPlanID uint64) error
Delete
func (*TestPlan) ExecuteAPITest ¶
func (t *TestPlan) ExecuteAPITest(req apistructs.TestPlanAPITestExecuteRequest) (uint64, error)
ExecuteAPITest 执行接口测试
func (*TestPlan) Export ¶
func (t *TestPlan) Export(w io.Writer, req apistructs.TestPlanCaseRelExportRequest) error
func (*TestPlan) GenerateReport ¶
func (t *TestPlan) GenerateReport(testPlanID uint64) (*apistructs.TestPlanReport, error)
func (*TestPlan) Get ¶
func (t *TestPlan) Get(testPlanID uint64) (*apistructs.TestPlan, error)
Get 测试计划详情
func (*TestPlan) GetRel ¶
func (t *TestPlan) GetRel(relID uint64) (*apistructs.TestPlanCaseRel, error)
func (*TestPlan) InternalRemoveTestPlanCaseRelIssueRelationsByIssueID ¶
InternalRemoveTestPlanCaseRelIssueRelationsByIssueID 根据 issueID 删除测试计划用例与事件缺陷的关联
func (*TestPlan) ListTestPlanCaseRels ¶
func (t *TestPlan) ListTestPlanCaseRels(req apistructs.TestPlanCaseRelListRequest) (rels []apistructs.TestPlanCaseRel, err error)
func (*TestPlan) ListTestSet ¶
func (t *TestPlan) ListTestSet(req apistructs.TestPlanTestSetsListRequest) ([]apistructs.TestSet, error)
func (*TestPlan) Paging ¶
func (t *TestPlan) Paging(req apistructs.TestPlanPagingRequest) (*apistructs.TestPlanPagingResponseData, error)
List 测试计划分页查询
func (*TestPlan) PagingTestPlanCaseRels ¶
func (t *TestPlan) PagingTestPlanCaseRels(req apistructs.TestPlanCaseRelPagingRequest) (*apistructs.TestPlanCasePagingResponseData, error)
PagingTestPlanCaseRels 分页查询测试计划内测试用例
func (*TestPlan) RemoveTestPlanCaseRelIssueRelations ¶
func (t *TestPlan) RemoveTestPlanCaseRelIssueRelations(req apistructs.TestPlanCaseRelIssueRelationRemoveRequest) error
RemoveTestPlanCaseRelIssueRelations 解除测试计划用例与事件缺陷的关联
func (*TestPlan) Update ¶
func (t *TestPlan) Update(req apistructs.TestPlanUpdateRequest) error
Update 更新测试计划
Click to show internal directories.
Click to hide internal directories.