Documentation ¶
Index ¶
- type CaseExecResult
- type ExecCookie
- type ExecIterator
- type ExecLogCheckpoint
- type ExecLogExtractor
- type ExecLogProcessor
- type ExecOutput
- type ExecVariable
- type InterfaceStat
- type MessageExecResult
- type PlanExecResult
- type PlanNormalData
- type Report
- type ReportSimple
- type ScenarioExecResult
- type Variable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaseExecResult ¶
type ExecCookie ¶
type ExecIterator ¶
type ExecIterator struct { ProcessorCategory consts.ProcessorCategory ProcessorType consts.ProcessorType VariableName string `json:"variableName,omitempty"` // loop range Items []interface{} `json:"items"` Data []domain.VarKeyValuePair `json:"data"` DataType consts.DataType `json:"dataType"` // loop condition UntilExpression string `json:"untilExpression"` }
type ExecLogCheckpoint ¶
type ExecLogCheckpoint struct { ID int `json:"id" yaml:"id"` Type consts.CheckpointType `json:"type"` Expression string `json:"expression"` ExtractorVariable string `json:"extractorVariable"` Operator consts.ComparisonOperator `json:"operator"` Value string `json:"value"` ActualResult string `json:"actualResult"` ResultStatus consts.ResultStatus `json:"resultStatus"` InterfaceId uint `json:"interfaceId"` LogId uint `json:"logId"` }
type ExecLogExtractor ¶
type ExecLogExtractor struct { ID int `json:"id" yaml:"id"` Src consts.ExtractorSrc `json:"src"` Type consts.ExtractorType `json:"type"` Key string `json:"key"` Expression string `json:"expression"` Prop string `json:"prop"` BoundaryStart string `json:"boundaryStart"` BoundaryEnd string `json:"boundaryEnd"` BoundaryIndex int `json:"boundaryIndex"` BoundaryIncluded bool `json:"boundaryIncluded"` Variable string `json:"variable"` Result string `json:"result"` InterfaceId uint `json:"interfaceId"` LogId uint `json:"logId"` }
type ExecLogProcessor ¶
type ExecLogProcessor struct { ID int `json:"id" yaml:"id"` Name string `json:"name"` Desc string `json:"desc"` ProgressStatus consts.ProgressStatus `json:"progressStatus"` ResultStatus consts.ResultStatus `json:"resultStatus" gorm:"default:pass"` StartTime *time.Time `json:"startTime"` EndTime *time.Time `json:"endTime"` ParentId uint `json:"parentId"` ReportId uint `json:"reportId"` UseID uint `json:"useId"` // type ProcessorCategory consts.ProcessorCategory `json:"processorCategory" yaml:"processorCategory"` // for interface InterfaceId uint `json:"interfaceId"` ReqContent string `json:"reqContent,omitempty" gorm:"type:mediumtext"` RespContent string `json:"respContent,omitempty" gorm:"type:mediumtext"` HttpRespStatusCode consts.HttpRespCode `json:"httpStatusCode"` HttpRespStatusContent string `json:"httpStatusContent"` InterfaceExtractorsResult []ExecLogExtractor `gorm:"-" json:"interfaceExtractorsResult,omitempty"` InterfaceCheckpointsResult []ExecLogCheckpoint `gorm:"-" json:"interfaceCheckpointsResult,omitempty"` // for processor ProcessorType consts.ProcessorType `json:"processorType" yaml:"processorType"` ProcessorId uint `json:"processorId,omitempty"` Summary string `json:"summary,omitempty"` Output string `json:"output,omitempty"` Logs []*ExecLogProcessor `gorm:"-" json:"logs"` }
type ExecOutput ¶
type ExecOutput struct { // logic if, else Pass bool `json:"pass,omitempty"` // loop - times Times int `json:"times,omitempty"` // loop util Expression string `json:"times,omitempty"` // loop in List string `json:"list,omitempty"` // loop - range Range string `json:"range,omitempty"` RangeStart interface{} `json:"rangeStart,omitempty"` RangeEnd interface{} `json:"rangeEnd,omitempty"` RangeType consts.DataType `json:"rangeType,omitempty"` // loop break BreakFrom uint `json:"breakFrom,omitempty"` // timer SleepTime int `json:"sleepTime"` // data Url string `json:"url"` RepeatTimes int `json:"repeatTimes,omitempty"` IsLoop int `json:"isLoop,omitempty"` IsRand bool `json:"isRand,omitempty"` IsOnce bool `json:"isOnce,omitempty"` VariableName string `json:"variableName,omitempty"` // extractor Src consts.ExtractorSrc `json:"src"` Type consts.ExtractorType `json:"type"` //Expression string `json:"expression"` BoundaryStart string `json:"boundaryStart"` BoundaryEnd string `json:"boundaryEnd"` BoundaryIndex int `json:"boundaryIndex"` BoundaryIncluded bool `json:"boundaryIncluded"` Variable string `json:"variable"` // variable VariableValue interface{} `json:"variableValue"` // common Msg string `json:"msg,omitempty"` }
type ExecVariable ¶
type InterfaceStat ¶
type InterfaceStat struct { InterfaceDurationTotal int64 `json:"interfaceDurationTotal"` // milliseconds InterfaceDurationAverage int64 `json:"interfaceDurationAverage"` InterfaceCount int64 `json:"interfaceCount"` InterfacePass int `json:"interfacePass"` InterfaceFail int `json:"interfaceFail"` InterfaceSkip int `json:"interfaceSkip"` CheckpointPass int `json:"checkpointPass"` CheckpointFail int `json:"checkpointFail"` }
type MessageExecResult ¶
type PlanExecResult ¶
type PlanExecResult struct { ID int `json:"id" yaml:"id"` Name string `json:"name"` Desc string `json:"desc,omitempty"` EnvironmentId int `json:"environmentId"` Scenarios []*ScenarioExecResult `json:"scenarios"` Stat InterfaceStat `json:"stat"` }
type PlanNormalData ¶
type PlanNormalData struct { PlanId uint `json:"planId"` PlanName string `json:"planName"` ExecEnv string `json:"execEnv"` TotalScenarioNum int `json:"totalScenarioNum"` TotalInterfaceNum int `json:"totalInterfaceNum"` TotalAssertionNum int `json:"totalAssertionNum"` PassAssertionNum int `json:"passAssertionNum"` FailAssertionNum int `json:"failAssertionNum"` FailScenarioNum int `json:"failAssertionNum"` PassScenarioNum int `json:"passScenarioNum"` TotalProcessorNum int `json:"totalProcessorNum"` FinishProcessorNum int `json:"finishProcessorNum"` }
type Report ¶
type Report struct { ID int `json:"id" yaml:"id"` Name string `json:"name" yaml:"name"` Desc string `json:"desc" yaml:"desc"` ProgressStatus consts.ProgressStatus `json:"progressStatus" yaml:"progressStatus"` ResultStatus consts.ResultStatus `json:"resultStatus" yaml:"resultStatus"` StartTime *time.Time `json:"startTime"` EndTime *time.Time `json:"endTime"` Duration int64 `json:"duration"` // 毫秒 TotalScenarioNum int `json:"totalScenarioNum"` PassScenarioNum int `json:"passScenarioNum"` FailScenarioNum int `json:"failScenarioNum" yaml:"failScenarioNum"` TotalInterfaceNum int `json:"totalInterfaceNum"` PassInterfaceNum int `json:"passInterfaceNum"` FailInterfaceNum int `json:"failInterfaceNum" yaml:"failInterfaceNum"` TotalRequestNum int `json:"totalRequestNum"` PassRequestNum int `json:"passRequestNum"` FailRequestNum int `json:"failRequestNum"` TotalAssertionNum int `json:"totalAssertionNum"` PassAssertionNum int `json:"passAssertionNum"` FailAssertionNum int `json:"failAssertionNum"` TotalProcessorNum int `json:"totalProcessorNum"` FinishProcessorNum int `json:"finishProcessorNum"` InterfaceStatusMap map[uint]map[consts.ResultStatus]int `gorm:"-"` Payload interface{} `json:"payload"` ScenarioId uint `json:"scenarioId"` ProjectId uint `json:"projectId"` PlanId uint `json:"planId"` PlanName string `json:"planName"` ExecEnv string `json:"execEnv"` Priority string `json:"priority"` Logs []*ExecLogProcessor `gorm:"-" json:"logs"` }
type ReportSimple ¶
type ReportSimple struct { ID int `json:"id" yaml:"id"` Name string `json:"name" yaml:"name"` Desc string `json:"desc" yaml:"desc"` ProgressStatus consts.ProgressStatus `json:"progressStatus" yaml:"progressStatus"` ResultStatus consts.ResultStatus `json:"resultStatus" yaml:"resultStatus"` StartTime *time.Time `json:"startTime"` EndTime *time.Time `json:"endTime"` Duration int64 `json:"duration"` // sec TotalInterfaceNum int `json:"totalInterfaceNum"` PassInterfaceNum int `json:"passInterfaceNum"` FailInterfaceNum int `json:"failInterfaceNum" yaml:"failInterfaceNum"` TotalRequestNum int `json:"totalRequestNum"` PassRequestNum int `json:"passRequestNum"` FailRequestNum int `json:"failRequestNum"` TotalAssertionNum int `json:"totalAssertionNum"` PassAssertionNum int `json:"passAssertionNum"` FailAssertionNum int `json:"failAssertionNum"` InterfaceStatusMap map[uint]map[consts.ResultStatus]int `gorm:"-"` }
type ScenarioExecResult ¶
type ScenarioExecResult struct { ID int `json:"id" yaml:"id"` ScenarioId uint `json:"scenarioId"` ScenarioReportId uint `json:"scenarioReportId"` Name string `json:"name"` Desc string `json:"desc,omitempty"` ProgressStatus consts.ProgressStatus `json:"progressStatus,omitempty"` ResultStatus consts.ResultStatus `json:"resultStatus"` StartTime *time.Time `json:"startTime,omitempty"` EndTime *time.Time `json:"endTime,omitempty"` ParentId int `json:"parentId"` UseID uint `json:"useId,omitempty"` ProcessorCategory consts.ProcessorCategory `json:"processorCategory"` ProcessorType consts.ProcessorType `json:"processorType"` // for interface EndpointInterfaceId uint `json:"endpointInterfaceId,omitempty"` DebugInterfaceId uint `json:"debugInterfaceId,omitempty"` ReqContent string `json:"reqContent,omitempty"` RespContent string `json:"respContent,omitempty"` HttpRespStatusCode consts.HttpRespCode `json:"httpStatusCode,omitempty"` HttpRespStatusContent string `json:"httpStatusContent,omitempty"` PreConditions []domain.InterfaceExecCondition `json:"preConditions"` PostConditions []domain.InterfaceExecCondition `json:"postConditions"` // for processor ProcessorId uint `json:"processorId,omitempty"` ProcessorContent string `json:"processorContent,omitempty"` ProcessorResult string `json:"processorResult,omitempty"` // for loop processor Iterator ExecIterator `json:"iterator,omitempty"` // for loop break processor WillBreak bool `json:"break,omitempty"` Summary string `json:"summary,omitempty"` Children []*ScenarioExecResult `json:"logs,omitempty"` Stat InterfaceStat `json:"stat"` EnvironmentId int `json:"environmentId,omitempty"` LogId uuid.UUID `json:"logId,omitempty"` ParentLogId uuid.UUID `json:"parentLogId,omitempty"` Cost int64 `json:"cost,omitempty"` // milliseconds Detail string `json:"detail,omitempty"` Round string `json:"round,omitempty"` }
Click to show internal directories.
Click to hide internal directories.