consts

package
v0.0.0-...-add256a Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	App = "deeptest"

	ContentType   = "Content-Type"
	ContentLength = "Content-Length"
	Server        = "Server"
	Allow         = "Allow"
	Connection    = "Connection"
	Host          = "Host"

	Authorization = "Authorization"

	UserAgentChrome = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"

	ApiPathServer = "/api/v1"
	ApiPathAgent  = "/api/v1"
	ApiPathMock   = "/mocks"
	WsPath        = ApiPathAgent + "/ws"

	WsDefaultNamespace = "default"
	WsDefaultRoom      = "default_room"
	WsChatEvent        = "OnChat"

	WebCheckInterval         = 60 * 60
	SummaryDataCheckInterval = 60 * 60
	MaxNum                   = 10000

	AgentConfigFileName  = "agent.yaml"
	ServerConfigFileName = "server.yaml"
	CasbinFileName       = "rbac_model.conf" // casbin 规则文件名称

	SupportEmail = "[email protected]"
	Sys          = "DeepTest"
	Url          = "https://deeptest.com/"
	UrlDev       = "http://localhost:8000/"

	ExtractorErr = "extractor_err"
	ContentErr   = "content_err"

	EmailSmtpAddress = "smtp.exmail.qq.com"
	EmailSmtpPort    = 465
	EmailAccount     = "[email protected]"
	EmailPassword    = ""

	HttpRequestTimeout = 60 * time.Second
	DeepestKey         = "com_deeptest_prop_for_selection"
	KEY_BASE_URL       = "_base_url_"

	MaxLoopTimeForInterfaceTest   = 1000
	MaxLoopTimeForPerformanceTest = 1000000

	KEY_MOCKJS = "x-mock-type"

	INVALID_VALUE = "N/A"
)

Variables

View Source
var (
	DirUpload     = "upload"
	HeaderOptions = []string{"Accept", "Accept-Encoding", "Accept-Language", "Connection", "Host", "Referer", "User-Agent", "Cache-Control", "Cookie", "Range"}
)
View Source
var (
	Language = "zh"
	Verbose  = true

	RunFrom   RunType
	ExecFrom  ExecFromType
	IsRelease bool
	ExecDir   string
	WorkDir   string

	Port int

	FolderTmp = "tmp"
	TmpDir    = ""
)

Functions

This section is empty.

Types

type AlternativeCaseCategories

type AlternativeCaseCategories string
const (
	AlternativeCaseRoot     AlternativeCaseCategories = "root"
	AlternativeCaseCategory AlternativeCaseCategories = "category"
	AlternativeCaseDir      AlternativeCaseCategories = "dir"
	AlternativeCaseParam    AlternativeCaseCategories = "param"
	AlternativeCaseObject   AlternativeCaseCategories = "object"
	AlternativeCaseArray    AlternativeCaseCategories = "array"
	AlternativeCaseProp     AlternativeCaseCategories = "prop"
	AlternativeCaseCase     AlternativeCaseCategories = "case"
)

type AlternativeCaseRules

type AlternativeCaseRules string
const (
	AlternativeCaseRulesMin          AlternativeCaseRules = "min"
	AlternativeCaseRulesMax          AlternativeCaseRules = "max"
	AlternativeCaseRulesMaxLength    AlternativeCaseRules = "maxLength"
	AlternativeCaseRulesMinLength    AlternativeCaseRules = "minLength"
	AlternativeCaseRulesMultipleOf   AlternativeCaseRules = "multipleOf"
	AlternativeCaseRulesExclusiveMin AlternativeCaseRules = "exclusiveMin"
	AlternativeCaseRulesExclusiveMax AlternativeCaseRules = "exclusiveMax"

	AlternativeCaseRulesPattern AlternativeCaseRules = "pattern"
)

func (AlternativeCaseRules) String

func (e AlternativeCaseRules) String() string

type AlternativeCaseType

type AlternativeCaseType string
const (
	QueryParam  AlternativeCaseType = "query_param"
	PathParam   AlternativeCaseType = "path_param"
	HeaderParam AlternativeCaseType = "header_param"

	BodyField AlternativeCaseType = "body_field"
	FormField AlternativeCaseType = "form_field"
)

func (AlternativeCaseType) String

func (e AlternativeCaseType) String() string

type AlternativeCaseTypes

