Documentation
¶
Index ¶
- func GetEnvVar(projectID uint, envID uint) (envVars map[string]string, envName string, err error)
- func RunApi(runCaseReq request.RunCaseReq, runType interfacecase.RunType) (reports *interfacecase.ApiReport, err error)
- func RunBoomer(runCaseReq request.RunCaseReq, runType interfacecase.RunType) (reports *interfacecase.ApiReport, err error)
- func RunBoomerDebug(runCaseReq request.RunCaseReq, runType interfacecase.RunType) (reports *interfacecase.ApiReport, err error)
- func RunCase(runCaseReq request.RunCaseReq, runType interfacecase.RunType) (reports *interfacecase.ApiReport, err error)
- func RunStep(runCaseReq request.RunCaseReq, runType interfacecase.RunType) (reports *interfacecase.ApiReport, err error)
- func RunTestCase(tc TestCase) (reports *interfacecase.ApiReport, err error)
- func RunTimerTag(runCaseReq request.RunCaseReq, runType interfacecase.RunType) (reports *interfacecase.ApiReport, err error)
- func RunTimerTask(runCaseReq request.RunCaseReq, runType interfacecase.RunType) (reports *interfacecase.ApiReport, err error)
- func RunTimerTaskBack(taskID uint) func()
- func RunYangfanBoomer(r *RunBoomerStandalone, pReport *interfacecase.PerformanceReport, ...)
- type ApiCaseStep
- type ApisCaseModel
- type B
- type BoomerState
- type CaseList
- type ReportOperation
- type RunBoomerMaster
- type RunBoomerStandalone
- type Stat
- type TaskCaseHrp
- type TestCase
- func NewBoomer(runCaseReq request.RunCaseReq, runType interfacecase.RunType) TestCase
- func NewBoomerDebug(runCaseReq request.RunCaseReq, runType interfacecase.RunType) TestCase
- func NewRunApi(runCaseReq request.RunCaseReq, runType interfacecase.RunType) TestCase
- func NewRunBoomerMaster(id uint) TestCase
- func NewRunCase(runCaseReq request.RunCaseReq, runType interfacecase.RunType) TestCase
- func NewRunStep(runCaseReq request.RunCaseReq, runType interfacecase.RunType) TestCase
- func NewRunTag(runCaseReq request.RunCaseReq, runType interfacecase.RunType) TestCase
- func NewRunTask(runCaseReq request.RunCaseReq, runType interfacecase.RunType) TestCase
- type TestCases
- type TestSteps
- type ToTestCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunApi ¶
func RunApi(runCaseReq request.RunCaseReq, runType interfacecase.RunType) (reports *interfacecase.ApiReport, err error)
func RunBoomer ¶
func RunBoomer(runCaseReq request.RunCaseReq, runType interfacecase.RunType) (reports *interfacecase.ApiReport, err error)
func RunBoomerDebug ¶
func RunBoomerDebug(runCaseReq request.RunCaseReq, runType interfacecase.RunType) (reports *interfacecase.ApiReport, err error)
func RunCase ¶
func RunCase(runCaseReq request.RunCaseReq, runType interfacecase.RunType) (reports *interfacecase.ApiReport, err error)
func RunStep ¶
func RunStep(runCaseReq request.RunCaseReq, runType interfacecase.RunType) (reports *interfacecase.ApiReport, err error)
func RunTestCase ¶
func RunTestCase(tc TestCase) (reports *interfacecase.ApiReport, err error)
func RunTimerTag ¶
func RunTimerTag(runCaseReq request.RunCaseReq, runType interfacecase.RunType) (reports *interfacecase.ApiReport, err error)
func RunTimerTask ¶
func RunTimerTask(runCaseReq request.RunCaseReq, runType interfacecase.RunType) (reports *interfacecase.ApiReport, err error)
func RunTimerTaskBack ¶
func RunTimerTaskBack(taskID uint) func()
func RunYangfanBoomer ¶
func RunYangfanBoomer(r *RunBoomerStandalone, pReport *interfacecase.PerformanceReport, pTask *interfacecase.Performance, runCaseReq request.RunCaseReq)
Types ¶
type ApiCaseStep ¶
type ApiCaseStep struct { ID uint Name string `json:"name" form:"name" gorm:"column:name;comment:;"` FrontCase *bool `json:"front_case" orm:"front_case"` TStep []interfacecase.ApiStep `json:"TStep" form:"TStep" gorm:"many2many:ApiCaseStepRelationship;"` ApiCase []interfacecase.ApiCase `json:"case" form:"case" gorm:"many2many:ApiCaseRelationship;"` ProjectID uint `json:"-"` Config *interfacecase.ApiConfig }
type ApisCaseModel ¶
type B ¶
type B struct { Boom *hrp.HRPBoomer State BoomerState OutputDB *boomer.DbOutput // contains filtered or unexported fields }
type BoomerState ¶
type BoomerState int
var ( BoomerStateRunning BoomerState = 1 BoomerStateStop BoomerState = 2 )
type ReportOperation ¶
type ReportOperation struct {
// contains filtered or unexported fields
}
func (*ReportOperation) CreateReport ¶
func (r *ReportOperation) CreateReport()
func (*ReportOperation) Recover ¶
func (r *ReportOperation) Recover(msg string)
func (*ReportOperation) UpdateReport ¶
func (r *ReportOperation) UpdateReport(reports *interfacecase.ApiReport)
type RunBoomerMaster ¶
type RunBoomerMaster struct { TCM ApisCaseModel ID uint // contains filtered or unexported fields }
func NewBoomerMaster ¶
func NewBoomerMaster(id uint) *RunBoomerMaster
func (*RunBoomerMaster) LoadCase ¶
func (r *RunBoomerMaster) LoadCase() (err error)
func (*RunBoomerMaster) Report ¶
func (r *RunBoomerMaster) Report() (report *interfacecase.ApiReport, err error)
func (*RunBoomerMaster) RunCase ¶
func (r *RunBoomerMaster) RunCase() (err error)
type RunBoomerStandalone ¶
type RunBoomerStandalone struct { CaseID uint // contains filtered or unexported fields }
func (*RunBoomerStandalone) LoadCase ¶
func (r *RunBoomerStandalone) LoadCase() (err error)
func (*RunBoomerStandalone) Report ¶
func (r *RunBoomerStandalone) Report() (report *interfacecase.ApiReport, err error)
func (*RunBoomerStandalone) RunCase ¶
func (r *RunBoomerStandalone) RunCase() (err error)
type TaskCaseHrp ¶
type TaskCaseHrp struct { Name string `json:"name"` Config interfacecase.ApiConfig `json:"Config"` TestSteps []TestSteps `json:"TestSteps"` }
type TestCase ¶
type TestCase interface { LoadCase() (err error) RunCase() (err error) Report() (reports *interfacecase.ApiReport, err error) }
func NewBoomer ¶
func NewBoomer(runCaseReq request.RunCaseReq, runType interfacecase.RunType) TestCase
func NewBoomerDebug ¶
func NewBoomerDebug(runCaseReq request.RunCaseReq, runType interfacecase.RunType) TestCase
func NewRunApi ¶
func NewRunApi(runCaseReq request.RunCaseReq, runType interfacecase.RunType) TestCase
func NewRunBoomerMaster ¶
func NewRunCase ¶
func NewRunCase(runCaseReq request.RunCaseReq, runType interfacecase.RunType) TestCase
func NewRunStep ¶
func NewRunStep(runCaseReq request.RunCaseReq, runType interfacecase.RunType) TestCase
func NewRunTag ¶
func NewRunTag(runCaseReq request.RunCaseReq, runType interfacecase.RunType) TestCase
func NewRunTask ¶
func NewRunTask(runCaseReq request.RunCaseReq, runType interfacecase.RunType) TestCase
type TestCases ¶
type TestCases struct { Name string `json:"name"` Config interfacecase.ApiConfig `json:"Config"` TestSteps []interfacecase.ApiStep `json:"TestSteps"` }
type ToTestCase ¶
type ToTestCase struct { Config interfacecase.ApiConfig TestSteps []interface{} }
Click to show internal directories.
Click to hide internal directories.