jmxparser

package
Version: v0.0.0-...-9e745d5 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	Text           string `xml:",chardata"`
	Guiclass       string `xml:"guiclass,attr"`
	Testclass      string `xml:"testclass,attr"`
	Testname       string `xml:"testname,attr"`
	Enabled        string `xml:"enabled,attr"`
	CollectionProp struct {
		Text        string `xml:",chardata"`
		Name        string `xml:"name,attr"`
		ElementProp []struct {
			Text        string `xml:",chardata"`
			Name        string `xml:"name,attr"`
			ElementType string `xml:"elementType,attr"`
			StringProp  []struct {
				Text string `xml:",chardata"`
				Name string `xml:"name,attr"`
			} `xml:"stringProp"`
		} `xml:"elementProp"`
	} `xml:"collectionProp"`
}

Arguments - struct user define params

type ComBlazemeterJmeterRandomCSVDataSetConfig

type ComBlazemeterJmeterRandomCSVDataSetConfig struct {
	Text       string `xml:",chardata"`
	Guiclass   string `xml:"guiclass,attr"`
	Testclass  string `xml:"testclass,attr"`
	Testname   string `xml:"testname,attr"`
	Enabled    string `xml:"enabled,attr"`
	StringProp []struct {
		Text string `xml:",chardata"`
		Name string `xml:"name,attr"`
	} `xml:"stringProp"`
	BoolProp []struct {
		Text string `xml:",chardata"`
		Name string `xml:"name,attr"`
	} `xml:"boolProp"`
}

ComBlazemeterJmeterRandomCSVDataSetConfig - struct for rundom csv config plugin(bzt)

type ComBlazemeterJmeterThreadsConcurrencyConcurrencyThreadGroup

type ComBlazemeterJmeterThreadsConcurrencyConcurrencyThreadGroup struct {
	Text        string `xml:",chardata"`
	Guiclass    string `xml:"guiclass,attr"`
	Testclass   string `xml:"testclass,attr"`
	Testname    string `xml:"testname,attr"`
	Enabled     string `xml:"enabled,attr"`
	ElementProp struct {
		Text        string `xml:",chardata"`
		Name        string `xml:"name,attr"`
		ElementType string `xml:"elementType,attr"`
	} `xml:"elementProp"`
	StringProp []struct {
		Text string `xml:",chardata"`
		Name string `xml:"name,attr"`
	} `xml:"stringProp"`
}

ComBlazemeterJmeterThreadsConcurrencyConcurrencyThreadGroup - struct for BZT concurrency thread groups

type ConstantThroughputTimer

type ConstantThroughputTimer struct {
	Text      string `xml:",chardata"`
	Guiclass  string `xml:"guiclass,attr"`
	Testclass string `xml:"testclass,attr"`
	Testname  string `xml:"testname,attr"`
	Enabled   string `xml:"enabled,attr"`
	IntProp   struct {
		Text string `xml:",chardata"`
		Name string `xml:"name,attr"`
	} `xml:"intProp"`
	StringProp struct {
		Text string `xml:",chardata"`
		Name string `xml:"name,attr"`
	} `xml:"stringProp"`
}

ConstantThroughputTimer - func for Constant Throughput Timer

type JMXParserResponse

type JMXParserResponse struct {
	ThreadGroupName   string
	ThreadGroupType   string
	ThreadGroupParams []ThreadGroupParams
}

JMXParserResponse - struct from response parse

type JSR223Sampler

type JSR223Sampler []struct {
	Text       string `xml:",chardata"`
	Guiclass   string `xml:"guiclass,attr"`
	Testclass  string `xml:"testclass,attr"`
	Testname   string `xml:"testname,attr"`
	Enabled    string `xml:"enabled,attr"`
	StringProp []struct {
		Text string `xml:",chardata"`
		Name string `xml:"name,attr"`
	} `xml:"stringProp"`
}

JSR223Sampler - struct for JSR223Sampler

type JmeterTestPlan