type AlternativeCaseTypes string
const (
	AlternativeCaseRequired AlternativeCaseTypes = "required"
	AlternativeCaseTyped    AlternativeCaseTypes = "typed"
	AlternativeCaseEnum     AlternativeCaseTypes = "enum"
	AlternativeCaseFormat   AlternativeCaseTypes = "format"
	AlternativeCaseRule     AlternativeCaseTypes = "rule"
)

type AuditStatus

type AuditStatus uint
const (
	Init    AuditStatus = 0
	Agreed  AuditStatus = 1
	Refused AuditStatus = 2
)

type AuthorType

type AuthorType string
const (
	BasicAuth   AuthorType = "basicAuth"
	BearerToken AuthorType = "bearerToken"
	OAuth2      AuthorType = "oAuth2"
	ApiKey      AuthorType = "apiKey"
)

func (AuthorType) String

func (e AuthorType) String() string

type CaseType

type CaseType string
const (
	CaseDefault     CaseType = "default"
	CaseBenchmark   CaseType = "benchmark"   // for alternative cases design
	CaseAlternative CaseType = "alternative" // saved as independent case
)

type ChangedStatus

type ChangedStatus uint
const (
	NoChanged     ChangedStatus = 1
	Changed       ChangedStatus = 2
	IgnoreChanged ChangedStatus = 3
)

type CheckpointType

type CheckpointType string
const (
	ResponseStatus CheckpointType = "responseStatus"
	ResponseHeader CheckpointType = "responseHeader"
	ResponseBody   CheckpointType = "responseBody"
	Judgement      CheckpointType = "judgement"
	ExtractorVari  CheckpointType = "extractorVari"
	Extractor      CheckpointType = "extractor"

	Script CheckpointType = "script"
)

type ClientAuthenticationWay

type ClientAuthenticationWay string
const (
	SendAsBasicAuthHeader       ClientAuthenticationWay = "sendAsBasicAuthHeader"
	SendClientCredentialsInBody ClientAuthenticationWay = "sendClientCredentialsInBody"
)

func (ClientAuthenticationWay) String

func (e ClientAuthenticationWay) String() string

type ComparisonOperator

type ComparisonOperator string
const (
	Equal              ComparisonOperator = "equal"
	NotEqual           ComparisonOperator = "notEqual"
	GreaterThan        ComparisonOperator = "greaterThan"
	GreaterThanOrEqual ComparisonOperator = "greaterThanOrEqual"
	LessThan           ComparisonOperator = "lessThan"
	LessThanOrEqual    ComparisonOperator = "lessThanOrEqual"

	Contain    ComparisonOperator = "contain"
	NotContain ComparisonOperator = "notContain"

	RegularMatch ComparisonOperator = "regularMatch"

	Exist    ComparisonOperator = "exist"
	NotExist ComparisonOperator = "notExist"
)

func (ComparisonOperator) String

func (e ComparisonOperator) String() string

type ConditionCategory

type ConditionCategory string
const (
	ConditionCategoryResult   ConditionCategory = "result"
	PostCondition             ConditionCategory = "postCondition"
	ConditionCategoryConsole  ConditionCategory = "console"
	ConditionCategoryAssert   ConditionCategory = "assert"
	ConditionCategoryAll      ConditionCategory = "all"
	ConditionCategoryResponse ConditionCategory = "response"
)

type ConditionSrc

type ConditionSrc string
const (
	ConditionSrcPre  ConditionSrc = "pre_condition"
	ConditionSrcPost ConditionSrc = "post_condition"
)

type ConditionType

type ConditionType string
const (
	ConditionTypeExtractor      ConditionType = "extractor"
	ConditionTypeCheckpoint     ConditionType = "checkpoint"
	ConditionTypeScript         ConditionType = "script"
	ConditionTypeDatabase       ConditionType = "databaseOpt"
	ConditionTypeResponseDefine ConditionType = "responseDefine"
)

type CronExecStatus

type CronExecStatus string
const (
	CronExecSuccess CronExecStatus = "success"
	CronExecIng     CronExecStatus = "running"
	CronExecFail    CronExecStatus = "fail"
)

func (CronExecStatus) String

func (e CronExecStatus) String() string

type CronLecangIsExtendOverride

