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,29 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def beanshell_sampler(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::BeanshellSampler.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class BeanshellSampler
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="BeanShellSampler.query"/>
|
19
|
+
<stringProp name="BeanShellSampler.filename"/>
|
20
|
+
<stringProp name="BeanShellSampler.parameters"/>
|
21
|
+
<boolProp name="BeanShellSampler.resetInterpreter">false</boolProp>
|
22
|
+
</BeanShellSampler>)
|
23
|
+
EOS
|
24
|
+
update params
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def beanshell_timer(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::BeanshellTimer.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class BeanshellTimer
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<BeanShellTimer guiclass="TestBeanGUI" testclass="BeanShellTimer" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="filename"/>
|
19
|
+
<stringProp name="parameters"/>
|
20
|
+
<boolProp name="resetInterpreter">false</boolProp>
|
21
|
+
<stringProp name="script"/>
|
22
|
+
</BeanShellTimer>)
|
23
|
+
EOS
|
24
|
+
update params
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def bsf_assertion(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::BsfAssertion.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class BsfAssertion
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<BSFAssertion guiclass="TestBeanGUI" testclass="BSFAssertion" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="filename"/>
|
19
|
+
<stringProp name="parameters"/>
|
20
|
+
<stringProp name="script"/>
|
21
|
+
<stringProp name="scriptLanguage"/>
|
22
|
+
</BSFAssertion>)
|
23
|
+
EOS
|
24
|
+
update params
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def bsf_listener(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::BsfListener.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class BsfListener
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<BSFListener guiclass="TestBeanGUI" testclass="BSFListener" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="filename"/>
|
19
|
+
<stringProp name="parameters"/>
|
20
|
+
<stringProp name="script"/>
|
21
|
+
<stringProp name="scriptLanguage"/>
|
22
|
+
</BSFListener>)
|
23
|
+
EOS
|
24
|
+
update params
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def bsf_postprocessor(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::BsfPostprocessor.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class BsfPostprocessor
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<BSFPostProcessor guiclass="TestBeanGUI" testclass="BSFPostProcessor" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="filename"/>
|
19
|
+
<stringProp name="parameters"/>
|
20
|
+
<stringProp name="script"/>
|
21
|
+
<stringProp name="scriptLanguage"/>
|
22
|
+
</BSFPostProcessor>)
|
23
|
+
EOS
|
24
|
+
update params
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def bsf_preprocessor(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::BsfPreprocessor.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class BsfPreprocessor
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<BSFPreProcessor guiclass="TestBeanGUI" testclass="BSFPreProcessor" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="filename"/>
|
19
|
+
<stringProp name="parameters"/>
|
20
|
+
<stringProp name="script"/>
|
21
|
+
<stringProp name="scriptLanguage"/>
|
22
|
+
</BSFPreProcessor>)
|
23
|
+
EOS
|
24
|
+
update params
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def bsf_sampler(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::BsfSampler.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class BsfSampler
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<BSFSampler guiclass="TestBeanGUI" testclass="BSFSampler" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="filename"/>
|
19
|
+
<stringProp name="parameters"/>
|
20
|
+
<stringProp name="script"/>
|
21
|
+
<stringProp name="scriptLanguage"/>
|
22
|
+
</BSFSampler>)
|
23
|
+
EOS
|
24
|
+
update params
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def bsf_timer(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::BsfTimer.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class BsfTimer
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<BSFTimer guiclass="TestBeanGUI" testclass="BSFTimer" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="filename"/>
|
19
|
+
<stringProp name="parameters"/>
|
20
|
+
<stringProp name="script"/>
|
21
|
+
<stringProp name="scriptLanguage"/>
|
22
|
+
</BSFTimer>)
|
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 compare_assertion(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::CompareAssertion.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class CompareAssertion
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<CompareAssertion guiclass="TestBeanGUI" testclass="CompareAssertion" testname="#{name}" enabled="true">
|
18
|
+
<boolProp name="compareContent">true</boolProp>
|
19
|
+
<longProp name="compareTime">-1</longProp>
|
20
|
+
<collectionProp name="stringsToSkip"/>
|
21
|
+
</CompareAssertion>)
|
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 comparison_assertion_visualizer(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::ComparisonAssertionVisualizer.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class ComparisonAssertionVisualizer
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<ResultCollector guiclass="ComparisonVisualizer" 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 constant_throughput_timer(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::ConstantThroughputTimer.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class ConstantThroughputTimer
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<ConstantThroughputTimer guiclass="TestBeanGUI" testclass="ConstantThroughputTimer" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="calcMode">this thread only</stringProp>
|
19
|
+
<doubleProp>
|
20
|
+
<name>throughput</name>
|
21
|
+
<value>0.0</value>
|
22
|
+
<savedValue>0.0</savedValue>
|
23
|
+
</doubleProp>
|
24
|
+
</ConstantThroughputTimer>)
|
25
|
+
EOS
|
26
|
+
update params
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def constant_timer(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::ConstantTimer.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class ConstantTimer
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="ConstantTimer.delay">300</stringProp>
|
19
|
+
</ConstantTimer>)
|
20
|
+
EOS
|
21
|
+
update params
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def counter(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::Counter.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class Counter
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<CounterConfig guiclass="CounterConfigGui" testclass="CounterConfig" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="CounterConfig.start"/>
|
19
|
+
<stringProp name="CounterConfig.end"/>
|
20
|
+
<stringProp name="CounterConfig.incr"/>
|
21
|
+
<stringProp name="CounterConfig.name"/>
|
22
|
+
<stringProp name="CounterConfig.format"/>
|
23
|
+
<boolProp name="CounterConfig.per_user">false</boolProp>
|
24
|
+
</CounterConfig>)
|
25
|
+
EOS
|
26
|
+
update params
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def cssjquery_extractor(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::CssjqueryExtractor.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class CssjqueryExtractor
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<HtmlExtractor guiclass="HtmlExtractorGui" testclass="HtmlExtractor" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="HtmlExtractor.refname"/>
|
19
|
+
<stringProp name="HtmlExtractor.expr"/>
|
20
|
+
<stringProp name="HtmlExtractor.attribute"/>
|
21
|
+
<stringProp name="HtmlExtractor.default"/>
|
22
|
+
<stringProp name="HtmlExtractor.match_number"/>
|
23
|
+
<stringProp name="HtmlExtractor.extractor_impl"/>
|
24
|
+
</HtmlExtractor>)
|
25
|
+
EOS
|
26
|
+
update params
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|