type JmeterTestPlan struct {
	XMLName    xml.Name `xml:"jmeterTestPlan"`
	Text       string   `xml:",chardata"`
	Version    string   `xml:"version,attr"`
	Properties string   `xml:"properties,attr"`
	Jmeter     string   `xml:"jmeter,attr"`
	HashTree   struct {
		Text     string   `xml:",chardata"`
		TestPlan TestPlan `xml:"TestPlan"`
		HashTree struct {
			Text                                      string                                    `xml:",chardata"`
			ComBlazemeterJmeterRandomCSVDataSetConfig ComBlazemeterJmeterRandomCSVDataSetConfig `xml:"com.blazemeter.jmeter.RandomCSVDataSetConfig"`
			HashTree                                  []struct {
				Text                  string                `xml:",chardata"`
				TransactionController TransactionController `xml:"TransactionController"`
				JSR223Sampler         []struct {
					Text       string `xml:",chardata"`
					Guiclass   string `xml:"guiclass,attr"`
					Testclass  string `xml:"testclass,attr"`
					Testname   string `xml:"testname,attr"`
					Enabled    string `xml:"enabled,attr"`
					StringProp []struct {
						Text string `xml:",chardata"`
						Name string `xml:"name,attr"`
					} `xml:"stringProp"`
				} `xml:"JSR223Sampler"`
				HashTree []struct {
					Text                    string                  `xml:",chardata"`
					JSR223Sampler           []JSR223Sampler         `xml:"JSR223Sampler"`
					HashTree                []string                `xml:"hashTree"`
					ConstantThroughputTimer ConstantThroughputTimer `xml:"ConstantThroughputTimer"`
					UniformRandomTimer      UniformRandomTimer      `xml:"UniformRandomTimer"`
				} `xml:"hashTree"`
				OnceOnlyController OnceOnlyController `xml:"OnceOnlyController"`
				TestAction         TestAction         `xml:"TestAction"`
			} `xml:"hashTree"`
			Arguments                                                   []Arguments                                                   `xml:"Arguments"`
			ResultCollector                                             ResultCollector                                               `xml:"ResultCollector"`
			SetupThreadGroup                                            SetupThreadGroup                                              `xml:"SetupThreadGroup"`
			ThreadGroup                                                 []ThreadGroup                                                 `xml:"ThreadGroup"`
			ComBlazemeterJmeterThreadsConcurrencyConcurrencyThreadGroup []ComBlazemeterJmeterThreadsConcurrencyConcurrencyThreadGroup `xml:"com.blazemeter.jmeter.threads.concurrency.ConcurrencyThreadGroup"`
			PostThreadGroup                                             PostThreadGroup                                               `xml:"PostThreadGroup"`
		} `xml:"hashTree"`
	} `xml:"hashTree"`
}

JmeterTestPlan - test plan struct(head struct)

func (JmeterTestPlan) GetTreadGroupsParams

func (jmx JmeterTestPlan) GetTreadGroupsParams(tempScripsBytes []byte) ([]JMXParserResponse, error)

GetTreadGroupsParams - func to return slice jmeter thread groups params

type OnceOnlyController

type OnceOnlyController struct {
	Text      string `xml:",chardata"`
	Guiclass  string `xml:"guiclass,attr"`
	Testclass string `xml:"testclass,attr"`
	Testname  string `xml:"testname,attr"`
	Enabled   string `xml:"enabled,attr"`
}

OnceOnlyController - struct for Once controller

type PostThreadGroup

type PostThreadGroup struct {
	Text       string `xml:",chardata"`
	Guiclass   string `xml:"guiclass,attr"`
	Testclass  string `xml:"testclass,attr"`
	Testname   string `xml:"testname,attr"`
	Enabled    string `xml:"enabled,attr"`
	StringProp []struct {
		Text string `xml:",chardata"`
		Name string `xml:"name,attr"`
	} `xml:"stringProp"`
	ElementProp struct {
		Text        string `xml:",chardata"`
		Name        string `xml:"name,attr"`
		ElementType string `xml:"elementType,attr"`
		Guiclass    string `xml:"guiclass,attr"`
		Testclass   string `xml:"testclass,attr"`
		Testname    string `xml:"testname,attr"`
		Enabled     string `xml:"enabled,attr"`
		BoolProp    struct {
			Text string `xml:",chardata"`
			Name string `xml:"name,attr"`
		} `xml:"boolProp"`
		StringProp struct {
			Text string `xml:",chardata"`
			Name string `xml:"name,attr"`
		} `xml:"stringProp"`
	} `xml:"elementProp"`
	BoolProp struct {
		Text string `xml:",chardata"`
		Name string `xml:"name,attr"`
	} `xml:"boolProp"`
}