type CronLecangIsExtendOverride string
const (
	CronLecangExtendOverride CronLecangIsExtendOverride = "extend_override"     //继承并重写
	CronLecangExtend         CronLecangIsExtendOverride = "extend_not_override" //继承未重写
	CronLecangNotExtend      CronLecangIsExtendOverride = "not_extend"          //未继承,自身
)

func (CronLecangIsExtendOverride) String

type CronLecangMessageType

type CronLecangMessageType string
const (
	CronLecangMessageTypeInner   CronLecangMessageType = "inner"
	CronLecangMessageTypeOutside CronLecangMessageType = "outside"
)

func (CronLecangMessageType) String

func (e CronLecangMessageType) String() string

type CronLecangOverridable

type CronLecangOverridable string
const (
	CronLecangIsOverridable  CronLecangOverridable = "YES"
	CronLecangNotOverridable CronLecangOverridable = "NO"
)

func (CronLecangOverridable) String

func (e CronLecangOverridable) String() string

type CronSource

type CronSource string
const (
	CronSourceSwagger CronSource = "swagger"
	CronSourceLecang  CronSource = "lecang"
)

func (CronSource) String

func (e CronSource) String() string

type DataFileFormat

type DataFileFormat string
const (
	FormatText    DataFileFormat = "text"
	FormatExcel   DataFileFormat = "excel"
	FormatCsv     DataFileFormat = "csv"
	FormatUnknown DataFileFormat = "unknown"
)

func (DataFileFormat) ToString

func (e DataFileFormat) ToString() string

type DataItSrc

type DataItSrc string
const (
	SrcFileUpload DataItSrc = "fileUpload"
	SrcDatapool   DataItSrc = "datapool"
)

func (DataItSrc) ToString

func (e DataItSrc) ToString() string

type DataItType

type DataItType string
const (
	Text  DataItType = "text"
	Excel DataItType = "excel"
)

func (DataItType) ToString

func (e DataItType) ToString() string

type DataSyncType

type DataSyncType uint
const (
	FullCover DataSyncType = 1 //完全覆盖
	AutoAdd   DataSyncType = 2 //智能合并
	Add       DataSyncType = 3 //新增
)

func (DataSyncType) String

func (e DataSyncType) String() string

type DataType

type DataType string
const (
	Int    DataType = "int"
	Float  DataType = "float"
	String DataType = "string"
)

func (DataType) String

func (e DataType) String() string

type DatabaseType

type DatabaseType string
const (
	DbTypeMySql      DatabaseType = "mysql"
	DbTypeSqlServer  DatabaseType = "sqlserver"
	DbTypePostgreSql DatabaseType = "postgreSql"
	DbTypeOracle     DatabaseType = "oracle"
)

func (DatabaseType) String

func (e DatabaseType) String() string

type ErrorAction

type ErrorAction string
const (
	ActionContinue        ErrorAction = "continue"
	ActionStartNextThread ErrorAction = "start_next_thread"
	ActionLoop            ErrorAction = "loop"
	ActionStopThread      ErrorAction = "stop_thread"
	ActionStopTest        ErrorAction = "stop_test"
	ActionStopTestNow     ErrorAction = "stop_test_now"
)

func (ErrorAction) ToString

func (e ErrorAction) ToString() string

type ExecFromType

type ExecFromType string
const (
	FromCmd    ExecFromType = "cmd"
	FromClient ExecFromType = "client"
)

func (ExecFromType) String

func (e ExecFromType) String() string

type ExecType

type ExecType string
const (
	ExecStop ExecType = "stop"

	ExecScenario ExecType = "execScenario"
	ExecPlan     ExecType = "execPlan"
	ExecCase     ExecType = "execCases"
	ExecMessage  ExecType = "execMessage"
)

func (ExecType) String

func (e ExecType) String() string

type ExpectRequestSelectType

type ExpectRequestSelectType string
const (
	KeyValue ExpectRequestSelectType = "keyValue"
	Xpath    ExpectRequestSelectType = "xPath"
	FullText ExpectRequestSelectType = "fullText"
)

func (ExpectRequestSelectType) String

func (e ExpectRequestSelectType) String() string

type ExtractorResultType

type ExtractorResultType string
const (
	ExtractorResultTypeString ExtractorResultType = "string"
	ExtractorResultTypeNumber ExtractorResultType = "number"
	ExtractorResultTypeBool   ExtractorResultType = "bool"
	ExtractorResultTypeObject ExtractorResultType = "object"
)

type ExtractorScope

