zentaoService

package
v0.0.0-...-66d4e42 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommitBug

func CommitBug() (ok bool, msg string)

func CommitCase

func CommitCase(caseId int, title string, stepMap maps.Map, stepTypeMap maps.Map, expectMap maps.Map)

func CommitTestResult

func CommitTestResult(report model.TestReport, testTaskId int)

func CommitZTFTestResult

func CommitZTFTestResult(resultDir string, productId string, taskId string, noNeedConfirm bool)

func GetBugFiledOptions

func GetBugFiledOptions(productId int)

func GetCaseById

func GetCaseById(baseUrl string, caseId string) model.TestCase

func GetCaseContent

func GetCaseContent(stepObj model.TestStep, seq string, independentFile bool, isChild bool) []string

func GetCaseIdsBySuite

func GetCaseIdsBySuite(suiteId string, idMap *map[int]string)

func GetCaseIdsByTask

func GetCaseIdsByTask(taskId string, idMap *map[int]string)

func GetConfig

func GetConfig(baseUrl string) bool

func GetFirstNoEmptyVal

func GetFirstNoEmptyVal(options []model.Option) string

func GetIdByName

func GetIdByName(name string, options []model.Option) string

func GetNameById

func GetNameById(id string, options []model.Option) string

func IsMultiLine

func IsMultiLine(step model.TestStep) bool

func ListCaseByModule

func ListCaseByModule(baseUrl string, productId string, moduleId string) []model.TestCase

func ListCaseByProduct

func ListCaseByProduct(baseUrl string, productId string) []model.TestCase

func ListCaseBySuite

func ListCaseBySuite(baseUrl string, suiteId string) []model.TestCase

func ListCaseByTask

func ListCaseByTask(baseUrl string, taskId string) []model.TestCase

func LoadTestCases

func LoadTestCases(productIdStr, moduleIdStr, suiteIdStr, taskIdStr string) (testcases []model.TestCase, loginFail bool)

func Login

func Login(baseUrl string, account string, password string) bool

func PrepareBug

func PrepareBug(resultDir string, caseIdStr string) (model.Bug, string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL