Documentation
¶
Index ¶
- func GetCodeGenerators() (result map[string]CodeGenerator)
- func GetTestSuiteConverters() (result map[string]TestSuiteConverter)
- func RegisterCodeGenerator(name string, generator CodeGenerator)
- func RegisterTestSuiteConverter(name string, converter TestSuiteConverter)
- type BoolProp
- type CodeGenerator
- type CollectionProp
- type ElementProp
- type HTTPSamplerProxy
- type HashTree
- type Importer
- type JmeterTestPlan
- type Pair
- type Paris
- type Postman
- type PostmanBody
- type PostmanCollection
- type PostmanInfo
- type PostmanItem
- type PostmanRequest
- type PostmanURL
- type ResultCollector
- type StringProp
- type TestPlan
- type TestSuiteConverter
- type ThreadGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCodeGenerators ¶
func GetCodeGenerators() (result map[string]CodeGenerator)
func GetTestSuiteConverters ¶
func GetTestSuiteConverters() (result map[string]TestSuiteConverter)
func RegisterCodeGenerator ¶
func RegisterCodeGenerator(name string, generator CodeGenerator)
func RegisterTestSuiteConverter ¶
func RegisterTestSuiteConverter(name string, converter TestSuiteConverter)
Types ¶
type CodeGenerator ¶
CodeGenerator is the interface of code generator
func GetCodeGenerator ¶
func GetCodeGenerator(name string) CodeGenerator
func NewCurlGenerator ¶ added in v0.0.14
func NewCurlGenerator() CodeGenerator
func NewGolangGenerator ¶
func NewGolangGenerator() CodeGenerator
type CollectionProp ¶
type CollectionProp struct { Name string `xml:"name,attr"` ElementProp []ElementProp `xml:"elementProp"` }
type ElementProp ¶
type ElementProp struct { Name string `xml:"name,attr"` Type string `xml:"elementType,attr"` GUIClass string `xml:"guiclass,attr"` TestClass string `xml:"testclass,attr"` Enabled bool `xml:"enabled,attr"` StringProp []StringProp `xml:"stringProp"` BoolProp []BoolProp `xml:"boolProp"` CollectionProp []CollectionProp `xml:"collectionProp"` }
type HTTPSamplerProxy ¶
type HTTPSamplerProxy struct { XMLName xml.Name `xml:"HTTPSamplerProxy"` Name string `xml:"testname,attr"` GUIClass string `xml:"guiclass,attr"` TestClass string `xml:"testclass,attr"` Enabled bool `xml:"enabled,attr"` StringProp []StringProp `xml:"stringProp"` BoolProp []BoolProp `xml:"boolProp"` ElementProp []ElementProp `xml:"elementProp"` }
type Importer ¶ added in v0.0.14
type Importer interface { Convert(data []byte) (*testing.TestSuite, error) ConvertFromFile(dataFile string) (*testing.TestSuite, error) ConvertFromURL(dataURL string) (*testing.TestSuite, error) }
func NewPostmanImporter ¶ added in v0.0.14
func NewPostmanImporter() Importer
NewPostmanImporter returns a new postman importer
type JmeterTestPlan ¶
type Postman ¶ added in v0.0.14
type Postman struct { Info PostmanInfo `json:"info"` Item []PostmanItem `json:"item"` }
type PostmanBody ¶ added in v0.0.14
type PostmanCollection ¶ added in v0.0.14
type PostmanCollection struct {
Collection Postman `json:"collection"`
}
type PostmanInfo ¶ added in v0.0.14
type PostmanInfo struct {
Name string
}
type PostmanItem ¶ added in v0.0.14
type PostmanItem struct { Name string `json:"name"` Request PostmanRequest `json:"request"` Item []PostmanItem `json:"item"` }
type PostmanRequest ¶ added in v0.0.14
type PostmanRequest struct { Method string `json:"method"` URL PostmanURL `json:"url"` Header Paris `json:"header"` Body PostmanBody `json:"body"` }
type PostmanURL ¶ added in v0.0.14
type ResultCollector ¶
type StringProp ¶
type TestSuiteConverter ¶
TestSuiteConverter is the interface of test suite converter
func GetTestSuiteConverter ¶
func GetTestSuiteConverter(name string) TestSuiteConverter
type ThreadGroup ¶
type ThreadGroup struct { XMLName xml.Name `xml:"ThreadGroup"` GUIClass string `xml:"guiclass,attr"` TestClass string `xml:"testclass,attr"` Enabled bool `xml:"enabled,attr"` Name string `xml:"testname,attr"` StringProp []StringProp `xml:"stringProp"` ElementProp ElementProp `xml:"elementProp"` }
Click to show internal directories.
Click to hide internal directories.