type ExtractorScope string
const (
	Private ExtractorScope = "private" // in current interface
	Public  ExtractorScope = "public"  // shared by other interfaces in serve OR scenario
)

type ExtractorSrc

type ExtractorSrc string
const (
	Header ExtractorSrc = "header"
	Body   ExtractorSrc = "body"
	Cookie ExtractorSrc = "cookie"
)

type ExtractorType

type ExtractorType string
const (
	Boundary  ExtractorType = "boundary"
	JSONPath  ExtractorType = "jsonpath"
	JsonQuery ExtractorType = "jsonquery"
	HtmlQuery ExtractorType = "htmlquery"
	XmlQuery  ExtractorType = "xmlquery"
	Regx      ExtractorType = "regx"
)

type FieldFormat

type FieldFormat string
const (
	PlainText FieldFormat = "plainText"
	RichText  FieldFormat = "richText"
)

func (FieldFormat) String

func (e FieldFormat) String() string

type FieldSource

type FieldSource string
const (
	System FieldSource = "requirement"
	Custom FieldSource = "task"
)

func (FieldSource) String

func (e FieldSource) String() string

type FieldType

type FieldType string
const (
	Input    FieldType = "input"
	TextArea FieldType = "textarea"
	Password FieldType = "password"
	Checkbox FieldType = "checkbox"
	Radio    FieldType = "radio"
	File     FieldType = "file"

	Hidden      FieldType = "hidden"
	Select      FieldType = "select"
	MultiSelect FieldType = "multiselect"

	Button FieldType = "button"
)

func (FieldType) String

func (e FieldType) String() string

type FormDataType

type FormDataType string
const (
	FormDataTypeText FormDataType = "text"
	FormDataTypeFile FormDataType = "file"
)

func (FormDataType) String

func (e FormDataType) String() string

type GrantType

type GrantType string
const (
	AuthorizationCode         GrantType = "authorizationCode"
	AuthorizationCodeWithPKCE GrantType = "authorizationCodeWithPKCE"
	Implicit                  GrantType = "implicit"
	PasswordCredential        GrantType = "passwordCredential"
	ClientCredential          GrantType = "clientCredential"
)

func (GrantType) String

func (e GrantType) String() string

type HttpContentType

type HttpContentType string
const (
	ContentTypeJSON HttpContentType = "application/json"
	ContentTypeXML  HttpContentType = "application/xml"
	ContentTypeHTML HttpContentType = "text/html"
	ContentTypeTEXT HttpContentType = "text/text"

	ContentTypeFormData       HttpContentType = "multipart/form-data"
	ContentTypeFormUrlencoded HttpContentType = "application/x-www-form-urlencoded"

	ContentTypeUnixDir HttpContentType = "httpd/unix-directory"
)

func (HttpContentType) String

func (e HttpContentType) String() string

type HttpMethod

type HttpMethod string
const (
	GET    HttpMethod = "GET"
	POST   HttpMethod = "POST"
	PUT    HttpMethod = "PUT"
	DELETE HttpMethod = "DELETE"

	PATCH   HttpMethod = "PATCH"
	HEAD    HttpMethod = "HEAD"
	CONNECT HttpMethod = "CONNECT"
	OPTIONS HttpMethod = "OPTIONS"
	TRACE   HttpMethod = "TRACE"
)

func (HttpMethod) String

func (e HttpMethod) String() string

type HttpRespCharset

type HttpRespCharset string
const (
	UTF8 HttpRespCharset = "utf-8"
)

func (HttpRespCharset) String

func (e HttpRespCharset) String() string

type HttpRespCode

