Documentation ¶
Index ¶
- func AddDir(pth string, moduleId int, moduleName string, parent *serverDomain.TestAsset) (dirNode *serverDomain.TestAsset)
- func AddScript(moduleId, caseId int, pth string, caseNameInZentao, displayBy string, ...)
- func CheckFileContentIsScript(content string) bool
- func CheckFileIsScript(path string) bool
- func Extract(scriptPaths []string) (done bool, err error)
- func GenEmptyScript(name, lang, pth string, productId int)
- func GenSuite(cases []string, targetDir string)
- func GenerateScript(cs commDomain.ZtfCase, langType string, independentFile bool, ...) (scriptPath string, err error)
- func GenerateScripts(cases []commDomain.ZtfCase, langType string, independentFile bool, ...) (pths []string, realPath string, err error)
- func GetAllScriptsInDir(path string, files *[]string) error
- func GetCaseByDirAndFile(files []string) []string
- func GetCaseByListInMap(caseIds []int, mp map[int]string) (cases []string)
- func GetCaseIdsInSuiteFile(name string, ids *[]int)
- func GetCaseInfo(file string) (pass bool, caseId, productId int, title string, timeout int64)
- func GetDependentExpect(file string) (bool, string)
- func GetExpectMapFromIndependentFile(steps *[]commDomain.ZentaoCaseStep, content string, withEmptyExpect bool)
- func GetFailedCasesDirectlyFromTestResult(resultFile string) []string
- func GetScriptByIdsInDir(dirPth string, idMap *map[int]string) error
- func GetScriptContent(pth string, workspaceId int) (script serverDomain.TestScript, err error)
- func GetScriptType(scripts []string) []string
- func GetStepAndExpectMap(file string) (steps []commDomain.ZentaoCaseStep)
- func GetStepAndExpectMapInOldFormat(checkpoints, file string) (steps []commDomain.ZentaoCaseStep)
- func LoadScriptByWorkspace(workspacePath string) (scriptFiles []string)
- func LoadScriptListInDir(path string, files *[]string, level int) error
- func LoadScriptTreeByDir(workspace model.Workspace, scriptIdsFromZentao map[int]string) (asset serverDomain.TestAsset, err error)
- func ReadCaseId(content string) string
- func ReadCaseInfoInOldFormat(content, lang string) (info, checkpoints string)
- func ReadExpectIndependentArr(content string) [][]string
- func ReadLogArr(content string) (isSkip bool, ret [][]string)
- func ReadLogArrOld(content string) (isSkip bool, ret [][]string)
- func ReadTitleAndStepsInNewFormat(content, lang string) (caseId int, title string, steps []commDomain.ZentaoCaseStep)
- func ReplaceCaseDesc(desc, file string)
- func ScriptToExpectName(file string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDir ¶
func AddDir(pth string, moduleId int, moduleName string, parent *serverDomain.TestAsset) (dirNode *serverDomain.TestAsset)
func CheckFileIsScript ¶
func GenEmptyScript ¶
func GenerateScript ¶
func GenerateScripts ¶
func GetAllScriptsInDir ¶
func GetCaseByDirAndFile ¶
func GetCaseByListInMap ¶
func GetCaseIdsInSuiteFile ¶
func GetCaseInfo ¶
func GetDependentExpect ¶
func GetExpectMapFromIndependentFile ¶
func GetExpectMapFromIndependentFile(steps *[]commDomain.ZentaoCaseStep, content string, withEmptyExpect bool)
func GetScriptContent ¶
func GetScriptContent(pth string, workspaceId int) (script serverDomain.TestScript, err error)
func GetScriptType ¶
func GetStepAndExpectMap ¶
func GetStepAndExpectMap(file string) (steps []commDomain.ZentaoCaseStep)
func GetStepAndExpectMapInOldFormat ¶
func GetStepAndExpectMapInOldFormat(checkpoints, file string) (steps []commDomain.ZentaoCaseStep)
func LoadScriptByWorkspace ¶
func LoadScriptListInDir ¶
for command only
func LoadScriptTreeByDir ¶
func ReadCaseId ¶
func ReadCaseInfoInOldFormat ¶
func ReadLogArr ¶
func ReadLogArrOld ¶
func ReadTitleAndStepsInNewFormat ¶
func ReadTitleAndStepsInNewFormat(content, lang string) (caseId int, title string, steps []commDomain.ZentaoCaseStep)
func ReplaceCaseDesc ¶
func ReplaceCaseDesc(desc, file string)
func ScriptToExpectName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.