PostThreadGroup - struct for theardown thread group

type ResultCollector

type ResultCollector struct {
	Text      string `xml:",chardata"`
	Guiclass  string `xml:"guiclass,attr"`
	Testclass string `xml:"testclass,attr"`
	Testname  string `xml:"testname,attr"`
	Enabled   string `xml:"enabled,attr"`
	BoolProp  struct {
		Text string `xml:",chardata"`
		Name string `xml:"name,attr"`
	} `xml:"boolProp"`
	ObjProp struct {
		Text  string `xml:",chardata"`
		Name  string `xml:"name"`
		Value struct {
			Text                               string `xml:",chardata"`
			Class                              string `xml:"class,attr"`
			Time                               string `xml:"time"`
			Latency                            string `xml:"latency"`
			Timestamp                          string `xml:"timestamp"`
			Success                            string `xml:"success"`
			Label                              string `xml:"label"`
			Code                               string `xml:"code"`
			Message                            string `xml:"message"`
			ThreadName                         string `xml:"threadName"`
			DataType                           string `xml:"dataType"`
			Encoding                           string `xml:"encoding"`
			Assertions                         string `xml:"assertions"`
			Subresults                         string `xml:"subresults"`
			ResponseData                       string `xml:"responseData"`
			SamplerData                        string `xml:"samplerData"`
			XML                                string `xml:"xml"`
			FieldNames                         string `xml:"fieldNames"`
			ResponseHeaders                    string `xml:"responseHeaders"`
			RequestHeaders                     string `xml:"requestHeaders"`
			ResponseDataOnError                string `xml:"responseDataOnError"`
			SaveAssertionResultsFailureMessage string `xml:"saveAssertionResultsFailureMessage"`
			AssertionsResultsToSave            string `xml:"assertionsResultsToSave"`
			Bytes                              string `xml:"bytes"`
			SentBytes                          string `xml:"sentBytes"`
			URL                                string `xml:"url"`
			ThreadCounts                       string `xml:"threadCounts"`
			IdleTime                           string `xml:"idleTime"`
			ConnectTime                        string `xml:"connectTime"`
		} `xml:"value"`
	} `xml:"objProp"`
	StringProp struct {
		Text string `xml:",chardata"`
		Name string `xml:"name,attr"`
	} `xml:"stringProp"`
}

ResultCollector - struct for result collector

type SetupThreadGroup

type SetupThreadGroup struct {
	Text       string `xml:",chardata"`
	Guiclass   string `xml:"guiclass,attr"`
	Testclass  string `xml:"testclass,attr"`
	Testname   string `xml:"testname,attr"`
	Enabled    string `xml:"enabled,attr"`
	StringProp []struct {
		Text string `xml:",chardata"`
		Name string `xml:"name,attr"`
	} `xml:"stringProp"`
	ElementProp struct {
		Text        string `xml:",chardata"`
		Name        string `xml:"name,attr"`
		ElementType string `xml:"elementType,attr"`
		Guiclass    string `xml:"guiclass,attr"`
		Testclass   string `xml:"testclass,attr"`
		Testname    string `xml:"testname,attr"`
		Enabled     string `xml:"enabled,attr"`
		BoolProp    struct {
			Text string `xml:",chardata"`
			Name string `xml:"name,attr"`
		} `xml:"boolProp"`
		StringProp struct {
			Text string `xml:",chardata"`
			Name string `xml:"name,attr"`
		} `xml:"stringProp"`
	} `xml:"elementProp"`
	BoolProp struct {
		Text string `xml:",chardata"`
		Name string `xml:"name,attr"`
	} `xml:"boolProp"`
}

SetupThreadGroup - struct for setup thread groups

type TestAction