type HttpRespCode int
const (
	Continue          HttpRespCode = 100
	SwitchingProtocol HttpRespCode = 101

	OK                          HttpRespCode = 200
	Created                     HttpRespCode = 201
	Accepted                    HttpRespCode = 202
	NonAuthoritativeInformation HttpRespCode = 203
	NoContent                   HttpRespCode = 204
	ResetContent                HttpRespCode = 205
	PartialContent              HttpRespCode = 206

	MultipleChoice   HttpRespCode = 300
	MovedPermanently HttpRespCode = 301
	Found            HttpRespCode = 302
	SeeOther         HttpRespCode = 303
	NotModified      HttpRespCode = 304
	UseProxy         HttpRespCode = 305

	TemporaryRedirect HttpRespCode = 307
	PermanentRedirect HttpRespCode = 308

	BadRequest                   HttpRespCode = 400
	Unauthorized                 HttpRespCode = 401
	PaymentRequired              HttpRespCode = 402
	Forbidden                    HttpRespCode = 403
	NotFound                     HttpRespCode = 404
	MethodNotAllowed             HttpRespCode = 405
	NotAcceptable                HttpRespCode = 406
	ProxyAuthenticationRequired  HttpRespCode = 407
	RequestTimeout               HttpRespCode = 408
	Conflict                     HttpRespCode = 409
	Gone                         HttpRespCode = 410
	LengthRequired               HttpRespCode = 411
	PreconditionFailed           HttpRespCode = 412
	RequestEntityTooLarge        HttpRespCode = 413
	RequestURITooLong            HttpRespCode = 414
	UnsupportedMediaType         HttpRespCode = 415
	RequestedRangeNotSatisfiable HttpRespCode = 416
	ExpectationFailed            HttpRespCode = 417

	InternalServerError     HttpRespCode = 500
	Implemented             HttpRespCode = 501
	BadGateway              HttpRespCode = 502
	ServiceUnavailable      HttpRespCode = 503
	GatewayTimeout          HttpRespCode = 504
	HTTPVersionNotSupported HttpRespCode = 505
)

func (HttpRespCode) Int

func (e HttpRespCode) Int() int

type HttpRespLangType

type HttpRespLangType string
const (
	LangJSON HttpRespLangType = "json"
	LangXML  HttpRespLangType = "xml"
	LangHTML HttpRespLangType = "html"
	LangTEXT HttpRespLangType = "text"
)

func (HttpRespLangType) String

func (e HttpRespLangType) String() string

type Integers

type Integers []int

func (Integers) ToString

func (n Integers) ToString() (ret string)

type IntegrationFuncExtendStatus

type IntegrationFuncExtendStatus string
const (
	IntegrationFuncIsExtend    IntegrationFuncExtendStatus = "YES"
	IntegrationFuncIsNotExtend IntegrationFuncExtendStatus = "NO"
)

func (IntegrationFuncExtendStatus) String

type IntegrationFuncOverridable

type IntegrationFuncOverridable string
const (
	IntegrationFuncCanOverridable    IntegrationFuncOverridable = "YES"
	IntegrationFuncCanNotOverridable IntegrationFuncOverridable = "NO"
)

func (IntegrationFuncOverridable) String

type LogType

type LogType string
const (
	LogRoot      LogType = "root"
	LogInterface LogType = "interface"
	LogProcessor LogType = "processor"
)

func (LogType) ToString

func (e LogType) ToString() string

type MessageSendStatus

type MessageSendStatus string
const (
	MessageCreated            MessageSendStatus = "created"
	MessageSendSuccess        MessageSendStatus = "send_success"
	MessageSendFailed         MessageSendStatus = "send_failed"
	MessageApprovalInProgress MessageSendStatus = "approval_in_progress"
	MessageApprovalAgreed     MessageSendStatus = "approval_agreed"
	MessageApprovalReject     MessageSendStatus = "approval_reject"
)

func (MessageSendStatus) String

func (e MessageSendStatus) String() string

type MessageServiceType

type MessageServiceType string
const (
	ServiceTypeApproval MessageServiceType = "approval"
	ServiceTypeInfo     MessageServiceType = "info"
)

func (MessageServiceType) String

func (e MessageServiceType) String() string

type MessageSource

type MessageSource string
const (
	MessageSourceEndpoint        MessageSource = "endpoint"
	MessageSourceJoinProject     MessageSource = "join_project"
	MessageSourceAuditProjectRes MessageSource = "audit_project_res"
)

func (MessageSource) String

func (e MessageSource) String() string

type MockPriority

type MockPriority string
const (
	MockPrioritySmart   MockPriority = "smart"
	MockPriorityExample MockPriority = "example"
)

type NodeType

type NodeType string
const (
	NodeElem    NodeType = "elem"
	NodeProp    NodeType = "prop"
	NodeContent NodeType = "content"
	NodeText    NodeType = "text"
)

func (NodeType) String

func (e NodeType) String() string

type ParamIn

type ParamIn string
const (
	ParamInPath   ParamIn = "path"
	ParamInQuery  ParamIn = "query"
	ParamInHeader ParamIn = "header"
	ParamInCookie ParamIn = "cookie"
	ParamInBody   ParamIn = "body"
)

