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,38 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def jdbc_connection_configuration(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::JdbcConnectionConfiguration.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class JdbcConnectionConfiguration
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<JDBCDataSource guiclass="TestBeanGUI" testclass="JDBCDataSource" testname="#{name}" enabled="true">
|
18
|
+
<boolProp name="autocommit">true</boolProp>
|
19
|
+
<stringProp name="checkQuery">Select 1</stringProp>
|
20
|
+
<stringProp name="connectionAge">5000</stringProp>
|
21
|
+
<stringProp name="dataSource"/>
|
22
|
+
<stringProp name="dbUrl"/>
|
23
|
+
<stringProp name="driver"/>
|
24
|
+
<boolProp name="keepAlive">true</boolProp>
|
25
|
+
<stringProp name="password"/>
|
26
|
+
<stringProp name="poolMax">10</stringProp>
|
27
|
+
<stringProp name="timeout">10000</stringProp>
|
28
|
+
<stringProp name="transactionIsolation">DEFAULT</stringProp>
|
29
|
+
<stringProp name="trimInterval">60000</stringProp>
|
30
|
+
<stringProp name="username"/>
|
31
|
+
</JDBCDataSource>)
|
32
|
+
EOS
|
33
|
+
update params
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def jdbc_postprocessor(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::JdbcPostprocessor.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class JdbcPostprocessor
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<JDBCPostProcessor guiclass="TestBeanGUI" testclass="JDBCPostProcessor" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="dataSource"/>
|
19
|
+
<stringProp name="query"/>
|
20
|
+
<stringProp name="queryArguments"/>
|
21
|
+
<stringProp name="queryArgumentsTypes"/>
|
22
|
+
<stringProp name="queryType">Select Statement</stringProp>
|
23
|
+
<stringProp name="resultVariable"/>
|
24
|
+
<stringProp name="variableNames"/>
|
25
|
+
</JDBCPostProcessor>)
|
26
|
+
EOS
|
27
|
+
update params
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def jdbc_preprocessor(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::JdbcPreprocessor.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class JdbcPreprocessor
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<JDBCPreProcessor guiclass="TestBeanGUI" testclass="JDBCPreProcessor" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="dataSource"/>
|
19
|
+
<stringProp name="query"/>
|
20
|
+
<stringProp name="queryArguments"/>
|
21
|
+
<stringProp name="queryArgumentsTypes"/>
|
22
|
+
<stringProp name="queryType">Select Statement</stringProp>
|
23
|
+
<stringProp name="resultVariable"/>
|
24
|
+
<stringProp name="variableNames"/>
|
25
|
+
</JDBCPreProcessor>)
|
26
|
+
EOS
|
27
|
+
update params
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def jdbc_request(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::JdbcRequest.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class JdbcRequest
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<JDBCSampler guiclass="TestBeanGUI" testclass="JDBCSampler" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="dataSource"/>
|
19
|
+
<stringProp name="query"/>
|
20
|
+
<stringProp name="queryArguments"/>
|
21
|
+
<stringProp name="queryArgumentsTypes"/>
|
22
|
+
<stringProp name="queryType">Select Statement</stringProp>
|
23
|
+
<stringProp name="resultVariable"/>
|
24
|
+
<stringProp name="variableNames"/>
|
25
|
+
</JDBCSampler>)
|
26
|
+
EOS
|
27
|
+
update params
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def jms_pointtopoint(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::JmsPointtopoint.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class JmsPointtopoint
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<JMSSampler guiclass="JMSSamplerGui" testclass="JMSSampler" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="JMSSampler.queueconnectionfactory"/>
|
19
|
+
<stringProp name="JMSSampler.SendQueue"/>
|
20
|
+
<stringProp name="JMSSampler.ReceiveQueue"/>
|
21
|
+
<boolProp name="JMSSampler.isFireAndForget">true</boolProp>
|
22
|
+
<boolProp name="JMSSampler.isNonPersistent">false</boolProp>
|
23
|
+
<boolProp name="JMSSampler.useReqMsgIdAsCorrelId">false</boolProp>
|
24
|
+
<stringProp name="JMSSampler.timeout"/>
|
25
|
+
<stringProp name="HTTPSamper.xml_data"/>
|
26
|
+
<stringProp name="JMSSampler.initialContextFactory"/>
|
27
|
+
<stringProp name="JMSSampler.contextProviderUrl"/>
|
28
|
+
<elementProp name="JMSSampler.jndiProperties" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="#{name}" enabled="true">
|
29
|
+
<collectionProp name="Arguments.arguments"/>
|
30
|
+
</elementProp>
|
31
|
+
<elementProp name="arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="#{name}" enabled="true">
|
32
|
+
<collectionProp name="Arguments.arguments"/>
|
33
|
+
</elementProp>
|
34
|
+
</JMSSampler>)
|
35
|
+
EOS
|
36
|
+
update params
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def jms_publisher(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::JmsPublisher.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class JmsPublisher
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<PublisherSampler guiclass="JMSPublisherGui" testclass="PublisherSampler" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="jms.jndi_properties">false</stringProp>
|
19
|
+
<stringProp name="jms.initial_context_factory"/>
|
20
|
+
<stringProp name="jms.provider_url"/>
|
21
|
+
<stringProp name="jms.connection_factory"/>
|
22
|
+
<stringProp name="jms.topic"/>
|
23
|
+
<stringProp name="jms.security_principle"/>
|
24
|
+
<stringProp name="jms.security_credentials"/>
|
25
|
+
<stringProp name="jms.text_message"/>
|
26
|
+
<stringProp name="jms.input_file"/>
|
27
|
+
<stringProp name="jms.random_path"/>
|
28
|
+
<stringProp name="jms.config_choice">jms_use_text</stringProp>
|
29
|
+
<stringProp name="jms.config_msg_type">jms_text_message</stringProp>
|
30
|
+
<stringProp name="jms.iterations">1</stringProp>
|
31
|
+
<boolProp name="jms.authenticate">false</boolProp>
|
32
|
+
<elementProp name="jms.jmsProperties" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="#{name}" enabled="true">
|
33
|
+
<collectionProp name="Arguments.arguments"/>
|
34
|
+
</elementProp>
|
35
|
+
</PublisherSampler>)
|
36
|
+
EOS
|
37
|
+
update params
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def jms_subscriber(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::JmsSubscriber.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class JmsSubscriber
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<SubscriberSampler guiclass="JMSSubscriberGui" testclass="SubscriberSampler" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="jms.jndi_properties">false</stringProp>
|
19
|
+
<stringProp name="jms.initial_context_factory"/>
|
20
|
+
<stringProp name="jms.provider_url"/>
|
21
|
+
<stringProp name="jms.connection_factory"/>
|
22
|
+
<stringProp name="jms.topic"/>
|
23
|
+
<stringProp name="jms.security_principle"/>
|
24
|
+
<stringProp name="jms.security_credentials"/>
|
25
|
+
<boolProp name="jms.authenticate">false</boolProp>
|
26
|
+
<stringProp name="jms.iterations">1</stringProp>
|
27
|
+
<stringProp name="jms.read_response">true</stringProp>
|
28
|
+
<stringProp name="jms.client_choice">jms_subscriber_receive</stringProp>
|
29
|
+
</SubscriberSampler>)
|
30
|
+
EOS
|
31
|
+
update params
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def jsr223_assertion(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::Jsr223Assertion.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class Jsr223Assertion
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="scriptLanguage"/>
|
19
|
+
<stringProp name="parameters"/>
|
20
|
+
<stringProp name="filename"/>
|
21
|
+
<stringProp name="cacheKey"/>
|
22
|
+
<stringProp name="script"/>
|
23
|
+
</JSR223Assertion>)
|
24
|
+
EOS
|
25
|
+
update params
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def jsr223_listener(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::Jsr223Listener.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class Jsr223Listener
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<JSR223Listener guiclass="TestBeanGUI" testclass="JSR223Listener" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="cacheKey"/>
|
19
|
+
<stringProp name="filename"/>
|
20
|
+
<stringProp name="parameters"/>
|
21
|
+
<stringProp name="script"/>
|
22
|
+
<stringProp name="scriptLanguage"/>
|
23
|
+
</JSR223Listener>)
|
24
|
+
EOS
|
25
|
+
update params
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def jsr223_postprocessor(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::Jsr223Postprocessor.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class Jsr223Postprocessor
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="cacheKey"/>
|
19
|
+
<stringProp name="filename"/>
|
20
|
+
<stringProp name="parameters"/>
|
21
|
+
<stringProp name="script"/>
|
22
|
+
<stringProp name="scriptLanguage"/>
|
23
|
+
</JSR223PostProcessor>)
|
24
|
+
EOS
|
25
|
+
update params
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def jsr223_preprocessor(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::Jsr223Preprocessor.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class Jsr223Preprocessor
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<JSR223PreProcessor guiclass="TestBeanGUI" testclass="JSR223PreProcessor" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="cacheKey"/>
|
19
|
+
<stringProp name="filename"/>
|
20
|
+
<stringProp name="parameters"/>
|
21
|
+
<stringProp name="script"/>
|
22
|
+
<stringProp name="scriptLanguage"/>
|
23
|
+
</JSR223PreProcessor>)
|
24
|
+
EOS
|
25
|
+
update params
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def jsr223_sampler(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::Jsr223Sampler.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class Jsr223Sampler
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="cacheKey"/>
|
19
|
+
<stringProp name="filename"/>
|
20
|
+
<stringProp name="parameters"/>
|
21
|
+
<stringProp name="script"/>
|
22
|
+
<stringProp name="scriptLanguage"/>
|
23
|
+
</JSR223Sampler>)
|
24
|
+
EOS
|
25
|
+
update params
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module Gridinit
|
2
|
+
module Jmeter
|
3
|
+
|
4
|
+
class DSL
|
5
|
+
def jsr223_timer(params={}, &block)
|
6
|
+
node = Gridinit::Jmeter::Jsr223Timer.new(params)
|
7
|
+
attach_node(node, &block)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class Jsr223Timer
|
12
|
+
attr_accessor :doc
|
13
|
+
include Helper
|
14
|
+
|
15
|
+
def initialize(name, params={})
|
16
|
+
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
+
<JSR223Timer guiclass="TestBeanGUI" testclass="JSR223Timer" testname="#{name}" enabled="true">
|
18
|
+
<stringProp name="cacheKey"/>
|
19
|
+
<stringProp name="filename"/>
|
20
|
+
<stringProp name="parameters"/>
|
21
|
+
<stringProp name="script"/>
|
22
|
+
<stringProp name="scriptLanguage"/>
|
23
|
+
</JSR223Timer>)
|
24
|
+
EOS
|
25
|
+
update params
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
end
|