type TestAction struct {
	Text      string `xml:",chardata"`
	Guiclass  string `xml:"guiclass,attr"`
	Testclass string `xml:"testclass,attr"`
	Testname  string `xml:"testname,attr"`
	Enabled   string `xml:"enabled,attr"`
	IntProp   []struct {
		Text string `xml:",chardata"`
		Name string `xml:"name,attr"`
	} `xml:"intProp"`
	StringProp struct {
		Text string `xml:",chardata"`
		Name string `xml:"name,attr"`
	} `xml:"stringProp"`
}

TestAction - struct for Test action

type TestPlan

type TestPlan struct {
	Text       string `xml:",chardata"`
	Guiclass   string `xml:"guiclass,attr"`
	Testclass  string `xml:"testclass,attr"`
	Testname   string `xml:"testname,attr"`
	Enabled    string `xml:"enabled,attr"`
	StringProp []struct {
		Text string `xml:",chardata"`
		Name string `xml:"name,attr"`
	} `xml:"stringProp"`
	BoolProp []struct {
		Text string `xml:",chardata"`
		Name string `xml:"name,attr"`
	} `xml:"boolProp"`
	ElementProp struct {
		Text           string `xml:",chardata"`
		Name           string `xml:"name,attr"`
		ElementType    string `xml:"elementType,attr"`
		Guiclass       string `xml:"guiclass,attr"`
		Testclass      string `xml:"testclass,attr"`
		Testname       string `xml:"testname,attr"`
		Enabled        string `xml:"enabled,attr"`
		CollectionProp struct {
			Text string `xml:",chardata"`
			Name string `xml:"name,attr"`
		} `xml:"collectionProp"`
	} `xml:"elementProp"`
}

TestPlan - struct from test plan

type ThreadGroup

type ThreadGroup struct {
	Text       string `xml:",chardata"`
	Guiclass   string `xml:"guiclass,attr"`
	Testclass  string `xml:"testclass,attr"`
	Testname   string `xml:"testname,attr"`
	Enabled    string `xml:"enabled,attr"`
	StringProp []struct {
		Text string `xml:",chardata"`
		Name string `xml:"name,attr"`
	} `xml:"stringProp"`
	ElementProp struct {
		Text        string `xml:",chardata"`
		Name        string `xml:"name,attr"`
		ElementType string `xml:"elementType,attr"`
		Guiclass    string `xml:"guiclass,attr"`
		Testclass   string `xml:"testclass,attr"`
		Testname    string `xml:"testname,attr"`
		Enabled     string `xml:"enabled,attr"`
		BoolProp    struct {
			Text string `xml:",chardata"`
			Name string `xml:"name,attr"`
		} `xml:"boolProp"`
		StringProp struct {
			Text string `xml:",chardata"`
			Name string `xml:"name,attr"`
		} `xml:"stringProp"`
	} `xml:"elementProp"`
	BoolProp struct {
		Text string `xml:",chardata"`
		Name string `xml:"name,attr"`
	} `xml:"boolProp"`
}

ThreadGroup - struct for standart thread group

type ThreadGroupParams

type ThreadGroupParams struct {
	Type  string
	Name  string
	Value string
}

ThreadGroupParams - struct for simple thread group params

type ThroughputIndexs

type ThroughputIndexs struct {
	Index int
	Name  string
}

type TransactionController

type TransactionController struct {
	Text      string `xml:",chardata"`
	Guiclass  string `xml:"guiclass,attr"`
	Testclass string `xml:"testclass,attr"`
	Testname  string `xml:"testname,attr"`
	Enabled   string `xml:"enabled,attr"`
	BoolProp  []struct {
		Text string `xml:",chardata"`
		Name string `xml:"name,attr"`
	} `xml:"boolProp"`

} //`xml:"TransactionController"`

type TreadGroupIndex

type TreadGroupIndex struct {
	Index int
	Name  string
}

type UniformRandomTimer

type UniformRandomTimer struct {
	Text       string `xml:",chardata"`
	Guiclass   string `xml:"guiclass,attr"`
	Testclass  string `xml:"testclass,attr"`
	Testname   string `xml:"testname,attr"`
	Enabled    string `xml:"enabled,attr"`
	StringProp []struct {
		Text string `xml:",chardata"`
		Name string `xml:"name,attr"`
	} `xml:"stringProp"`
}

UniformRandomTimer - struct from UniformRandomTimer

Jump to

Keyboard shortcuts

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