func (ParamIn) String

func (e ParamIn) String() string

type ParamType

type ParamType string
const (
	ParamTypeString  ParamType = "string"
	ParamTypeNumber  ParamType = "number"
	ParamTypeInteger ParamType = "integer"
)

func (ParamType) String

func (e ParamType) String() string

type PlaceholderPrefix

type PlaceholderPrefix string
const (
	PlaceholderPrefixDatapool PlaceholderPrefix = "_dp"
	PlaceholderPrefixFunction PlaceholderPrefix = "_func"
)

func (PlaceholderPrefix) String

func (e PlaceholderPrefix) String() string

type PlaceholderType

type PlaceholderType string
const (
	PlaceholderTypeEnvironmentVariable PlaceholderType = "environment_variable"
	PlaceholderTypeVariable            PlaceholderType = "variable"
	PlaceholderTypeDatapool            PlaceholderType = "datapool"
	PlaceholderTypeFunction            PlaceholderType = "function"
)

func (PlaceholderType) String

func (e PlaceholderType) String() string

type ProcessorCategory

type ProcessorCategory string
const (
	ProcessorRoot ProcessorCategory = "processor_root"

	ProcessorInterface ProcessorCategory = "processor_interface"
	ProcessorGroup     ProcessorCategory = "processor_group"
	ProcessorLogic     ProcessorCategory = "processor_logic"
	ProcessorLoop      ProcessorCategory = "processor_loop"
	ProcessorTimer     ProcessorCategory = "processor_timer"
	ProcessorPrint     ProcessorCategory = "processor_print"
	ProcessorVariable  ProcessorCategory = "processor_variable"
	ProcessorAssertion ProcessorCategory = "processor_assertion"

	ProcessorCookie     ProcessorCategory = "processor_cookie"
	ProcessorData       ProcessorCategory = "processor_data"
	ProcessorCustomCode ProcessorCategory = "processor_custom_code"
)

func (ProcessorCategory) ToString

func (e ProcessorCategory) ToString() string

type ProcessorInterfaceSrc

type ProcessorInterfaceSrc string
const (
	InterfaceSrcDefine   ProcessorInterfaceSrc = "define"
	InterfaceSrcCase     ProcessorInterfaceSrc = "case"
	InterfaceSrcDiagnose ProcessorInterfaceSrc = "diagnose"
	InterfaceSrcCurl     ProcessorInterfaceSrc = "curl"
	InterfaceSrcCustom   ProcessorInterfaceSrc = "custom"
)

type ProcessorType

type ProcessorType string
const (
	ProcessorRootDefault ProcessorType = "processor_root_default"

	ProcessorInterfaceDefault ProcessorType = "processor_interface_default"
	ProcessorGroupDefault     ProcessorType = "processor_group_default"
	ProcessorTimerDefault     ProcessorType = "processor_timer_default"
	ProcessorPrintDefault     ProcessorType = "processor_print_default"

	ProcessorLogicIf   ProcessorType = "processor_logic_if"
	ProcessorLogicElse ProcessorType = "processor_logic_else"

	ProcessorLoopTime  ProcessorType = "processor_loop_time"
	ProcessorLoopIn    ProcessorType = "processor_loop_in"
	ProcessorLoopRange ProcessorType = "processor_loop_range"
	ProcessorLoopUntil ProcessorType = "processor_loop_until"

	ProcessorVariableSet   ProcessorType = "processor_variable_set"
	ProcessorVariableClear ProcessorType = "processor_variable_clear"

	ProcessorAssertionDefault ProcessorType = "processor_assertion_default"

	ProcessorExtractorBoundary  ProcessorType = "processor_extractor_boundary"
	ProcessorExtractorJsonQuery ProcessorType = "processor_extractor_jsonquery"
	ProcessorExtractorHtmlQuery ProcessorType = "processor_extractor_htmlquery"
	ProcessorExtractorXmlQuery  ProcessorType = "processor_extractor_xmlquery"

	ProcessorCookieSet   ProcessorType = "processor_cookie_set"
	ProcessorCookieClear ProcessorType = "processor_cookie_clear"

	ProcessorDataDefault       ProcessorType = "processor_data_default"
	ProcessorCustomCodeDefault ProcessorType = "processor_custom_code"
)

func (ProcessorType) ToString

