Documentation ¶
Index ¶
- Constants
- func SceneToPipelineYml(inputs []apistructs.AutoTestSceneInput, ...) (string, error)
- func StepToAction(step apistructs.AutoTestSceneStep, req apistructs.SnippetConfig) (map[pipelineyml.ActionType]*pipelineyml.Action, error)
- func StepToStages(steps []apistructs.AutoTestSceneStep) [][]apistructs.AutoTestSceneStep
- type AutoTestSpaceDB
- func (a *AutoTestSpaceDB) CreateNewSpace() (*apistructs.AutoTestSpace, error)
- func (a *AutoTestSpaceDB) GetSpaceData() *AutoTestSpaceData
- func (a *AutoTestSpaceDB) SetConfigs() error
- func (a *AutoTestSpaceDB) SetSceneSets() error
- func (a *AutoTestSpaceDB) SetSceneSteps() error
- func (a *AutoTestSpaceDB) SetScenes() error
- func (a *AutoTestSpaceDB) SetSingleSceneSet(SetID uint64) error
- func (a *AutoTestSpaceDB) SetSpace() error
- type AutoTestSpaceData
- func (a *AutoTestSpaceData) ConvertSceneSetToExcel(w io.Writer, fileName string) error
- func (a *AutoTestSpaceData) ConvertToExcel(w io.Writer, fileName string) error
- func (a *AutoTestSpaceData) Copy() (*apistructs.AutoTestSpace, error)
- func (a *AutoTestSpaceData) CopyFromSceneSets() error
- func (a *AutoTestSpaceData) CopyInputs() error
- func (a *AutoTestSpaceData) CopyOutputs() error
- func (a *AutoTestSpaceData) CopySceneSets() error
- func (a *AutoTestSpaceData) CopySceneSteps() error
- func (a *AutoTestSpaceData) CopyScenes() error
- func (a *AutoTestSpaceData) CreateNewSpace() error
- type AutoTestSpaceDataCreator
- type AutoTestSpaceDirector
- type AutoTestSpaceExcel
- func (a *AutoTestSpaceExcel) GetSpaceData() *AutoTestSpaceData
- func (a *AutoTestSpaceExcel) SetConfigs() error
- func (a *AutoTestSpaceExcel) SetSceneSets() error
- func (a *AutoTestSpaceExcel) SetSceneSteps() error
- func (a *AutoTestSpaceExcel) SetScenes() error
- func (a *AutoTestSpaceExcel) SetSingleSceneSet(setID uint64) error
- func (a *AutoTestSpaceExcel) SetSpace() error
- type Option
- func WithAutotestSvc(svc *autotest.Service) Option
- func WithBundle(bdl *bundle.Bundle) Option
- func WithDBClient(db *dao.DBClient) Option
- func WithOrg(org org.Interface) Option
- func WithPipelineCms(cms cmspb.CmsServiceServer) Option
- func WithPipelineSvc(svc pipelinepb.PipelineServiceServer) Option
- func WithSceneSet(svc *sceneset.Service) Option
- type Service
- func (svc *Service) AddTestPlanV2Step(req *apistructs.TestPlanV2StepAddRequest) (uint64, error)
- func (svc *Service) AutoTestGetStepOutPut(steps []apistructs.AutoTestSceneStep) (map[string]string, error)
- func (svc *Service) BatchQueryScenePipelineSnippetYaml(configs []apistructs.SnippetConfig) ([]apistructs.BatchSnippetConfigYml, error)
- func (svc *Service) BatchQuerySceneSetPipelineSnippetYaml(configs []apistructs.SnippetConfig) ([]apistructs.BatchSnippetConfigYml, error)
- func (svc *Service) CancelDiceAutotestScene(req apistructs.AutotestCancelSceneRequest) error
- func (svc *Service) CancelDiceAutotestTestPlan(req apistructs.AutotestCancelTestPlansRequest) error
- func (svc *Service) CopyAutotestScene(req apistructs.AutotestSceneCopyRequest, isSpaceCopy bool, ...) (uint64, error)
- func (svc *Service) CopyAutotestSpaceV2(req apistructs.AutoTestSpace, identityInfo apistructs.IdentityInfo) *apistructs.AutoTestSpace
- func (svc *Service) CountAutoTestSceneSteps(planIDs []uint64) (stepCount apistructs.AutoTestSceneStepCount, err error)
- func (svc *Service) CountSceneByPlanIDs(planIDs ...uint64) (count apistructs.AutoTestSceneCount, err error)
- func (svc *Service) CreateAutoTestSceneInput(req apistructs.AutotestSceneRequest) (uint64, error)
- func (svc *Service) CreateAutoTestSceneOutput(req apistructs.AutotestSceneRequest) (uint64, error)
- func (svc *Service) CreateAutoTestSceneStep(req apistructs.AutotestSceneRequest) (uint64, error)
- func (svc *Service) CreateAutotestScene(req apistructs.AutotestSceneRequest) (uint64, error)
- func (svc *Service) CreateSceneSet(req apistructs.SceneSetRequest) (uint64, error)
- func (svc *Service) CreateSpace(req apistructs.AutoTestSpaceCreateRequest) (*apistructs.AutoTestSpace, error)
- func (svc *Service) CreateTestPlanV2(req apistructs.TestPlanV2CreateRequest) (uint64, error)
- func (svc *Service) CutAutoTestSceneStep(now *dao.AutoTestSceneStep) error
- func (svc *Service) CutAutotestScene(sc *dao.AutoTestScene) error
- func (svc *Service) DeleteAutoTestSceneInput(id uint64) (uint64, error)
- func (svc *Service) DeleteAutoTestSceneOutput(id uint64) (uint64, error)
- func (svc *Service) DeleteAutoTestSceneStep(id uint64) error
- func (svc *Service) DeleteAutoTestSpace(req apistructs.AutoTestSpace, identityInfo apistructs.IdentityInfo) (*apistructs.AutoTestSpace, error)
- func (svc *Service) DeleteAutotestScene(id uint64, identityInfo apistructs.IdentityInfo) error
- func (svc *Service) DeleteTestPlanV2(testPlanID uint64, identityInfo apistructs.IdentityInfo) error
- func (svc *Service) DeleteTestPlanV2Step(req *apistructs.TestPlanV2StepDeleteRequest) error
- func (svc *Service) DoSceneToYml(sceneSteps []apistructs.AutoTestSceneStep, ...) (string, error)
- func (svc *Service) ExecHistoryApiAvgCostTime(req apistructs.StatisticsExecHistoryRequest) (list []apistructs.ExecHistoryApiAvgCostTime, err error)
- func (svc *Service) ExecHistoryApiStatusCount(req apistructs.StatisticsExecHistoryRequest) (list []apistructs.ExecHistoryApiStatusCount, err error)
- func (svc *Service) ExecHistorySceneApiStatusCount(req apistructs.StatisticsExecHistoryRequest) (list []apistructs.ExecHistorySceneApiStatusCount, err error)
- func (svc *Service) ExecHistorySceneAvgCostTime(req apistructs.StatisticsExecHistoryRequest) (list []apistructs.ExecHistorySceneAvgCostTime, err error)
- func (svc *Service) ExecHistorySceneStatusCount(req apistructs.StatisticsExecHistoryRequest) (list []apistructs.ExecHistorySceneStatusCount, err error)
- func (svc *Service) ExecuteAutotestSceneSet(req apistructs.AutotestExecuteSceneSetRequest) (*basepb.PipelineDTO, error)
- func (svc *Service) ExecuteDiceAutotestScene(req apistructs.AutotestExecuteSceneRequest) (*basepb.PipelineDTO, error)
- func (svc *Service) ExecuteDiceAutotestSceneStep(req apistructs.AutotestExecuteSceneStepRequest) (*apistructs.AutotestExecuteSceneStepRespData, error)
- func (svc *Service) ExecuteDiceAutotestTestPlan(req apistructs.AutotestExecuteTestPlansRequest) (*basepb.PipelineDTO, error)
- func (svc *Service) Export(req apistructs.AutoTestSpaceExportRequest) (uint64, error)
- func (svc *Service) ExportFile(record *dao.TestFileRecord)
- func (svc *Service) ExportSceneSet(req apistructs.AutoTestSceneSetExportRequest) (uint64, error)
- func (svc *Service) ExportSceneSetFile(record *dao.TestFileRecord)
- func (svc *Service) FindStepPosition(req *apistructs.AutotestSceneRequest) (uint64, error)
- func (svc *Service) GenerateSceneName(name string, setID uint64) (string, error)
- func (svc *Service) GenerateSpaceName(name string, projectID int64) (string, error)
- func (svc *Service) GetAutoTestExecHistoryByPipelineID(pipelineID uint64) (*apistructs.AutoTestExecHistoryDto, error)
- func (svc *Service) GetAutoTestSceneInput(id uint64) (*apistructs.AutoTestSceneInput, error)
- func (svc *Service) GetAutoTestSceneOutput(id uint64) (*apistructs.AutoTestSceneOutput, error)
- func (svc *Service) GetAutoTestSceneStep(stepID uint64) (*dao.AutoTestSceneStep, error)
- func (svc *Service) GetAutotestScene(req apistructs.AutotestSceneRequest) (*apistructs.AutoTestScene, error)
- func (svc *Service) GetAutotestScenesByIDs(sceneIDs []uint64) (map[uint64]apistructs.AutoTestScene, error)
- func (svc *Service) GetSceneSet(setID uint64) (*apistructs.SceneSet, error)
- func (svc *Service) GetSceneSetsBySpaceID(spaceID uint64) ([]apistructs.SceneSet, error)
- func (svc *Service) GetSpace(id uint64) (*apistructs.AutoTestSpace, error)
- func (svc *Service) GetSpaceList(req apistructs.AutoTestSpaceListRequest) (*apistructs.AutoTestSpaceList, error)
- func (svc *Service) GetTestClusterNameBySpaceID(spaceID uint64) (string, error)
- func (svc *Service) GetTestPlanV2(testPlanID uint64, identityInfo apistructs.IdentityInfo) (*apistructs.TestPlanV2, error)
- func (svc *Service) GetTestPlanV2Step(ID uint64) (*apistructs.TestPlanV2Step, error)
- func (svc *Service) Import(req apistructs.AutoTestSpaceImportRequest, r *http.Request) (uint64, error)
- func (svc *Service) ImportFile(record *dao.TestFileRecord)
- func (svc *Service) ImportSceneSet(req apistructs.AutoTestSceneSetImportRequest, r *http.Request) (uint64, error)
- func (svc *Service) ImportSceneSetFile(record *dao.TestFileRecord)
- func (svc *Service) InsertAutoTestSceneStep(req apistructs.AutotestSceneRequest, preID uint64) (uint64, error)
- func (svc *Service) IsExistSceneSetName(spaceID uint64, sceneSetName string) bool
- func (svc *Service) ListAutoTestExecHistory(timeStart, timeEnd string, planIDs ...uint64) (history []apistructs.AutoTestExecHistoryDto, err error)
- func (svc *Service) ListAutoTestSceneInput(sceneID uint64) ([]apistructs.AutoTestSceneInput, error)
- func (svc *Service) ListAutoTestSceneInputByScenes(sceneIDs []uint64) ([]apistructs.AutoTestSceneInput, error)
- func (svc *Service) ListAutoTestSceneOutput(sceneID uint64) ([]apistructs.AutoTestSceneOutput, error)
- func (svc *Service) ListAutoTestSceneOutputByScenes(sceneIDs []uint64) ([]apistructs.AutoTestSceneOutput, error)
- func (svc *Service) ListAutoTestSceneStep(sceneID uint64) ([]apistructs.AutoTestSceneStep, error)
- func (svc *Service) ListAutoTestSceneSteps(sceneIDs []uint64) (sceneSteps []apistructs.AutoTestSceneStep, err error)
- func (svc *Service) ListAutotestScene(req apistructs.AutotestSceneRequest) (uint64, []apistructs.AutoTestScene, error)
- func (svc *Service) ListAutotestSceneByGroupID(setID, groupID uint64) (scenes []apistructs.AutoTestScene, err error)
- func (svc *Service) ListAutotestScenes(setIDs []uint64) (map[uint64][]apistructs.AutoTestScene, error)
- func (svc *Service) ListExecHistorySceneSetByParentPID(parentPID uint64) (history []apistructs.AutoTestExecHistoryDto, err error)
- func (svc *Service) ListSceneBySceneSetID(setIDs ...uint64) (scenes []apistructs.AutoTestScene, total int64, err error)
- func (svc *Service) ListStepByPlanID(planIDs ...uint64) (steps []apistructs.TestPlanV2Step, err error)
- func (svc *Service) ListTestPlanV2ByID(planIDs ...uint64) (steps []apistructs.TestPlanV2, err error)
- func (svc *Service) ListTestPlanV2Step(testPlanID, groupID uint64) ([]*apistructs.TestPlanV2Step, error)
- func (svc *Service) MakeAutotestFileName(origin string) string
- func (svc *Service) MoveAutoTestSceneStep(req apistructs.AutotestSceneRequest) error
- func (svc *Service) MoveAutotestScene(req apistructs.AutotestSceneRequest) (uint64, error)
- func (svc *Service) MoveAutotestSceneV2(req apistructs.AutotestSceneMoveRequest) error
- func (svc *Service) MoveTestPlanV2Step(req *apistructs.TestPlanV2StepMoveRequest) error
- func (svc *Service) PagingTestPlansV2(req *apistructs.TestPlanV2PagingRequest) (*apistructs.TestPlanV2PagingResponseData, error)
- func (svc *Service) QueryScenePipelineSnippetYaml(req apistructs.SnippetConfig) (string, error)
- func (svc *Service) QuerySceneSetPipelineSnippetYaml(req apistructs.SnippetConfig) (string, error)
- func (svc *Service) SceneToYml(scene uint64, req apistructs.SnippetConfig) (string, error)
- func (svc *Service) SpaceStatRetriever(spaceIDs []uint64) (map[uint64]*apistructs.AutoTestSpaceStats, error)
- func (svc *Service) UpdateAutoTestSceneInput(req apistructs.AutotestSceneInputUpdateRequest) (uint64, error)
- func (svc *Service) UpdateAutoTestSceneOutput(req apistructs.AutotestSceneOutputUpdateRequest) (uint64, error)
- func (svc *Service) UpdateAutoTestSceneRefSet(copyRefs []apistructs.AutoTestSceneCopyRef) error
- func (svc *Service) UpdateAutoTestSceneStep(req apistructs.AutotestSceneRequest) (uint64, error)
- func (svc *Service) UpdateAutoTestSpace(req apistructs.AutoTestSpace, UserID string) (*apistructs.AutoTestSpace, error)
- func (svc *Service) UpdateAutotestScene(req apistructs.AutotestSceneSceneUpdateRequest) (uint64, error)
- func (svc *Service) UpdateAutotestSceneUpdateTime(sceneID uint64) error
- func (svc *Service) UpdateAutotestSceneUpdater(sceneID uint64, userID string) error
- func (svc *Service) UpdateSceneSet(setID uint64, req apistructs.SceneSetRequest) (*apistructs.SceneSet, error)
- func (svc *Service) UpdateTestPlanV2(req *apistructs.TestPlanV2UpdateRequest) error
- func (svc *Service) UpdateTestPlanV2Step(req *apistructs.TestPlanV2StepUpdateRequest) error
Constants ¶
const MAX_SIZE int = 200
Variables ¶
This section is empty.
Functions ¶
func SceneToPipelineYml ¶
func SceneToPipelineYml(inputs []apistructs.AutoTestSceneInput, outputs []apistructs.AutoTestSceneOutput, stages [][]apistructs.AutoTestSceneStep, req apistructs.SnippetConfig) (string, error)
func StepToAction ¶
func StepToAction(step apistructs.AutoTestSceneStep, req apistructs.SnippetConfig) (map[pipelineyml.ActionType]*pipelineyml.Action, error)
func StepToStages ¶
func StepToStages(steps []apistructs.AutoTestSceneStep) [][]apistructs.AutoTestSceneStep
Types ¶
type AutoTestSpaceDB ¶
type AutoTestSpaceDB struct {
Data *AutoTestSpaceData
}
func (*AutoTestSpaceDB) CreateNewSpace ¶
func (a *AutoTestSpaceDB) CreateNewSpace() (*apistructs.AutoTestSpace, error)
func (*AutoTestSpaceDB) GetSpaceData ¶
func (a *AutoTestSpaceDB) GetSpaceData() *AutoTestSpaceData
func (*AutoTestSpaceDB) SetConfigs ¶
func (a *AutoTestSpaceDB) SetConfigs() error
func (*AutoTestSpaceDB) SetSceneSets ¶
func (a *AutoTestSpaceDB) SetSceneSets() error
func (*AutoTestSpaceDB) SetSceneSteps ¶
func (a *AutoTestSpaceDB) SetSceneSteps() error
func (*AutoTestSpaceDB) SetScenes ¶
func (a *AutoTestSpaceDB) SetScenes() error
func (*AutoTestSpaceDB) SetSingleSceneSet ¶
func (a *AutoTestSpaceDB) SetSingleSceneSet(SetID uint64) error
func (*AutoTestSpaceDB) SetSpace ¶
func (a *AutoTestSpaceDB) SetSpace() error
type AutoTestSpaceData ¶
type AutoTestSpaceData struct { SpaceID uint64 ProjectID uint64 Locale string IsCopy bool Space *apistructs.AutoTestSpace NewSpace *apistructs.AutoTestSpace SceneSets map[uint64][]apistructs.SceneSet Scenes map[uint64][]apistructs.AutoTestScene Steps map[uint64][]apistructs.AutoTestSceneStep Configs []apistructs.AutoTestGlobalConfig apistructs.IdentityInfo // contains filtered or unexported fields }
func (*AutoTestSpaceData) ConvertSceneSetToExcel ¶
func (a *AutoTestSpaceData) ConvertSceneSetToExcel(w io.Writer, fileName string) error
func (*AutoTestSpaceData) ConvertToExcel ¶
func (a *AutoTestSpaceData) ConvertToExcel(w io.Writer, fileName string) error
ConvertToExcel export space`s data to excel
func (*AutoTestSpaceData) Copy ¶
func (a *AutoTestSpaceData) Copy() (*apistructs.AutoTestSpace, error)
func (*AutoTestSpaceData) CopyFromSceneSets ¶
func (a *AutoTestSpaceData) CopyFromSceneSets() error
func (*AutoTestSpaceData) CopyInputs ¶
func (a *AutoTestSpaceData) CopyInputs() error
func (*AutoTestSpaceData) CopyOutputs ¶
func (a *AutoTestSpaceData) CopyOutputs() error
func (*AutoTestSpaceData) CopySceneSets ¶
func (a *AutoTestSpaceData) CopySceneSets() error
func (*AutoTestSpaceData) CopySceneSteps ¶
func (a *AutoTestSpaceData) CopySceneSteps() error
func (*AutoTestSpaceData) CopyScenes ¶
func (a *AutoTestSpaceData) CopyScenes() error
func (*AutoTestSpaceData) CreateNewSpace ¶
func (a *AutoTestSpaceData) CreateNewSpace() error
type AutoTestSpaceDataCreator ¶
type AutoTestSpaceDataCreator interface { SetSpace() error SetSceneSets() error SetScenes() error SetSceneSteps() error SetConfigs() error SetSingleSceneSet(setID uint64) error GetSpaceData() *AutoTestSpaceData }
AutoTestSpaceDataCreator space data creator need achieve these methods
type AutoTestSpaceDirector ¶
type AutoTestSpaceDirector struct {
Creator AutoTestSpaceDataCreator
}
func (*AutoTestSpaceDirector) Construct ¶
func (a *AutoTestSpaceDirector) Construct() error
Construct define process how to make space data
func (*AutoTestSpaceDirector) ConstructFromSceneSet ¶
func (a *AutoTestSpaceDirector) ConstructFromSceneSet(setID uint64) error
func (*AutoTestSpaceDirector) ConstructSceneSet ¶
func (a *AutoTestSpaceDirector) ConstructSceneSet() error
func (*AutoTestSpaceDirector) New ¶
func (a *AutoTestSpaceDirector) New(m AutoTestSpaceDataCreator)
type AutoTestSpaceExcel ¶
type AutoTestSpaceExcel struct { Data *AutoTestSpaceData // contains filtered or unexported fields }
AutoTestSpaceExcel convert excel data to space datas will achieve AutoTestSpaceDataCreator implement
func (*AutoTestSpaceExcel) GetSpaceData ¶
func (a *AutoTestSpaceExcel) GetSpaceData() *AutoTestSpaceData
func (*AutoTestSpaceExcel) SetConfigs ¶
func (a *AutoTestSpaceExcel) SetConfigs() error
SetConfigs get api configs
func (*AutoTestSpaceExcel) SetSceneSets ¶
func (a *AutoTestSpaceExcel) SetSceneSets() error
SetSceneSets get scene sets data from sheets[1]
func (*AutoTestSpaceExcel) SetSceneSteps ¶
func (a *AutoTestSpaceExcel) SetSceneSteps() error
SetSceneSteps get steps data and judge step`s children
func (*AutoTestSpaceExcel) SetScenes ¶
func (a *AutoTestSpaceExcel) SetScenes() error
SetScenes get scenes, input, output data and insert input, output data to scenes
func (*AutoTestSpaceExcel) SetSingleSceneSet ¶
func (a *AutoTestSpaceExcel) SetSingleSceneSet(setID uint64) error
func (*AutoTestSpaceExcel) SetSpace ¶
func (a *AutoTestSpaceExcel) SetSpace() error
SetSpace get space data from sheets[0]
type Option ¶
type Option func(*Service)
Option autotest 实例对象配置选项
func WithAutotestSvc ¶
func WithBundle ¶
func WithPipelineCms ¶
func WithPipelineCms(cms cmspb.CmsServiceServer) Option
func WithPipelineSvc ¶
func WithPipelineSvc(svc pipelinepb.PipelineServiceServer) Option
func WithSceneSet ¶
type Service ¶
type Service struct { CreateFileRecord func(req apistructs.TestFileRecordRequest) (uint64, error) UpdateFileRecord func(req apistructs.TestFileRecordRequest) error // contains filtered or unexported fields }
Service autotestv2 实例对象封装
func (*Service) AddTestPlanV2Step ¶
func (svc *Service) AddTestPlanV2Step(req *apistructs.TestPlanV2StepAddRequest) (uint64, error)
AddTestPlanV2Step Add a step in the test plan
func (*Service) AutoTestGetStepOutPut ¶
func (svc *Service) AutoTestGetStepOutPut(steps []apistructs.AutoTestSceneStep) (map[string]string, error)
AutoTestGetStepOutPut 获取步骤接口出参
func (*Service) BatchQueryScenePipelineSnippetYaml ¶
func (svc *Service) BatchQueryScenePipelineSnippetYaml(configs []apistructs.SnippetConfig) ([]apistructs.BatchSnippetConfigYml, error)
func (*Service) BatchQuerySceneSetPipelineSnippetYaml ¶
func (svc *Service) BatchQuerySceneSetPipelineSnippetYaml(configs []apistructs.SnippetConfig) ([]apistructs.BatchSnippetConfigYml, error)
func (*Service) CancelDiceAutotestScene ¶
func (svc *Service) CancelDiceAutotestScene(req apistructs.AutotestCancelSceneRequest) error
func (*Service) CancelDiceAutotestTestPlan ¶
func (svc *Service) CancelDiceAutotestTestPlan(req apistructs.AutotestCancelTestPlansRequest) error
func (*Service) CopyAutotestScene ¶
func (svc *Service) CopyAutotestScene(req apistructs.AutotestSceneCopyRequest, isSpaceCopy bool, preSceneIdMap map[uint64]uint64) (uint64, error)
CopyAutotestScene 复制场景
func (*Service) CopyAutotestSpaceV2 ¶
func (svc *Service) CopyAutotestSpaceV2(req apistructs.AutoTestSpace, identityInfo apistructs.IdentityInfo) *apistructs.AutoTestSpace
CopyAutotestSpaceV2 use AutoTestSpaceDirector make space data, then use space data copy self
func (*Service) CountAutoTestSceneSteps ¶
func (svc *Service) CountAutoTestSceneSteps(planIDs []uint64) (stepCount apistructs.AutoTestSceneStepCount, err error)
CountAutoTestSceneSteps .
func (*Service) CountSceneByPlanIDs ¶
func (svc *Service) CountSceneByPlanIDs(planIDs ...uint64) (count apistructs.AutoTestSceneCount, err error)
CountSceneByPlanIDs .
func (*Service) CreateAutoTestSceneInput ¶
func (svc *Service) CreateAutoTestSceneInput(req apistructs.AutotestSceneRequest) (uint64, error)
CreateAutoTestSceneInput 添加场景入参
func (*Service) CreateAutoTestSceneOutput ¶
func (svc *Service) CreateAutoTestSceneOutput(req apistructs.AutotestSceneRequest) (uint64, error)
CreateAutoTestSceneOutput 添加场景入参
func (*Service) CreateAutoTestSceneStep ¶
func (svc *Service) CreateAutoTestSceneStep(req apistructs.AutotestSceneRequest) (uint64, error)
CreateAutoTestSceneStep 添加场景步骤
func (*Service) CreateAutotestScene ¶
func (svc *Service) CreateAutotestScene(req apistructs.AutotestSceneRequest) (uint64, error)
CreateAutotestScene 创建场景
func (*Service) CreateSceneSet ¶
func (svc *Service) CreateSceneSet(req apistructs.SceneSetRequest) (uint64, error)
func (*Service) CreateSpace ¶
func (svc *Service) CreateSpace(req apistructs.AutoTestSpaceCreateRequest) (*apistructs.AutoTestSpace, error)
CreateSpace 创建测试空间
func (*Service) CreateTestPlanV2 ¶
func (svc *Service) CreateTestPlanV2(req apistructs.TestPlanV2CreateRequest) (uint64, error)
CreateTestPlanV2 create test plan
func (*Service) CutAutoTestSceneStep ¶
func (svc *Service) CutAutoTestSceneStep(now *dao.AutoTestSceneStep) error
CutAutoTestSceneStep 切断步骤的联系
func (*Service) CutAutotestScene ¶
func (svc *Service) CutAutotestScene(sc *dao.AutoTestScene) error
CutAutotestScene 移除场景
func (*Service) DeleteAutoTestSceneInput ¶
DeleteAutoTestSceneInput 删除场景入参
func (*Service) DeleteAutoTestSceneOutput ¶
DeleteAutoTestSceneOutput 删除场景入参
func (*Service) DeleteAutoTestSceneStep ¶
DeleteAutoTestSceneStep 删除场景步骤
func (*Service) DeleteAutoTestSpace ¶
func (svc *Service) DeleteAutoTestSpace(req apistructs.AutoTestSpace, identityInfo apistructs.IdentityInfo) (*apistructs.AutoTestSpace, error)
DeleteAutoTestSpace 删除测试空间
func (*Service) DeleteAutotestScene ¶
func (svc *Service) DeleteAutotestScene(id uint64, identityInfo apistructs.IdentityInfo) error
DeleteAutotestScene 删除场景
func (*Service) DeleteTestPlanV2 ¶
func (svc *Service) DeleteTestPlanV2(testPlanID uint64, identityInfo apistructs.IdentityInfo) error
DeleteTestPlanV2 delete test plan
func (*Service) DeleteTestPlanV2Step ¶
func (svc *Service) DeleteTestPlanV2Step(req *apistructs.TestPlanV2StepDeleteRequest) error
DeleteTestPlanV2Step Delete a step in the test plan
func (*Service) DoSceneToYml ¶
func (svc *Service) DoSceneToYml(sceneSteps []apistructs.AutoTestSceneStep, sceneInputs []apistructs.AutoTestSceneInput, sceneOutputs []apistructs.AutoTestSceneOutput, req apistructs.SnippetConfig) (string, error)
func (*Service) ExecHistoryApiAvgCostTime ¶
func (svc *Service) ExecHistoryApiAvgCostTime(req apistructs.StatisticsExecHistoryRequest) (list []apistructs.ExecHistoryApiAvgCostTime, err error)
ExecHistoryApiAvgCostTime .
func (*Service) ExecHistoryApiStatusCount ¶
func (svc *Service) ExecHistoryApiStatusCount(req apistructs.StatisticsExecHistoryRequest) (list []apistructs.ExecHistoryApiStatusCount, err error)
ExecHistoryApiStatusCount .
func (*Service) ExecHistorySceneApiStatusCount ¶
func (svc *Service) ExecHistorySceneApiStatusCount(req apistructs.StatisticsExecHistoryRequest) (list []apistructs.ExecHistorySceneApiStatusCount, err error)
ExecHistorySceneApiStatusCount .
func (*Service) ExecHistorySceneAvgCostTime ¶
func (svc *Service) ExecHistorySceneAvgCostTime(req apistructs.StatisticsExecHistoryRequest) (list []apistructs.ExecHistorySceneAvgCostTime, err error)
ExecHistorySceneAvgCostTime .
func (*Service) ExecHistorySceneStatusCount ¶
func (svc *Service) ExecHistorySceneStatusCount(req apistructs.StatisticsExecHistoryRequest) (list []apistructs.ExecHistorySceneStatusCount, err error)
ExecHistorySceneStatusCount .
func (*Service) ExecuteAutotestSceneSet ¶
func (svc *Service) ExecuteAutotestSceneSet(req apistructs.AutotestExecuteSceneSetRequest) (*basepb.PipelineDTO, error)
func (*Service) ExecuteDiceAutotestScene ¶
func (svc *Service) ExecuteDiceAutotestScene(req apistructs.AutotestExecuteSceneRequest) (*basepb.PipelineDTO, error)
func (*Service) ExecuteDiceAutotestSceneStep ¶
func (svc *Service) ExecuteDiceAutotestSceneStep(req apistructs.AutotestExecuteSceneStepRequest) (*apistructs.AutotestExecuteSceneStepRespData, error)
func (*Service) ExecuteDiceAutotestTestPlan ¶
func (svc *Service) ExecuteDiceAutotestTestPlan(req apistructs.AutotestExecuteTestPlansRequest) (*basepb.PipelineDTO, error)
func (*Service) Export ¶
func (svc *Service) Export(req apistructs.AutoTestSpaceExportRequest) (uint64, error)
Export accept space export request and return uint64 file id, then send file id to channel make export sync
func (*Service) ExportFile ¶
func (svc *Service) ExportFile(record *dao.TestFileRecord)
func (*Service) ExportSceneSet ¶
func (svc *Service) ExportSceneSet(req apistructs.AutoTestSceneSetExportRequest) (uint64, error)
func (*Service) ExportSceneSetFile ¶
func (svc *Service) ExportSceneSetFile(record *dao.TestFileRecord)
func (*Service) FindStepPosition ¶
func (svc *Service) FindStepPosition(req *apistructs.AutotestSceneRequest) (uint64, error)
FindStepPosition 获取步骤位置
func (*Service) GenerateSceneName ¶
GenerateSceneName 生成场景名,追加 (N)
func (*Service) GenerateSpaceName ¶
GenerateSceneName 生成场景名,追加 _N
func (*Service) GetAutoTestExecHistoryByPipelineID ¶
func (svc *Service) GetAutoTestExecHistoryByPipelineID(pipelineID uint64) (*apistructs.AutoTestExecHistoryDto, error)
GetAutoTestExecHistoryByPipelineID .
func (*Service) GetAutoTestSceneInput ¶
func (svc *Service) GetAutoTestSceneInput(id uint64) (*apistructs.AutoTestSceneInput, error)
GetAutoTestSceneInput 获取场景入参
func (*Service) GetAutoTestSceneOutput ¶
func (svc *Service) GetAutoTestSceneOutput(id uint64) (*apistructs.AutoTestSceneOutput, error)
GetAutoTestSceneOutput 获取场景入参
func (*Service) GetAutoTestSceneStep ¶
func (svc *Service) GetAutoTestSceneStep(stepID uint64) (*dao.AutoTestSceneStep, error)
GetAutoTestSceneStep 获取步骤
func (*Service) GetAutotestScene ¶
func (svc *Service) GetAutotestScene(req apistructs.AutotestSceneRequest) (*apistructs.AutoTestScene, error)
GetAutotestScene 获取场景
func (*Service) GetAutotestScenesByIDs ¶
func (svc *Service) GetAutotestScenesByIDs(sceneIDs []uint64) (map[uint64]apistructs.AutoTestScene, error)
func (*Service) GetSceneSet ¶
func (svc *Service) GetSceneSet(setID uint64) (*apistructs.SceneSet, error)
func (*Service) GetSceneSetsBySpaceID ¶
func (svc *Service) GetSceneSetsBySpaceID(spaceID uint64) ([]apistructs.SceneSet, error)
func (*Service) GetSpace ¶
func (svc *Service) GetSpace(id uint64) (*apistructs.AutoTestSpace, error)
GetSpace 返回autoTestSpace详情
func (*Service) GetSpaceList ¶
func (svc *Service) GetSpaceList(req apistructs.AutoTestSpaceListRequest) (*apistructs.AutoTestSpaceList, error)
GetSpaceList 返回autoTestSpace列表
func (*Service) GetTestClusterNameBySpaceID ¶
func (*Service) GetTestPlanV2 ¶
func (svc *Service) GetTestPlanV2(testPlanID uint64, identityInfo apistructs.IdentityInfo) (*apistructs.TestPlanV2, error)
GetTestPlanV2 get testplan detail
func (*Service) GetTestPlanV2Step ¶
func (svc *Service) GetTestPlanV2Step(ID uint64) (*apistructs.TestPlanV2Step, error)
UpdateTestPlanV2Step Update a step in the test plan
func (*Service) Import ¶
func (svc *Service) Import(req apistructs.AutoTestSpaceImportRequest, r *http.Request) (uint64, error)
Import accept space import request and return uint64 file id, then send file id to channel make import sync
func (*Service) ImportFile ¶
func (svc *Service) ImportFile(record *dao.TestFileRecord)
func (*Service) ImportSceneSet ¶
func (svc *Service) ImportSceneSet(req apistructs.AutoTestSceneSetImportRequest, r *http.Request) (uint64, error)
func (*Service) ImportSceneSetFile ¶
func (svc *Service) ImportSceneSetFile(record *dao.TestFileRecord)
func (*Service) InsertAutoTestSceneStep ¶
func (svc *Service) InsertAutoTestSceneStep(req apistructs.AutotestSceneRequest, preID uint64) (uint64, error)
InsertAutoTestSceneStep 插入步骤
func (*Service) IsExistSceneSetName ¶
func (*Service) ListAutoTestExecHistory ¶
func (svc *Service) ListAutoTestExecHistory(timeStart, timeEnd string, planIDs ...uint64) (history []apistructs.AutoTestExecHistoryDto, err error)
ListAutoTestExecHistory .
func (*Service) ListAutoTestSceneInput ¶
func (svc *Service) ListAutoTestSceneInput(sceneID uint64) ([]apistructs.AutoTestSceneInput, error)
ListAutoTestSceneInput 获取场景入参列表
func (*Service) ListAutoTestSceneInputByScenes ¶
func (svc *Service) ListAutoTestSceneInputByScenes(sceneIDs []uint64) ([]apistructs.AutoTestSceneInput, error)
ListAutoTestSceneInputByScenes 批量获取场景入参
func (*Service) ListAutoTestSceneOutput ¶
func (svc *Service) ListAutoTestSceneOutput(sceneID uint64) ([]apistructs.AutoTestSceneOutput, error)
ListAutoTestSceneOutput 获取场景入参列表
func (*Service) ListAutoTestSceneOutputByScenes ¶
func (svc *Service) ListAutoTestSceneOutputByScenes(sceneIDs []uint64) ([]apistructs.AutoTestSceneOutput, error)
ListAutoTestSceneInputByScenes 批量获取场景入参
func (*Service) ListAutoTestSceneStep ¶
func (svc *Service) ListAutoTestSceneStep(sceneID uint64) ([]apistructs.AutoTestSceneStep, error)
ListAutoTestSceneStep 获取场景步骤列表
func (*Service) ListAutoTestSceneSteps ¶
func (svc *Service) ListAutoTestSceneSteps(sceneIDs []uint64) (sceneSteps []apistructs.AutoTestSceneStep, err error)
ListAutoTestSceneSteps .
func (*Service) ListAutotestScene ¶
func (svc *Service) ListAutotestScene(req apistructs.AutotestSceneRequest) (uint64, []apistructs.AutoTestScene, error)
ListAutotestScene 获取场景列表
func (*Service) ListAutotestSceneByGroupID ¶
func (svc *Service) ListAutotestSceneByGroupID(setID, groupID uint64) (scenes []apistructs.AutoTestScene, err error)
ListAutotestSceneByGroupID .
func (*Service) ListAutotestScenes ¶
func (svc *Service) ListAutotestScenes(setIDs []uint64) (map[uint64][]apistructs.AutoTestScene, error)
ListAutotestScenes 批量获取场景列表
func (*Service) ListExecHistorySceneSetByParentPID ¶
func (svc *Service) ListExecHistorySceneSetByParentPID(parentPID uint64) (history []apistructs.AutoTestExecHistoryDto, err error)
ListExecHistorySceneSetByParentPID .
func (*Service) ListSceneBySceneSetID ¶
func (svc *Service) ListSceneBySceneSetID(setIDs ...uint64) (scenes []apistructs.AutoTestScene, total int64, err error)
ListSceneBySceneSetID .
func (*Service) ListStepByPlanID ¶
func (svc *Service) ListStepByPlanID(planIDs ...uint64) (steps []apistructs.TestPlanV2Step, err error)
ListStepByPlanID .
func (*Service) ListTestPlanV2ByID ¶
func (svc *Service) ListTestPlanV2ByID(planIDs ...uint64) (steps []apistructs.TestPlanV2, err error)
ListTestPlanV2ByID .
func (*Service) ListTestPlanV2Step ¶
func (svc *Service) ListTestPlanV2Step(testPlanID, groupID uint64) ([]*apistructs.TestPlanV2Step, error)
ListTestPlanV2Step list testPlan step
func (*Service) MakeAutotestFileName ¶
func (*Service) MoveAutoTestSceneStep ¶
func (svc *Service) MoveAutoTestSceneStep(req apistructs.AutotestSceneRequest) error
MoveAutoTestSceneStep 更新场景步骤顺序
func (*Service) MoveAutotestScene ¶
func (svc *Service) MoveAutotestScene(req apistructs.AutotestSceneRequest) (uint64, error)
MoveAutotestScene 移动场景
func (*Service) MoveAutotestSceneV2 ¶
func (svc *Service) MoveAutotestSceneV2(req apistructs.AutotestSceneMoveRequest) error
MoveAutotestSceneV2 Move scene between scene set, include the group drag
func (*Service) MoveTestPlanV2Step ¶
func (svc *Service) MoveTestPlanV2Step(req *apistructs.TestPlanV2StepMoveRequest) error
MoveTestPlanV2Step move a step in the test plan
func (*Service) PagingTestPlansV2 ¶
func (svc *Service) PagingTestPlansV2(req *apistructs.TestPlanV2PagingRequest) (*apistructs.TestPlanV2PagingResponseData, error)
PagingTestPlansV2 paging query testplan
func (*Service) QueryScenePipelineSnippetYaml ¶
func (svc *Service) QueryScenePipelineSnippetYaml(req apistructs.SnippetConfig) (string, error)
func (*Service) QuerySceneSetPipelineSnippetYaml ¶
func (svc *Service) QuerySceneSetPipelineSnippetYaml(req apistructs.SnippetConfig) (string, error)
func (*Service) SceneToYml ¶
func (svc *Service) SceneToYml(scene uint64, req apistructs.SnippetConfig) (string, error)
func (*Service) SpaceStatRetriever ¶
func (svc *Service) SpaceStatRetriever(spaceIDs []uint64) (map[uint64]*apistructs.AutoTestSpaceStats, error)
func (*Service) UpdateAutoTestSceneInput ¶
func (svc *Service) UpdateAutoTestSceneInput(req apistructs.AutotestSceneInputUpdateRequest) (uint64, error)
UpdateAutoTestSceneInput 更新场景入参
func (*Service) UpdateAutoTestSceneOutput ¶
func (svc *Service) UpdateAutoTestSceneOutput(req apistructs.AutotestSceneOutputUpdateRequest) (uint64, error)
UpdateAutoTestSceneOutput 更新场景出参
func (*Service) UpdateAutoTestSceneRefSet ¶
func (svc *Service) UpdateAutoTestSceneRefSet(copyRefs []apistructs.AutoTestSceneCopyRef) error
copy after update scene ref sceneSet id
func (*Service) UpdateAutoTestSceneStep ¶
func (svc *Service) UpdateAutoTestSceneStep(req apistructs.AutotestSceneRequest) (uint64, error)
UpdateAutoTestSceneStep 更新场景步骤
func (*Service) UpdateAutoTestSpace ¶
func (svc *Service) UpdateAutoTestSpace(req apistructs.AutoTestSpace, UserID string) (*apistructs.AutoTestSpace, error)
UpdateAutoTestSpace 更新测试空间
func (*Service) UpdateAutotestScene ¶
func (svc *Service) UpdateAutotestScene(req apistructs.AutotestSceneSceneUpdateRequest) (uint64, error)
UpdateAutotestScene 更新场景
func (*Service) UpdateAutotestSceneUpdateTime ¶
UpdateAutotestSceneUpdateTime 更新场景更新时间
func (*Service) UpdateAutotestSceneUpdater ¶
UpdateAutotestSceneUpdater 更新场景更新人
func (*Service) UpdateSceneSet ¶
func (svc *Service) UpdateSceneSet(setID uint64, req apistructs.SceneSetRequest) (*apistructs.SceneSet, error)
func (*Service) UpdateTestPlanV2 ¶
func (svc *Service) UpdateTestPlanV2(req *apistructs.TestPlanV2UpdateRequest) error
UpdateTestPlanV2 update testplan
func (*Service) UpdateTestPlanV2Step ¶
func (svc *Service) UpdateTestPlanV2Step(req *apistructs.TestPlanV2StepUpdateRequest) error
UpdateTestPlanV2Step Update a step in the test plan