Documentation
¶
Index ¶
- Constants
- func CheckIn(productId string, cases []string, config commDomain.WorkspaceConf, ...) (count int, err error)
- func Checkout(settings commDomain.SyncSettings, config commDomain.WorkspaceConf, ...) (pths []string, err error)
- func CommitBug(ztfBug commDomain.ZtfBug, config commDomain.WorkspaceConf) (err error)
- func CommitCase(productId string, caseId int, title string, steps []commDomain.ZentaoCaseStep, ...) (err error)
- func CommitResult(report commDomain.ZtfReport, productId, taskId int, ...) (err error)
- func CommitStatus(req serverDomain.ZentaoJobSubmitReq, config commDomain.WorkspaceConf) (err error)
- func CommitUnitBug(ztfBug *commDomain.ZtfBug, config commDomain.WorkspaceConf) (err error)
- func CreateCase(productId, title string, steps []commDomain.ZentaoCaseStep, ...) (cs commDomain.ZtfCase, err error)
- func FilterCases(report *commDomain.ZtfReport, config commDomain.WorkspaceConf)
- func FixSiteUrl(originalUrl string) (url1, url2 string)
- func FixUrl(url string) (ret string)
- func GenApiUrl(pth string, params map[string]interface{}, baseUrl string) (url string)
- func GenBugStepText(step commDomain.StepLog) string
- func GenPlatItems(arr []interface{}) (ret []domain.NestedItem, err error)
- func GetBugFiledOptions(config commDomain.WorkspaceConf, productId int) (bugFields commDomain.ZentaoBugFields, err error)
- func GetCaseById(config commDomain.WorkspaceConf, caseId int) (cs commDomain.ZtfCase, err error)
- func GetCaseIdsInZentaoModule(productId, moduleId uint, config commDomain.WorkspaceConf) (caseIdMap map[int]string, err error)
- func GetCaseIdsInZentaoSuite(productId uint, suiteId int, config commDomain.WorkspaceConf) (caseIdMap map[int]string, err error)
- func GetCaseIdsInZentaoTask(productId uint, taskId int, config commDomain.WorkspaceConf) (caseIdMap map[int]string, err error)
- func GetCasesByModuleInDir(productId, moduleId int, workspacePath, scriptDir string) (cases []string, err error)
- func GetCasesBySuiteInDir(productId int, suiteId int, workspacePath, scriptDir string) (cases []string, err error)
- func GetCasesByTaskInDir(productId int, taskId int, workspacePath, scriptDir string) (cases []string, err error)
- func GetConfig(baseUrl string) (err error)
- func GetProfile(config commDomain.WorkspaceConf) (profile commDomain.ZentaoUserProfile, err error)
- func GetSiteUrl(srcUrl string) (baseUrl, version string, err error)
- func GetTestCaseDetail(caseId int, config commDomain.WorkspaceConf) (cs commDomain.ZtfCase, err error)
- func JobCommitResult(report interface{}, config commDomain.WorkspaceConf) (err error)
- func ListCaseByModule(baseUrl string, productId, moduleId int) (casesResp commDomain.ZtfRespTestCases, err error)
- func ListCaseByProduct(baseUrl string, productId int) (casesResp commDomain.ZtfRespTestCases, err error)
- func ListCaseBySuite(baseUrl string, suiteId int) (casesResp commDomain.ZtfRespTestCases, err error)
- func ListCaseByTask(baseUrl string, taskId int) (casesResp commDomain.ZtfRespTestCases, err error)
- func ListCaseModule(productId uint, site model.Site) (modules []domain.NestedItem, err error)
- func ListLang() (langs []serverDomain.ZentaoLang, err error)
- func ListProduct(workspacePath string) (products []serverDomain.ZentaoProduct, err error)
- func ListSuite(productId uint, site model.Site) (products []domain.NestedItem, err error)
- func ListTask(productId uint, site model.Site) (products []domain.NestedItem, err error)
- func LoadBugs(Product int, config commDomain.WorkspaceConf) (bugs []commDomain.ZentaoBug, err error)
- func LoadCaseModule(productId uint, config commDomain.WorkspaceConf) (modules []domain.NestedItem, err error)
- func LoadCaseModuleArr(productId uint, config commDomain.WorkspaceConf) (arr []interface{}, err error)
- func LoadSiteProduct(currSite serverDomain.ZentaoSite, currProductId int) (products []serverDomain.ZentaoProduct, currProduct serverDomain.ZentaoProduct, ...)
- func LoadSuite(productId uint, config commDomain.WorkspaceConf) (suites []domain.NestedItem, err error)
- func LoadTask(productId uint, config commDomain.WorkspaceConf) (tasks []domain.NestedItem, err error)
- func LoadTestCaseSimple(productId, moduleId, suiteId, taskId int, config commDomain.WorkspaceConf) (casesResp commDomain.ZtfRespTestCases, err error)
- func LoadTestCasesDetail(productId, moduleId, suiteId, taskId int, config commDomain.WorkspaceConf) (cases []commDomain.ZtfCase, err error)
- func LoadTestCasesDetailByCaseIds(caseIds []int, config commDomain.WorkspaceConf) (cases []commDomain.ZtfCase, err error)
- func LoadTestCasesInModuleTree(workspace model.Workspace, scriptIdsFromZentao map[int]string, productId int, ...) (root serverDomain.TestAsset, err error)
- func Login(config commDomain.WorkspaceConf) (err error)
- func LoginSilently(config commDomain.WorkspaceConf) (err error)
- func PrepareBug(workspacePath, seq string, caseIdStr string, productId int) (bug commDomain.ZtfBug)
- func ZentaoLoginErr(errs ...interface{}) (err error)
- func ZentaoRequestErr(errs ...interface{}) (err error)
Constants ¶
View Source
const (
ApiPath = "api.php/v1/"
)
Variables ¶
This section is empty.
Functions ¶
func CheckIn ¶
func CheckIn(productId string, cases []string, config commDomain.WorkspaceConf, noNeedConfirm, withCode bool) (count int, err error)
func Checkout ¶
func Checkout(settings commDomain.SyncSettings, config commDomain.WorkspaceConf, workspacePath string) ( pths []string, err error)
func CommitBug ¶
func CommitBug(ztfBug commDomain.ZtfBug, config commDomain.WorkspaceConf) (err error)
func CommitCase ¶
func CommitCase(productId string, caseId int, title string, steps []commDomain.ZentaoCaseStep, script serverDomain.TestScript, config commDomain.WorkspaceConf, noNeedConfirm, withCode bool) (err error)
func CommitResult ¶
func CommitResult(report commDomain.ZtfReport, productId, taskId int, config commDomain.WorkspaceConf, wsMsg *websocket.Message) (err error)
func CommitStatus ¶
func CommitStatus(req serverDomain.ZentaoJobSubmitReq, config commDomain.WorkspaceConf) (err error)
func CommitUnitBug ¶
func CommitUnitBug(ztfBug *commDomain.ZtfBug, config commDomain.WorkspaceConf) (err error)
func CreateCase ¶
func CreateCase(productId, title string, steps []commDomain.ZentaoCaseStep, script serverDomain.TestScript, config commDomain.WorkspaceConf) (cs commDomain.ZtfCase, err error)
func FilterCases ¶
func FilterCases(report *commDomain.ZtfReport, config commDomain.WorkspaceConf)
func FixSiteUrl ¶
func GenBugStepText ¶
func GenBugStepText(step commDomain.StepLog) string
func GenPlatItems ¶
func GenPlatItems(arr []interface{}) (ret []domain.NestedItem, err error)
func GetBugFiledOptions ¶
func GetBugFiledOptions(config commDomain.WorkspaceConf, productId int) ( bugFields commDomain.ZentaoBugFields, err error)
func GetCaseById ¶
func GetCaseById(config commDomain.WorkspaceConf, caseId int) (cs commDomain.ZtfCase, err error)
func GetCaseIdsInZentaoModule ¶
func GetCaseIdsInZentaoModule(productId, moduleId uint, config commDomain.WorkspaceConf) ( caseIdMap map[int]string, err error)
func GetCaseIdsInZentaoSuite ¶
func GetCaseIdsInZentaoSuite(productId uint, suiteId int, config commDomain.WorkspaceConf) ( caseIdMap map[int]string, err error)
func GetCaseIdsInZentaoTask ¶
func GetCaseIdsInZentaoTask(productId uint, taskId int, config commDomain.WorkspaceConf) ( caseIdMap map[int]string, err error)
func GetCasesByModuleInDir ¶
func GetCasesBySuiteInDir ¶
func GetCasesByTaskInDir ¶
func GetProfile ¶
func GetProfile(config commDomain.WorkspaceConf) (profile commDomain.ZentaoUserProfile, err error)
func GetSiteUrl ¶
func GetTestCaseDetail ¶
func GetTestCaseDetail(caseId int, config commDomain.WorkspaceConf) (cs commDomain.ZtfCase, err error)
func JobCommitResult ¶
func JobCommitResult(report interface{}, config commDomain.WorkspaceConf) (err error)
func ListCaseByModule ¶
func ListCaseByModule(baseUrl string, productId, moduleId int) (casesResp commDomain.ZtfRespTestCases, err error)
func ListCaseByProduct ¶
func ListCaseByProduct(baseUrl string, productId int) (casesResp commDomain.ZtfRespTestCases, err error)
func ListCaseBySuite ¶
func ListCaseBySuite(baseUrl string, suiteId int) (casesResp commDomain.ZtfRespTestCases, err error)
func ListCaseByTask ¶
func ListCaseByTask(baseUrl string, taskId int) (casesResp commDomain.ZtfRespTestCases, err error)
func ListCaseModule ¶
func ListLang ¶
func ListLang() (langs []serverDomain.ZentaoLang, err error)
func ListProduct ¶
func ListProduct(workspacePath string) (products []serverDomain.ZentaoProduct, err error)
func LoadBugs ¶
func LoadBugs(Product int, config commDomain.WorkspaceConf) (bugs []commDomain.ZentaoBug, err error)
func LoadCaseModule ¶
func LoadCaseModule(productId uint, config commDomain.WorkspaceConf) (modules []domain.NestedItem, err error)
func LoadCaseModuleArr ¶
func LoadCaseModuleArr(productId uint, config commDomain.WorkspaceConf) (arr []interface{}, err error)
func LoadSiteProduct ¶
func LoadSiteProduct(currSite serverDomain.ZentaoSite, currProductId int) ( products []serverDomain.ZentaoProduct, currProduct serverDomain.ZentaoProduct, err error)
func LoadSuite ¶
func LoadSuite(productId uint, config commDomain.WorkspaceConf) (suites []domain.NestedItem, err error)
func LoadTask ¶
func LoadTask(productId uint, config commDomain.WorkspaceConf) (tasks []domain.NestedItem, err error)
func LoadTestCaseSimple ¶
func LoadTestCaseSimple(productId, moduleId, suiteId, taskId int, config commDomain.WorkspaceConf) (casesResp commDomain.ZtfRespTestCases, err error)
func LoadTestCasesDetail ¶
func LoadTestCasesDetail(productId, moduleId, suiteId, taskId int, config commDomain.WorkspaceConf) (cases []commDomain.ZtfCase, err error)
func LoadTestCasesDetailByCaseIds ¶
func LoadTestCasesDetailByCaseIds(caseIds []int, config commDomain.WorkspaceConf) (cases []commDomain.ZtfCase, err error)
func LoadTestCasesInModuleTree ¶
func LoadTestCasesInModuleTree(workspace model.Workspace, scriptIdsFromZentao map[int]string, productId int, suiteId, taskId int, config commDomain.WorkspaceConf) (root serverDomain.TestAsset, err error)
func Login ¶
func Login(config commDomain.WorkspaceConf) (err error)
func LoginSilently ¶
func LoginSilently(config commDomain.WorkspaceConf) (err error)
func PrepareBug ¶
func PrepareBug(workspacePath, seq string, caseIdStr string, productId int) (bug commDomain.ZtfBug)
func ZentaoLoginErr ¶
func ZentaoLoginErr(errs ...interface{}) (err error)
func ZentaoRequestErr ¶
func ZentaoRequestErr(errs ...interface{}) (err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.