func (e ProcessorType) ToString() string

type ProductStatus

type ProductStatus string
const (
	Active ProductStatus = "active"
	Closed ProductStatus = "closed"
)

func (ProductStatus) String

func (e ProductStatus) String() string

type ProgressStatus

type ProgressStatus string
const (
	Start      ProgressStatus = "start"
	InProgress ProgressStatus = "in_progress"
	End        ProgressStatus = "end"
	Cancel     ProgressStatus = "cancel"
	Error      ProgressStatus = "error"
)

func (ProgressStatus) String

func (e ProgressStatus) String() string

type ResultStatus

type ResultStatus string
const (
	Pass  ResultStatus = "pass"
	Fail  ResultStatus = "fail"
	Err   ResultStatus = "err"
	Skip  ResultStatus = "skip"
	Block ResultStatus = "block"
)

func (ResultStatus) String

func (e ResultStatus) String() string

type RoleSource

type RoleSource string
const (
	RoleSourceLy RoleSource = "ly"
)

func (RoleSource) String

func (e RoleSource) String() string

type RoleType

type RoleType string
const (
	Admin              RoleType = "admin"
	User               RoleType = "user"
	Tester             RoleType = "tester"
	Developer          RoleType = "developer"
	ProductManager     RoleType = "product_manager"
	IntegrationAdmin   RoleType = "api-admin"
	IntegrationGeneral RoleType = "general"
)

func (RoleType) String

func (e RoleType) String() string

type RunType

type RunType string
const (
	FromServer RunType = "server"
	FromAgent  RunType = "agent"
)

func (RunType) String

func (e RunType) String() string

type SourceType

type SourceType uint
const (
	SwaggerSync    SourceType = 1
	SwaggerImport  SourceType = 2
	ThirdPartySync SourceType = 3
)

type SwitchStatus

type SwitchStatus uint
const (
	SwitchON  SwitchStatus = 1
	SwitchOFF SwitchStatus = 2
)

type TenantId

type TenantId string

type TestStage

type TestStage string
const (
	UintTest        TestStage = "unit_test"        //单元测试
	IntegrationTest TestStage = "integration_test" //集成测试
	SystemTest      TestStage = "system_test"      //系统测试
	AcceptanceTest  TestStage = "acceptance_test"  //验收测试
)

func (TestStage) String

func (e TestStage) String() string

type TestStatus

type TestStatus string
const (
	Draft     TestStatus = "draft"      //草稿
	Disabled  TestStatus = "disabled"   //已禁用
	ToExecute TestStatus = "to_execute" //待执行
	Executed  TestStatus = "executed"   //已执行
)

func (TestStatus) String

func (e TestStatus) String() string

type TestType

type TestType string
const (
	ApiTest         TestType = "api_test"         //接口测试
	PerformanceTest TestType = "performance_test" //性能测试
	SmokeTest       TestType = "smoke_test"       //冒烟测试
)

func (TestType) String

func (e TestType) String() string

type TimeUnit

type TimeUnit string
const (
	Second TimeUnit = "sec"
	Minute TimeUnit = "min"
	Hour   TimeUnit = "hour"
)

func (TimeUnit) ToString

func (e TimeUnit) ToString() string

type UsedBy

type UsedBy string
const (
	InterfaceDebug UsedBy = "interface_debug"
	CaseDebug      UsedBy = "case_debug"
	//AlternativeCaseDebug UsedBy = "alternative_case_debug"
	DiagnoseDebug UsedBy = "diagnose_debug"
	ScenarioDebug UsedBy = "scenario_debug"
)

type ValueOperator

type ValueOperator string
const (
	Get   ValueOperator = "get"
	Set   ValueOperator = "set"
	Clear ValueOperator = "clear"
)

func (ValueOperator) String

func (e ValueOperator) String() string

type WsMsgCategory

type WsMsgCategory string
const (
	ProgressInProgress WsMsgCategory = "in_progress"
	ProgressEnd        WsMsgCategory = "end"
	ProgressResult     WsMsgCategory = "result"
	Processor          WsMsgCategory = "processor"
	Initialize         WsMsgCategory = "initialize"
	Statistic          WsMsgCategory = "stat"
	Exception          WsMsgCategory = "exception"
)

func (WsMsgCategory) String

func (e WsMsgCategory) String() string

Jump to

Keyboard shortcuts

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