gridinit-jmeter 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gridinit-jmeter/controllers/if_controller.rb +2 -2
- data/lib/gridinit-jmeter/idl.rb +63 -0
- data/lib/gridinit-jmeter/{dsl.xml → idl.xml} +0 -0
- data/lib/gridinit-jmeter/idl/access_log_sampler.rb +33 -0
- data/lib/gridinit-jmeter/idl/aggregate_graph.rb +56 -0
- data/lib/gridinit-jmeter/idl/aggregate_report.rb +56 -0
- data/lib/gridinit-jmeter/idl/ajp13_sampler.rb +42 -0
- data/lib/gridinit-jmeter/idl/assertion_results.rb +56 -0
- data/lib/gridinit-jmeter/idl/beanshell_assertion.rb +29 -0
- data/lib/gridinit-jmeter/idl/beanshell_listener.rb +29 -0
- data/lib/gridinit-jmeter/idl/beanshell_postprocessor.rb +29 -0
- data/lib/gridinit-jmeter/idl/beanshell_preprocessor.rb +29 -0
- data/lib/gridinit-jmeter/idl/beanshell_sampler.rb +29 -0
- data/lib/gridinit-jmeter/idl/beanshell_timer.rb +29 -0
- data/lib/gridinit-jmeter/idl/bsf_assertion.rb +29 -0
- data/lib/gridinit-jmeter/idl/bsf_listener.rb +29 -0
- data/lib/gridinit-jmeter/idl/bsf_postprocessor.rb +29 -0
- data/lib/gridinit-jmeter/idl/bsf_preprocessor.rb +29 -0
- data/lib/gridinit-jmeter/idl/bsf_sampler.rb +29 -0
- data/lib/gridinit-jmeter/idl/bsf_timer.rb +29 -0
- data/lib/gridinit-jmeter/idl/compare_assertion.rb +28 -0
- data/lib/gridinit-jmeter/idl/comparison_assertion_visualizer.rb +56 -0
- data/lib/gridinit-jmeter/idl/constant_throughput_timer.rb +31 -0
- data/lib/gridinit-jmeter/idl/constant_timer.rb +26 -0
- data/lib/gridinit-jmeter/idl/counter.rb +31 -0
- data/lib/gridinit-jmeter/idl/cssjquery_extractor.rb +31 -0
- data/lib/gridinit-jmeter/idl/csv_data_set_config.rb +33 -0
- data/lib/gridinit-jmeter/idl/debug_postprocessor.rb +29 -0
- data/lib/gridinit-jmeter/idl/debug_sampler.rb +28 -0
- data/lib/gridinit-jmeter/idl/distribution_graphalpha.rb +56 -0
- data/lib/gridinit-jmeter/idl/duration_assertion.rb +26 -0
- data/lib/gridinit-jmeter/idl/foreach_controller.rb +28 -0
- data/lib/gridinit-jmeter/idl/ftp_request.rb +35 -0
- data/lib/gridinit-jmeter/idl/ftp_request_defaults.rb +33 -0
- data/lib/gridinit-jmeter/idl/gaussian_random_timer.rb +27 -0
- data/lib/gridinit-jmeter/idl/generate_summary_results.rb +24 -0
- data/lib/gridinit-jmeter/idl/graph_results.rb +56 -0
- data/lib/gridinit-jmeter/idl/html_assertion.rb +31 -0
- data/lib/gridinit-jmeter/idl/html_link_parser.rb +24 -0
- data/lib/gridinit-jmeter/idl/html_parameter_mask.rb +33 -0
- data/lib/gridinit-jmeter/idl/http_authorization_manager.rb +26 -0
- data/lib/gridinit-jmeter/idl/http_cache_manager.rb +27 -0
- data/lib/gridinit-jmeter/idl/http_cookie_manager.rb +27 -0
- data/lib/gridinit-jmeter/idl/http_header_manager.rb +26 -0
- data/lib/gridinit-jmeter/idl/http_request.rb +42 -0
- data/lib/gridinit-jmeter/idl/http_request_defaults.rb +36 -0
- data/lib/gridinit-jmeter/idl/http_url_rewriting_modifier.rb +30 -0
- data/lib/gridinit-jmeter/idl/if_controller.rb +27 -0
- data/lib/gridinit-jmeter/idl/include_controller.rb +26 -0
- data/lib/gridinit-jmeter/idl/java_request.rb +70 -0
- data/lib/gridinit-jmeter/idl/java_request_defaults.rb +70 -0
- data/lib/gridinit-jmeter/idl/jdbc_connection_configuration.rb +38 -0
- data/lib/gridinit-jmeter/idl/jdbc_postprocessor.rb +32 -0
- data/lib/gridinit-jmeter/idl/jdbc_preprocessor.rb +32 -0
- data/lib/gridinit-jmeter/idl/jdbc_request.rb +32 -0
- data/lib/gridinit-jmeter/idl/jms_pointtopoint.rb +41 -0
- data/lib/gridinit-jmeter/idl/jms_publisher.rb +42 -0
- data/lib/gridinit-jmeter/idl/jms_subscriber.rb +36 -0
- data/lib/gridinit-jmeter/idl/jsr223_assertion.rb +30 -0
- data/lib/gridinit-jmeter/idl/jsr223_listener.rb +30 -0
- data/lib/gridinit-jmeter/idl/jsr223_postprocessor.rb +30 -0
- data/lib/gridinit-jmeter/idl/jsr223_preprocessor.rb +30 -0
- data/lib/gridinit-jmeter/idl/jsr223_sampler.rb +30 -0
- data/lib/gridinit-jmeter/idl/jsr223_timer.rb +30 -0
- data/lib/gridinit-jmeter/idl/junit_request.rb +38 -0
- data/lib/gridinit-jmeter/idl/keystore_configuration.rb +28 -0
- data/lib/gridinit-jmeter/idl/ldap_extended_request.rb +43 -0
- data/lib/gridinit-jmeter/idl/ldap_extended_request_defaults.rb +43 -0
- data/lib/gridinit-jmeter/idl/ldap_request.rb +36 -0
- data/lib/gridinit-jmeter/idl/ldap_request_defaults.rb +34 -0
- data/lib/gridinit-jmeter/idl/login_config_element.rb +27 -0
- data/lib/gridinit-jmeter/idl/loop_controller.rb +27 -0
- data/lib/gridinit-jmeter/idl/mail_reader_sampler.rb +38 -0
- data/lib/gridinit-jmeter/idl/mailer_visualizer.rb +65 -0
- data/lib/gridinit-jmeter/idl/md5hex_assertion.rb +26 -0
- data/lib/gridinit-jmeter/idl/module_controller.rb +24 -0
- data/lib/gridinit-jmeter/idl/monitor_results.rb +56 -0
- data/lib/gridinit-jmeter/idl/once_only_controller.rb +24 -0
- data/lib/gridinit-jmeter/idl/os_process_sampler.rb +35 -0
- data/lib/gridinit-jmeter/idl/poisson_random_timer.rb +27 -0
- data/lib/gridinit-jmeter/idl/random_controller.rb +26 -0
- data/lib/gridinit-jmeter/idl/random_order_controller.rb +24 -0
- data/lib/gridinit-jmeter/idl/random_variable.rb +31 -0
- data/lib/gridinit-jmeter/idl/recording_controller.rb +24 -0
- data/lib/gridinit-jmeter/idl/regex_user_parameters.rb +28 -0
- data/lib/gridinit-jmeter/idl/regular_expression_extractor.rb +31 -0
- data/lib/gridinit-jmeter/idl/response_assertion.rb +29 -0
- data/lib/gridinit-jmeter/idl/response_time_graph.rb +56 -0
- data/lib/gridinit-jmeter/idl/result_status_action_handler.rb +26 -0
- data/lib/gridinit-jmeter/idl/runtime_controller.rb +26 -0
- data/lib/gridinit-jmeter/idl/save_responses_to_a_file.rb +30 -0
- data/lib/gridinit-jmeter/idl/simple_config_element.rb +24 -0
- data/lib/gridinit-jmeter/idl/simple_controller.rb +24 -0
- data/lib/gridinit-jmeter/idl/simple_data_writer.rb +56 -0
- data/lib/gridinit-jmeter/idl/smime_assertion.rb +36 -0
- data/lib/gridinit-jmeter/idl/smtp_sampler.rb +52 -0
- data/lib/gridinit-jmeter/idl/soapxmlrpc_request.rb +34 -0
- data/lib/gridinit-jmeter/idl/spline_visualizer.rb +56 -0
- data/lib/gridinit-jmeter/idl/summary_report.rb +56 -0
- data/lib/gridinit-jmeter/idl/switch_controller.rb +26 -0
- data/lib/gridinit-jmeter/idl/synchronizing_timer.rb +26 -0
- data/lib/gridinit-jmeter/idl/tcp_sampler.rb +34 -0
- data/lib/gridinit-jmeter/idl/tcp_sampler_config.rb +32 -0
- data/lib/gridinit-jmeter/idl/test_action.rb +28 -0
- data/lib/gridinit-jmeter/idl/test_plan.rb +32 -0
- data/lib/gridinit-jmeter/idl/thread_group.rb +37 -0
- data/lib/gridinit-jmeter/idl/throughput_controller.rb +33 -0
- data/lib/gridinit-jmeter/idl/transaction_controller.rb +26 -0
- data/lib/gridinit-jmeter/idl/uniform_random_timer.rb +27 -0
- data/lib/gridinit-jmeter/idl/user_defined_variables.rb +26 -0
- data/lib/gridinit-jmeter/idl/user_parameters.rb +30 -0
- data/lib/gridinit-jmeter/idl/view_results_in_table.rb +56 -0
- data/lib/gridinit-jmeter/idl/view_results_tree.rb +56 -0
- data/lib/gridinit-jmeter/idl/while_controller.rb +26 -0
- data/lib/gridinit-jmeter/idl/xml_assertion.rb +24 -0
- data/lib/gridinit-jmeter/idl/xml_schema_assertion.rb +26 -0
- data/lib/gridinit-jmeter/idl/xpath_assertion.rb +31 -0
- data/lib/gridinit-jmeter/idl/xpath_extractor.rb +31 -0
- data/lib/gridinit-jmeter/version.rb +1 -1
- metadata +120 -7
@@ -0,0 +1,33 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def csv_data_set_config(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::CsvDataSetConfig.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class CsvDataSetConfig
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="delimiter">,</stringProp>
|
19
|
+
<stringProp name="fileEncoding"/>
|
20
|
+
<stringProp name="filename"/>
|
21
|
+
<boolProp name="quotedData">false</boolProp>
|
22
|
+
<boolProp name="recycle">true</boolProp>
|
23
|
+
<stringProp name="shareMode">All threads</stringProp>
|
24
|
+
<boolProp name="stopThread">false</boolProp>
|
25
|
+
<stringProp name="variableNames"/>
|
26
|
+
</CSVDataSet>)
|
27
|
+
EOS
|
28
|
+
update params
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def debug_postprocessor(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::DebugPostprocessor.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class DebugPostprocessor
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<DebugPostProcessor guiclass="TestBeanGUI" testclass="DebugPostProcessor" testname="#{name}" enabled="true">
|
18
|
+
<boolProp name="displayJMeterProperties">false</boolProp>
|
19
|
+
<boolProp name="displayJMeterVariables">true</boolProp>
|
20
|
+
<boolProp name="displaySamplerProperties">true</boolProp>
|
21
|
+
<boolProp name="displaySystemProperties">false</boolProp>
|
22
|
+
</DebugPostProcessor>)
|
23
|
+
EOS
|
24
|
+
update params
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def debug_sampler(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::DebugSampler.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class DebugSampler
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<DebugSampler guiclass="TestBeanGUI" testclass="DebugSampler" testname="#{name}" enabled="true">
|
18
|
+
<boolProp name="displayJMeterProperties">false</boolProp>
|
19
|
+
<boolProp name="displayJMeterVariables">true</boolProp>
|
20
|
+
<boolProp name="displaySystemProperties">false</boolProp>
|
21
|
+
</DebugSampler>)
|
22
|
+
EOS
|
23
|
+
update params
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def distribution_graphalpha(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::DistributionGraphalpha.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class DistributionGraphalpha
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<ResultCollector guiclass="DistributionGraphVisualizer" testclass="ResultCollector" testname="#{name}" enabled="true">
|
18
|
+
<boolProp name="ResultCollector.error_logging">false</boolProp>
|
19
|
+
<objProp>
|
20
|
+
<name>saveConfig</name>
|
21
|
+
<value class="SampleSaveConfiguration">
|
22
|
+
<time>true</time>
|
23
|
+
<latency>true</latency>
|
24
|
+
<timestamp>true</timestamp>
|
25
|
+
<success>true</success>
|
26
|
+
<label>true</label>
|
27
|
+
<code>true</code>
|
28
|
+
<message>false</message>
|
29
|
+
<threadName>true</threadName>
|
30
|
+
<dataType>false</dataType>
|
31
|
+
<encoding>false</encoding>
|
32
|
+
<assertions>false</assertions>
|
33
|
+
<subresults>false</subresults>
|
34
|
+
<responseData>false</responseData>
|
35
|
+
<samplerData>false</samplerData>
|
36
|
+
<xml>false</xml>
|
37
|
+
<fieldNames>false</fieldNames>
|
38
|
+
<responseHeaders>false</responseHeaders>
|
39
|
+
<requestHeaders>false</requestHeaders>
|
40
|
+
<responseDataOnError>false</responseDataOnError>
|
41
|
+
<saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
|
42
|
+
<assertionsResultsToSave>0</assertionsResultsToSave>
|
43
|
+
<bytes>true</bytes>
|
44
|
+
<threadCounts>true</threadCounts>
|
45
|
+
<sampleCount>true</sampleCount>
|
46
|
+
</value>
|
47
|
+
</objProp>
|
48
|
+
<stringProp name="filename"/>
|
49
|
+
</ResultCollector>)
|
50
|
+
EOS
|
51
|
+
update params
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def duration_assertion(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::DurationAssertion.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class DurationAssertion
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<DurationAssertion guiclass="DurationAssertionGui" testclass="DurationAssertion" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="DurationAssertion.duration"/>
|
19
|
+
</DurationAssertion>)
|
20
|
+
EOS
|
21
|
+
update params
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def foreach_controller(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::ForeachController.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class ForeachController
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<ForeachController guiclass="ForeachControlPanel" testclass="ForeachController" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="ForeachController.inputVal"/>
|
19
|
+
<stringProp name="ForeachController.returnVal"/>
|
20
|
+
<boolProp name="ForeachController.useSeparator">true</boolProp>
|
21
|
+
</ForeachController>)
|
22
|
+
EOS
|
23
|
+
update params
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def ftp_request(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::FtpRequest.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class FtpRequest
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<FTPSampler guiclass="FtpTestSamplerGui" testclass="FTPSampler" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="FTPSampler.server"/>
|
19
|
+
<stringProp name="FTPSampler.port"/>
|
20
|
+
<stringProp name="FTPSampler.filename"/>
|
21
|
+
<stringProp name="FTPSampler.localfilename"/>
|
22
|
+
<stringProp name="FTPSampler.inputdata"/>
|
23
|
+
<boolProp name="FTPSampler.binarymode">false</boolProp>
|
24
|
+
<boolProp name="FTPSampler.saveresponse">false</boolProp>
|
25
|
+
<boolProp name="FTPSampler.upload">false</boolProp>
|
26
|
+
<stringProp name="ConfigTestElement.username"/>
|
27
|
+
<stringProp name="ConfigTestElement.password"/>
|
28
|
+
</FTPSampler>)
|
29
|
+
EOS
|
30
|
+
update params
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def ftp_request_defaults(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::FtpRequestDefaults.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class FtpRequestDefaults
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<ConfigTestElement guiclass="FtpConfigGui" testclass="ConfigTestElement" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="FTPSampler.server"/>
|
19
|
+
<stringProp name="FTPSampler.port"/>
|
20
|
+
<stringProp name="FTPSampler.filename"/>
|
21
|
+
<stringProp name="FTPSampler.localfilename"/>
|
22
|
+
<stringProp name="FTPSampler.inputdata"/>
|
23
|
+
<boolProp name="FTPSampler.binarymode">false</boolProp>
|
24
|
+
<boolProp name="FTPSampler.saveresponse">false</boolProp>
|
25
|
+
<boolProp name="FTPSampler.upload">false</boolProp>
|
26
|
+
</ConfigTestElement>)
|
27
|
+
EOS
|
28
|
+
update params
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def gaussian_random_timer(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::GaussianRandomTimer.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class GaussianRandomTimer
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<GaussianRandomTimer guiclass="GaussianRandomTimerGui" testclass="GaussianRandomTimer" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="ConstantTimer.delay">300</stringProp>
|
19
|
+
<stringProp name="RandomTimer.range">100.0</stringProp>
|
20
|
+
</GaussianRandomTimer>)
|
21
|
+
EOS
|
22
|
+
update params
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def generate_summary_results(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::GenerateSummaryResults.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class GenerateSummaryResults
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<Summariser guiclass="SummariserGui" testclass="Summariser" testname="#{name}" enabled="true"/>)
|
18
|
+
EOS
|
19
|
+
update params
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def graph_results(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::GraphResults.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class GraphResults
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<ResultCollector guiclass="GraphVisualizer" testclass="ResultCollector" testname="#{name}" enabled="true">
|
18
|
+
<boolProp name="ResultCollector.error_logging">false</boolProp>
|
19
|
+
<objProp>
|
20
|
+
<name>saveConfig</name>
|
21
|
+
<value class="SampleSaveConfiguration">
|
22
|
+
<time>true</time>
|
23
|
+
<latency>true</latency>
|
24
|
+
<timestamp>true</timestamp>
|
25
|
+
<success>true</success>
|
26
|
+
<label>true</label>
|
27
|
+
<code>true</code>
|
28
|
+
<message>false</message>
|
29
|
+
<threadName>true</threadName>
|
30
|
+
<dataType>false</dataType>
|
31
|
+
<encoding>false</encoding>
|
32
|
+
<assertions>false</assertions>
|
33
|
+
<subresults>false</subresults>
|
34
|
+
<responseData>false</responseData>
|
35
|
+
<samplerData>false</samplerData>
|
36
|
+
<xml>false</xml>
|
37
|
+
<fieldNames>false</fieldNames>
|
38
|
+
<responseHeaders>false</responseHeaders>
|
39
|
+
<requestHeaders>false</requestHeaders>
|
40
|
+
<responseDataOnError>false</responseDataOnError>
|
41
|
+
<saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
|
42
|
+
<assertionsResultsToSave>0</assertionsResultsToSave>
|
43
|
+
<bytes>true</bytes>
|
44
|
+
<threadCounts>true</threadCounts>
|
45
|
+
<sampleCount>true</sampleCount>
|
46
|
+
</value>
|
47
|
+
</objProp>
|
48
|
+
<stringProp name="filename"/>
|
49
|
+
</ResultCollector>)
|
50
|
+
EOS
|
51
|
+
update params
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def html_assertion(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::HtmlAssertion.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class HtmlAssertion
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<HTMLAssertion guiclass="HTMLAssertionGui" testclass="HTMLAssertion" testname="#{name}" enabled="true">
|
18
|
+
<longProp name="html_assertion_error_threshold">0</longProp>
|
19
|
+
<longProp name="html_assertion_warning_threshold">0</longProp>
|
20
|
+
<stringProp name="html_assertion_doctype">omit</stringProp>
|
21
|
+
<boolProp name="html_assertion_errorsonly">false</boolProp>
|
22
|
+
<longProp name="html_assertion_format">0</longProp>
|
23
|
+
<stringProp name="html_assertion_filename"/>
|
24
|
+
</HTMLAssertion>)
|
25
|
+
EOS
|
26
|
+
update params
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def html_link_parser(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::HtmlLinkParser.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class HtmlLinkParser
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<AnchorModifier guiclass="AnchorModifierGui" testclass="AnchorModifier" testname="#{name}" enabled="true"/>)
|
18
|
+
EOS
|
19
|
+
update params
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|