gridinit-jmeter 0.3.2 → 1.0.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -1
- data/README.md +51 -72
- data/examples/basic_assertion.rb +6 -6
- data/examples/basic_auth.rb +5 -5
- data/examples/basic_cache.rb +5 -5
- data/examples/basic_cookies.rb +5 -5
- data/examples/basic_extract.rb +4 -10
- data/examples/basic_gc_results.rb +12 -9
- data/examples/basic_google.rb +3 -3
- data/examples/basic_grid.rb +3 -6
- data/examples/basic_header.rb +12 -10
- data/examples/basic_ldap_ext.rb +11 -12
- data/examples/basic_post.rb +5 -6
- data/examples/basic_query_params.rb +3 -3
- data/examples/basic_think_time.rb +7 -4
- data/examples/basic_throughput_shaping_timer.rb +4 -4
- data/examples/etsy_login_browse.rb +21 -21
- data/lib/gridinit-jmeter/DSL.md +237 -0
- data/lib/gridinit-jmeter/{idl → dsl}/access_log_sampler.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/aggregate_graph.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/aggregate_report.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/ajp13_sampler.rb +5 -3
- data/lib/gridinit-jmeter/{idl → dsl}/assertion_results.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/beanshell_assertion.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/beanshell_listener.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/beanshell_postprocessor.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/beanshell_preprocessor.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/beanshell_sampler.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/beanshell_timer.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/bsf_assertion.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/bsf_listener.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/bsf_postprocessor.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/bsf_preprocessor.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/bsf_sampler.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/bsf_timer.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/compare_assertion.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/comparison_assertion_visualizer.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/constant_throughput_timer.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/constant_timer.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/counter.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/cssjquery_extractor.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/csv_data_set_config.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/debug_postprocessor.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/debug_sampler.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/distribution_graphalpha.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/duration_assertion.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/foreach_controller.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/ftp_request.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/ftp_request_defaults.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/gaussian_random_timer.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/generate_summary_results.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/graph_results.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/html_assertion.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/html_link_parser.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/html_parameter_mask.rb +4 -2
- data/lib/gridinit-jmeter/dsl/http_authorization_manager.rb +36 -0
- data/lib/gridinit-jmeter/{idl → dsl}/http_cache_manager.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/http_cookie_manager.rb +5 -2
- data/lib/gridinit-jmeter/{idl → dsl}/http_header_manager.rb +10 -3
- data/lib/gridinit-jmeter/{idl → dsl}/http_request.rb +5 -3
- data/lib/gridinit-jmeter/{idl → dsl}/http_request_defaults.rb +15 -4
- data/lib/gridinit-jmeter/{idl → dsl}/http_url_rewriting_modifier.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/if_controller.rb +5 -2
- data/lib/gridinit-jmeter/{idl → dsl}/include_controller.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/java_request.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/java_request_defaults.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/jdbc_connection_configuration.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/jdbc_postprocessor.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/jdbc_preprocessor.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/jdbc_request.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/jms_pointtopoint.rb +6 -4
- data/lib/gridinit-jmeter/{idl → dsl}/jms_publisher.rb +5 -3
- data/lib/gridinit-jmeter/{idl → dsl}/jms_subscriber.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/jsr223_assertion.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/jsr223_listener.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/jsr223_postprocessor.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/jsr223_preprocessor.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/jsr223_sampler.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/jsr223_timer.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/junit_request.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/keystore_configuration.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/ldap_extended_request.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/ldap_extended_request_defaults.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/ldap_request.rb +5 -3
- data/lib/gridinit-jmeter/{idl → dsl}/ldap_request_defaults.rb +13 -4
- data/lib/gridinit-jmeter/{idl → dsl}/login_config_element.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/loop_controller.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/mail_reader_sampler.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/mailer_visualizer.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/md5hex_assertion.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/module_controller.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/monitor_results.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/once_only_controller.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/os_process_sampler.rb +6 -4
- data/lib/gridinit-jmeter/{idl → dsl}/poisson_random_timer.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/random_controller.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/random_order_controller.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/random_variable.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/recording_controller.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/regex_user_parameters.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/regular_expression_extractor.rb +5 -2
- data/lib/gridinit-jmeter/{idl → dsl}/response_assertion.rb +8 -3
- data/lib/gridinit-jmeter/{idl → dsl}/response_time_graph.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/result_status_action_handler.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/runtime_controller.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/save_responses_to_a_file.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/simple_config_element.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/simple_controller.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/simple_data_writer.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/smime_assertion.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/smtp_sampler.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/soapxmlrpc_request.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/spline_visualizer.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/summary_report.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/switch_controller.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/synchronizing_timer.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/tcp_sampler.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/tcp_sampler_config.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/test_action.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/test_plan.rb +5 -3
- data/lib/gridinit-jmeter/{idl → dsl}/thread_group.rb +5 -3
- data/lib/gridinit-jmeter/{idl → dsl}/throughput_controller.rb +5 -3
- data/lib/gridinit-jmeter/{idl → dsl}/transaction_controller.rb +6 -3
- data/lib/gridinit-jmeter/{idl → dsl}/uniform_random_timer.rb +4 -2
- data/lib/gridinit-jmeter/dsl/user_defined_variables.rb +35 -0
- data/lib/gridinit-jmeter/{idl → dsl}/user_parameters.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/view_results_in_table.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/view_results_tree.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/while_controller.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/xml_assertion.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/xml_schema_assertion.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/xpath_assertion.rb +4 -2
- data/lib/gridinit-jmeter/{idl → dsl}/xpath_extractor.rb +4 -2
- data/lib/gridinit-jmeter/dsl.rb +170 -187
- data/lib/gridinit-jmeter/helpers/helper.rb +43 -0
- data/lib/gridinit-jmeter/helpers/parser.rb +109 -0
- data/lib/gridinit-jmeter/idl.rb +16 -6
- data/lib/gridinit-jmeter/idl.xml +54 -11
- data/lib/gridinit-jmeter/{listeners → plugins}/gc_console_status_logger.rb +0 -0
- data/lib/gridinit-jmeter/{listeners → plugins}/gc_latencies_over_time.rb +0 -0
- data/lib/gridinit-jmeter/{listeners → plugins}/gc_response_codes_per_second.rb +0 -0
- data/lib/gridinit-jmeter/{listeners → plugins}/gc_response_times_distribution.rb +0 -0
- data/lib/gridinit-jmeter/{listeners → plugins}/gc_response_times_over_time.rb +0 -0
- data/lib/gridinit-jmeter/{listeners → plugins}/gc_response_times_percentiles.rb +0 -0
- data/lib/gridinit-jmeter/{listeners → plugins}/gc_transactions_per_second.rb +0 -0
- data/lib/gridinit-jmeter/{timers/gc_throughput_shaping_timer.rb → plugins/gc_variable_throughput_timer.rb} +1 -1
- data/lib/gridinit-jmeter/version.rb +1 -1
- data/lib/gridinit-jmeter.rb +6 -105
- data/spec/dsl_spec.rb +377 -82
- metadata +131 -174
- data/examples/basic_proxy.rb +0 -8
- data/examples/basic_results.rb +0 -22
- data/examples/basic_run.rb +0 -12
- data/examples/basic_simple_data_writer.rb +0 -14
- data/examples/basic_stdout.rb +0 -8
- data/examples/basic_test_data.rb +0 -15
- data/examples/basic_testplan.jmx +0 -138
- data/examples/basic_testplan.rb +0 -44
- data/examples/jbhifi_now_search.rb +0 -94
- data/lib/gridinit-jmeter/assertions/response_assertion.rb +0 -55
- data/lib/gridinit-jmeter/config/auth_manager.rb +0 -26
- data/lib/gridinit-jmeter/config/cache_manager.rb +0 -20
- data/lib/gridinit-jmeter/config/cookie_manager.rb +0 -21
- data/lib/gridinit-jmeter/config/counter_config.rb +0 -24
- data/lib/gridinit-jmeter/config/header_manager.rb +0 -26
- data/lib/gridinit-jmeter/config/random_variable.rb +0 -24
- data/lib/gridinit-jmeter/config/request_defaults.rb +0 -31
- data/lib/gridinit-jmeter/config/user_defined_variable.rb +0 -25
- data/lib/gridinit-jmeter/controllers/if_controller.rb +0 -20
- data/lib/gridinit-jmeter/controllers/interleave.rb +0 -18
- data/lib/gridinit-jmeter/controllers/loop_controller.rb +0 -19
- data/lib/gridinit-jmeter/controllers/once_only.rb +0 -17
- data/lib/gridinit-jmeter/controllers/random_order.rb +0 -16
- data/lib/gridinit-jmeter/controllers/simple.rb +0 -17
- data/lib/gridinit-jmeter/controllers/switch.rb +0 -20
- data/lib/gridinit-jmeter/controllers/throughput.rb +0 -26
- data/lib/gridinit-jmeter/controllers/transaction.rb +0 -19
- data/lib/gridinit-jmeter/controllers/while_controller.rb +0 -18
- data/lib/gridinit-jmeter/helpers/dsl_helper.rb +0 -21
- data/lib/gridinit-jmeter/idl/http_authorization_manager.rb +0 -26
- data/lib/gridinit-jmeter/idl/user_defined_variables.rb +0 -26
- data/lib/gridinit-jmeter/listeners/aggregate_report.rb +0 -47
- data/lib/gridinit-jmeter/listeners/graph_visualizer.rb +0 -46
- data/lib/gridinit-jmeter/listeners/response_time_graph_visualizer.rb +0 -47
- data/lib/gridinit-jmeter/listeners/simple_data_writer.rb +0 -51
- data/lib/gridinit-jmeter/listeners/stat_visualizer.rb +0 -46
- data/lib/gridinit-jmeter/listeners/summary_report.rb +0 -46
- data/lib/gridinit-jmeter/listeners/table_visualizer.rb +0 -46
- data/lib/gridinit-jmeter/listeners/view_results_full_visualizer.rb +0 -57
- data/lib/gridinit-jmeter/post_processors/regex_extractor.rb +0 -34
- data/lib/gridinit-jmeter/post_processors/xpath_extractor.rb +0 -23
- data/lib/gridinit-jmeter/pre_processors/bean_shell_pre_processor.rb +0 -23
- data/lib/gridinit-jmeter/samplers/http_sampler.rb +0 -99
- data/lib/gridinit-jmeter/samplers/ldap_ext_sampler.rb +0 -36
- data/lib/gridinit-jmeter/samplers/soap_sampler.rb +0 -26
- data/lib/gridinit-jmeter/test_plan/test_plan.rb +0 -23
- data/lib/gridinit-jmeter/threads/thread_group.rb +0 -30
- data/lib/gridinit-jmeter/timers/gaussian_random_timer.rb +0 -18
@@ -12,9 +12,10 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'JdbcPostprocessor'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<JDBCPostProcessor guiclass="TestBeanGUI" testclass="JDBCPostProcessor" testname="#{name}" enabled="true">
|
18
|
+
<JDBCPostProcessor guiclass="TestBeanGUI" testclass="JDBCPostProcessor" testname="#{params[:name]}" enabled="true">
|
18
19
|
<stringProp name="dataSource"/>
|
19
20
|
<stringProp name="query"/>
|
20
21
|
<stringProp name="queryArguments"/>
|
@@ -25,6 +26,7 @@ module Gridinit
|
|
25
26
|
</JDBCPostProcessor>)
|
26
27
|
EOS
|
27
28
|
update params
|
29
|
+
update_at_xpath params if params[:update_at_xpath]
|
28
30
|
end
|
29
31
|
end
|
30
32
|
|
@@ -12,9 +12,10 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'JdbcPreprocessor'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<JDBCPreProcessor guiclass="TestBeanGUI" testclass="JDBCPreProcessor" testname="#{name}" enabled="true">
|
18
|
+
<JDBCPreProcessor guiclass="TestBeanGUI" testclass="JDBCPreProcessor" testname="#{params[:name]}" enabled="true">
|
18
19
|
<stringProp name="dataSource"/>
|
19
20
|
<stringProp name="query"/>
|
20
21
|
<stringProp name="queryArguments"/>
|
@@ -25,6 +26,7 @@ module Gridinit
|
|
25
26
|
</JDBCPreProcessor>)
|
26
27
|
EOS
|
27
28
|
update params
|
29
|
+
update_at_xpath params if params[:update_at_xpath]
|
28
30
|
end
|
29
31
|
end
|
30
32
|
|
@@ -12,9 +12,10 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'JdbcRequest'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<JDBCSampler guiclass="TestBeanGUI" testclass="JDBCSampler" testname="#{name}" enabled="true">
|
18
|
+
<JDBCSampler guiclass="TestBeanGUI" testclass="JDBCSampler" testname="#{params[:name]}" enabled="true">
|
18
19
|
<stringProp name="dataSource"/>
|
19
20
|
<stringProp name="query"/>
|
20
21
|
<stringProp name="queryArguments"/>
|
@@ -25,6 +26,7 @@ module Gridinit
|
|
25
26
|
</JDBCSampler>)
|
26
27
|
EOS
|
27
28
|
update params
|
29
|
+
update_at_xpath params if params[:update_at_xpath]
|
28
30
|
end
|
29
31
|
end
|
30
32
|
|
@@ -12,9 +12,10 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'JmsPointtopoint'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<JMSSampler guiclass="JMSSamplerGui" testclass="JMSSampler" testname="#{name}" enabled="true">
|
18
|
+
<JMSSampler guiclass="JMSSamplerGui" testclass="JMSSampler" testname="#{params[:name]}" enabled="true">
|
18
19
|
<stringProp name="JMSSampler.queueconnectionfactory"/>
|
19
20
|
<stringProp name="JMSSampler.SendQueue"/>
|
20
21
|
<stringProp name="JMSSampler.ReceiveQueue"/>
|
@@ -25,15 +26,16 @@ module Gridinit
|
|
25
26
|
<stringProp name="HTTPSamper.xml_data"/>
|
26
27
|
<stringProp name="JMSSampler.initialContextFactory"/>
|
27
28
|
<stringProp name="JMSSampler.contextProviderUrl"/>
|
28
|
-
<elementProp name="JMSSampler.jndiProperties" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="#{name}" enabled="true">
|
29
|
+
<elementProp name="JMSSampler.jndiProperties" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="#{params[:name]}" enabled="true">
|
29
30
|
<collectionProp name="Arguments.arguments"/>
|
30
31
|
</elementProp>
|
31
|
-
<elementProp name="arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="#{name}" enabled="true">
|
32
|
+
<elementProp name="arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="#{params[:name]}" enabled="true">
|
32
33
|
<collectionProp name="Arguments.arguments"/>
|
33
34
|
</elementProp>
|
34
35
|
</JMSSampler>)
|
35
36
|
EOS
|
36
37
|
update params
|
38
|
+
update_at_xpath params if params[:update_at_xpath]
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
@@ -12,9 +12,10 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'JmsPublisher'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<PublisherSampler guiclass="JMSPublisherGui" testclass="PublisherSampler" testname="#{name}" enabled="true">
|
18
|
+
<PublisherSampler guiclass="JMSPublisherGui" testclass="PublisherSampler" testname="#{params[:name]}" enabled="true">
|
18
19
|
<stringProp name="jms.jndi_properties">false</stringProp>
|
19
20
|
<stringProp name="jms.initial_context_factory"/>
|
20
21
|
<stringProp name="jms.provider_url"/>
|
@@ -29,12 +30,13 @@ module Gridinit
|
|
29
30
|
<stringProp name="jms.config_msg_type">jms_text_message</stringProp>
|
30
31
|
<stringProp name="jms.iterations">1</stringProp>
|
31
32
|
<boolProp name="jms.authenticate">false</boolProp>
|
32
|
-
<elementProp name="jms.jmsProperties" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="#{name}" enabled="true">
|
33
|
+
<elementProp name="jms.jmsProperties" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="#{params[:name]}" enabled="true">
|
33
34
|
<collectionProp name="Arguments.arguments"/>
|
34
35
|
</elementProp>
|
35
36
|
</PublisherSampler>)
|
36
37
|
EOS
|
37
38
|
update params
|
39
|
+
update_at_xpath params if params[:update_at_xpath]
|
38
40
|
end
|
39
41
|
end
|
40
42
|
|
@@ -12,9 +12,10 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'JmsSubscriber'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<SubscriberSampler guiclass="JMSSubscriberGui" testclass="SubscriberSampler" testname="#{name}" enabled="true">
|
18
|
+
<SubscriberSampler guiclass="JMSSubscriberGui" testclass="SubscriberSampler" testname="#{params[:name]}" enabled="true">
|
18
19
|
<stringProp name="jms.jndi_properties">false</stringProp>
|
19
20
|
<stringProp name="jms.initial_context_factory"/>
|
20
21
|
<stringProp name="jms.provider_url"/>
|
@@ -29,6 +30,7 @@ module Gridinit
|
|
29
30
|
</SubscriberSampler>)
|
30
31
|
EOS
|
31
32
|
update params
|
33
|
+
update_at_xpath params if params[:update_at_xpath]
|
32
34
|
end
|
33
35
|
end
|
34
36
|
|
@@ -12,9 +12,10 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'Jsr223Assertion'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="#{name}" enabled="true">
|
18
|
+
<JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="#{params[:name]}" enabled="true">
|
18
19
|
<stringProp name="scriptLanguage"/>
|
19
20
|
<stringProp name="parameters"/>
|
20
21
|
<stringProp name="filename"/>
|
@@ -23,6 +24,7 @@ module Gridinit
|
|
23
24
|
</JSR223Assertion>)
|
24
25
|
EOS
|
25
26
|
update params
|
27
|
+
update_at_xpath params if params[:update_at_xpath]
|
26
28
|
end
|
27
29
|
end
|
28
30
|
|
@@ -12,9 +12,10 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'Jsr223Listener'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<JSR223Listener guiclass="TestBeanGUI" testclass="JSR223Listener" testname="#{name}" enabled="true">
|
18
|
+
<JSR223Listener guiclass="TestBeanGUI" testclass="JSR223Listener" testname="#{params[:name]}" enabled="true">
|
18
19
|
<stringProp name="cacheKey"/>
|
19
20
|
<stringProp name="filename"/>
|
20
21
|
<stringProp name="parameters"/>
|
@@ -23,6 +24,7 @@ module Gridinit
|
|
23
24
|
</JSR223Listener>)
|
24
25
|
EOS
|
25
26
|
update params
|
27
|
+
update_at_xpath params if params[:update_at_xpath]
|
26
28
|
end
|
27
29
|
end
|
28
30
|
|
@@ -12,9 +12,10 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'Jsr223Postprocessor'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="#{name}" enabled="true">
|
18
|
+
<JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="#{params[:name]}" enabled="true">
|
18
19
|
<stringProp name="cacheKey"/>
|
19
20
|
<stringProp name="filename"/>
|
20
21
|
<stringProp name="parameters"/>
|
@@ -23,6 +24,7 @@ module Gridinit
|
|
23
24
|
</JSR223PostProcessor>)
|
24
25
|
EOS
|
25
26
|
update params
|
27
|
+
update_at_xpath params if params[:update_at_xpath]
|
26
28
|
end
|
27
29
|
end
|
28
30
|
|
@@ -12,9 +12,10 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'Jsr223Preprocessor'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<JSR223PreProcessor guiclass="TestBeanGUI" testclass="JSR223PreProcessor" testname="#{name}" enabled="true">
|
18
|
+
<JSR223PreProcessor guiclass="TestBeanGUI" testclass="JSR223PreProcessor" testname="#{params[:name]}" enabled="true">
|
18
19
|
<stringProp name="cacheKey"/>
|
19
20
|
<stringProp name="filename"/>
|
20
21
|
<stringProp name="parameters"/>
|
@@ -23,6 +24,7 @@ module Gridinit
|
|
23
24
|
</JSR223PreProcessor>)
|
24
25
|
EOS
|
25
26
|
update params
|
27
|
+
update_at_xpath params if params[:update_at_xpath]
|
26
28
|
end
|
27
29
|
end
|
28
30
|
|
@@ -12,9 +12,10 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'Jsr223Sampler'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="#{name}" enabled="true">
|
18
|
+
<JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="#{params[:name]}" enabled="true">
|
18
19
|
<stringProp name="cacheKey"/>
|
19
20
|
<stringProp name="filename"/>
|
20
21
|
<stringProp name="parameters"/>
|
@@ -23,6 +24,7 @@ module Gridinit
|
|
23
24
|
</JSR223Sampler>)
|
24
25
|
EOS
|
25
26
|
update params
|
27
|
+
update_at_xpath params if params[:update_at_xpath]
|
26
28
|
end
|
27
29
|
end
|
28
30
|
|
@@ -12,9 +12,10 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'Jsr223Timer'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<JSR223Timer guiclass="TestBeanGUI" testclass="JSR223Timer" testname="#{name}" enabled="true">
|
18
|
+
<JSR223Timer guiclass="TestBeanGUI" testclass="JSR223Timer" testname="#{params[:name]}" enabled="true">
|
18
19
|
<stringProp name="cacheKey"/>
|
19
20
|
<stringProp name="filename"/>
|
20
21
|
<stringProp name="parameters"/>
|
@@ -23,6 +24,7 @@ module Gridinit
|
|
23
24
|
</JSR223Timer>)
|
24
25
|
EOS
|
25
26
|
update params
|
27
|
+
update_at_xpath params if params[:update_at_xpath]
|
26
28
|
end
|
27
29
|
end
|
28
30
|
|
@@ -12,9 +12,10 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'JunitRequest'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<JUnitSampler guiclass="JUnitTestSamplerGui" testclass="JUnitSampler" testname="#{name}" enabled="true">
|
18
|
+
<JUnitSampler guiclass="JUnitTestSamplerGui" testclass="JUnitSampler" testname="#{params[:name]}" enabled="true">
|
18
19
|
<stringProp name="junitSampler.classname">test.RerunTest</stringProp>
|
19
20
|
<stringProp name="junitsampler.constructorstring"/>
|
20
21
|
<stringProp name="junitsampler.method">testRerun</stringProp>
|
@@ -31,6 +32,7 @@ module Gridinit
|
|
31
32
|
</JUnitSampler>)
|
32
33
|
EOS
|
33
34
|
update params
|
35
|
+
update_at_xpath params if params[:update_at_xpath]
|
34
36
|
end
|
35
37
|
end
|
36
38
|
|
@@ -12,15 +12,17 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'KeystoreConfiguration'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<KeystoreConfig guiclass="TestBeanGUI" testclass="KeystoreConfig" testname="#{name}" enabled="true">
|
18
|
+
<KeystoreConfig guiclass="TestBeanGUI" testclass="KeystoreConfig" testname="#{params[:name]}" enabled="true">
|
18
19
|
<stringProp name="endIndex"/>
|
19
20
|
<stringProp name="preload">True</stringProp>
|
20
21
|
<stringProp name="startIndex"/>
|
21
22
|
</KeystoreConfig>)
|
22
23
|
EOS
|
23
24
|
update params
|
25
|
+
update_at_xpath params if params[:update_at_xpath]
|
24
26
|
end
|
25
27
|
end
|
26
28
|
|
@@ -12,9 +12,10 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'LdapExtendedRequest'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<LDAPExtSampler guiclass="LdapExtTestSamplerGui" testclass="LDAPExtSampler" testname="#{name}" enabled="true">
|
18
|
+
<LDAPExtSampler guiclass="LdapExtTestSamplerGui" testclass="LDAPExtSampler" testname="#{params[:name]}" enabled="true">
|
18
19
|
<stringProp name="servername"/>
|
19
20
|
<stringProp name="port"/>
|
20
21
|
<stringProp name="rootdn"/>
|
@@ -36,6 +37,7 @@ module Gridinit
|
|
36
37
|
</LDAPExtSampler>)
|
37
38
|
EOS
|
38
39
|
update params
|
40
|
+
update_at_xpath params if params[:update_at_xpath]
|
39
41
|
end
|
40
42
|
end
|
41
43
|
|
@@ -12,9 +12,10 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'LdapExtendedRequestDefaults'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<ConfigTestElement guiclass="LdapExtConfigGui" testclass="ConfigTestElement" testname="#{name}" enabled="true">
|
18
|
+
<ConfigTestElement guiclass="LdapExtConfigGui" testclass="ConfigTestElement" testname="#{params[:name]}" enabled="true">
|
18
19
|
<stringProp name="servername"/>
|
19
20
|
<stringProp name="port"/>
|
20
21
|
<stringProp name="rootdn"/>
|
@@ -36,6 +37,7 @@ module Gridinit
|
|
36
37
|
</ConfigTestElement>)
|
37
38
|
EOS
|
38
39
|
update params
|
40
|
+
update_at_xpath params if params[:update_at_xpath]
|
39
41
|
end
|
40
42
|
end
|
41
43
|
|
@@ -12,16 +12,17 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'LdapRequest'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<LDAPSampler guiclass="LdapTestSamplerGui" testclass="LDAPSampler" testname="#{name}" enabled="true">
|
18
|
+
<LDAPSampler guiclass="LdapTestSamplerGui" testclass="LDAPSampler" testname="#{params[:name]}" enabled="true">
|
18
19
|
<stringProp name="servername"/>
|
19
20
|
<stringProp name="port"/>
|
20
21
|
<stringProp name="rootdn"/>
|
21
22
|
<boolProp name="user_defined">false</boolProp>
|
22
23
|
<stringProp name="test">add</stringProp>
|
23
24
|
<stringProp name="base_entry_dn"/>
|
24
|
-
<elementProp name="arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="#{name}" enabled="true">
|
25
|
+
<elementProp name="arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="#{params[:name]}" enabled="true">
|
25
26
|
<collectionProp name="Arguments.arguments"/>
|
26
27
|
</elementProp>
|
27
28
|
<stringProp name="ConfigTestElement.username"/>
|
@@ -29,6 +30,7 @@ module Gridinit
|
|
29
30
|
</LDAPSampler>)
|
30
31
|
EOS
|
31
32
|
update params
|
33
|
+
update_at_xpath params if params[:update_at_xpath]
|
32
34
|
end
|
33
35
|
end
|
34
36
|
|
@@ -12,21 +12,30 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'LdapRequestDefaults'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<ConfigTestElement guiclass="LdapConfigGui" testclass="ConfigTestElement" testname="#{name}" enabled="true">
|
18
|
+
<ConfigTestElement guiclass="LdapConfigGui" testclass="ConfigTestElement" testname="#{params[:name]}" enabled="true">
|
18
19
|
<stringProp name="servername"/>
|
19
20
|
<stringProp name="port"/>
|
20
21
|
<stringProp name="rootdn"/>
|
21
22
|
<boolProp name="user_defined">false</boolProp>
|
22
23
|
<stringProp name="test">add</stringProp>
|
23
24
|
<stringProp name="base_entry_dn"/>
|
24
|
-
<elementProp name="arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="#{name}" enabled="true">
|
25
|
-
<collectionProp name="Arguments.arguments"
|
25
|
+
<elementProp name="arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="#{params[:name]}" enabled="true">
|
26
|
+
<collectionProp name="Arguments.arguments">
|
27
|
+
<elementProp name="testguid" elementType="Argument">
|
28
|
+
<stringProp name="Argument.name"/>
|
29
|
+
<stringProp name="Argument.value"/>
|
30
|
+
<stringProp name="Argument.metadata">=</stringProp>
|
31
|
+
</elementProp>
|
32
|
+
</collectionProp>
|
33
|
+
<stringProp name="TestPlan.comments"/>
|
26
34
|
</elementProp>
|
27
35
|
</ConfigTestElement>)
|
28
36
|
EOS
|
29
37
|
update params
|
38
|
+
update_at_xpath params if params[:update_at_xpath]
|
30
39
|
end
|
31
40
|
end
|
32
41
|
|
@@ -12,14 +12,16 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'LoginConfigElement'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<ConfigTestElement guiclass="LoginConfigGui" testclass="ConfigTestElement" testname="#{name}" enabled="true">
|
18
|
+
<ConfigTestElement guiclass="LoginConfigGui" testclass="ConfigTestElement" testname="#{params[:name]}" enabled="true">
|
18
19
|
<stringProp name="ConfigTestElement.username"/>
|
19
20
|
<stringProp name="ConfigTestElement.password"/>
|
20
21
|
</ConfigTestElement>)
|
21
22
|
EOS
|
22
23
|
update params
|
24
|
+
update_at_xpath params if params[:update_at_xpath]
|
23
25
|
end
|
24
26
|
end
|
25
27
|
|
@@ -12,14 +12,16 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'LoopController'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<LoopController guiclass="LoopControlPanel" testclass="LoopController" testname="#{name}" enabled="true">
|
18
|
+
<LoopController guiclass="LoopControlPanel" testclass="LoopController" testname="#{params[:name]}" enabled="true">
|
18
19
|
<boolProp name="LoopController.continue_forever">true</boolProp>
|
19
20
|
<stringProp name="LoopController.loops">1</stringProp>
|
20
21
|
</LoopController>)
|
21
22
|
EOS
|
22
23
|
update params
|
24
|
+
update_at_xpath params if params[:update_at_xpath]
|
23
25
|
end
|
24
26
|
end
|
25
27
|
|
@@ -12,9 +12,10 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'MailReaderSampler'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<MailReaderSampler guiclass="MailReaderSamplerGui" testclass="MailReaderSampler" testname="#{name}" enabled="true">
|
18
|
+
<MailReaderSampler guiclass="MailReaderSamplerGui" testclass="MailReaderSampler" testname="#{params[:name]}" enabled="true">
|
18
19
|
<stringProp name="host_type">pop3</stringProp>
|
19
20
|
<stringProp name="folder">INBOX</stringProp>
|
20
21
|
<stringProp name="host"/>
|
@@ -31,6 +32,7 @@ module Gridinit
|
|
31
32
|
</MailReaderSampler>)
|
32
33
|
EOS
|
33
34
|
update params
|
35
|
+
update_at_xpath params if params[:update_at_xpath]
|
34
36
|
end
|
35
37
|
end
|
36
38
|
|
@@ -12,9 +12,10 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'MailerVisualizer'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<MailerResultCollector guiclass="MailerVisualizer" testclass="MailerResultCollector" testname="#{name}" enabled="true">
|
18
|
+
<MailerResultCollector guiclass="MailerVisualizer" testclass="MailerResultCollector" testname="#{params[:name]}" enabled="true">
|
18
19
|
<boolProp name="ResultCollector.error_logging">false</boolProp>
|
19
20
|
<objProp>
|
20
21
|
<name>saveConfig</name>
|
@@ -58,6 +59,7 @@ module Gridinit
|
|
58
59
|
</MailerResultCollector>)
|
59
60
|
EOS
|
60
61
|
update params
|
62
|
+
update_at_xpath params if params[:update_at_xpath]
|
61
63
|
end
|
62
64
|
end
|
63
65
|
|
@@ -12,13 +12,15 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'Md5hexAssertion'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<MD5HexAssertion guiclass="MD5HexAssertionGUI" testclass="MD5HexAssertion" testname="#{name}" enabled="true">
|
18
|
+
<MD5HexAssertion guiclass="MD5HexAssertionGUI" testclass="MD5HexAssertion" testname="#{params[:name]}" enabled="true">
|
18
19
|
<stringProp name="MD5HexAssertion.size"/>
|
19
20
|
</MD5HexAssertion>)
|
20
21
|
EOS
|
21
22
|
update params
|
23
|
+
update_at_xpath params if params[:update_at_xpath]
|
22
24
|
end
|
23
25
|
end
|
24
26
|
|
@@ -12,11 +12,13 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'ModuleController'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<ModuleController guiclass="ModuleControllerGui" testclass="ModuleController" testname="#{name}" enabled="true"/>)
|
18
|
+
<ModuleController guiclass="ModuleControllerGui" testclass="ModuleController" testname="#{params[:name]}" enabled="true"/>)
|
18
19
|
EOS
|
19
20
|
update params
|
21
|
+
update_at_xpath params if params[:update_at_xpath]
|
20
22
|
end
|
21
23
|
end
|
22
24
|
|
@@ -12,9 +12,10 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'MonitorResults'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<ResultCollector guiclass="MonitorHealthVisualizer" testclass="ResultCollector" testname="#{name}" enabled="true">
|
18
|
+
<ResultCollector guiclass="MonitorHealthVisualizer" testclass="ResultCollector" testname="#{params[:name]}" enabled="true">
|
18
19
|
<boolProp name="ResultCollector.error_logging">false</boolProp>
|
19
20
|
<objProp>
|
20
21
|
<name>saveConfig</name>
|
@@ -49,6 +50,7 @@ module Gridinit
|
|
49
50
|
</ResultCollector>)
|
50
51
|
EOS
|
51
52
|
update params
|
53
|
+
update_at_xpath params if params[:update_at_xpath]
|
52
54
|
end
|
53
55
|
end
|
54
56
|
|
@@ -12,11 +12,13 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'OnceOnlyController'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<OnceOnlyController guiclass="OnceOnlyControllerGui" testclass="OnceOnlyController" testname="#{name}" enabled="true"/>)
|
18
|
+
<OnceOnlyController guiclass="OnceOnlyControllerGui" testclass="OnceOnlyController" testname="#{params[:name]}" enabled="true"/>)
|
18
19
|
EOS
|
19
20
|
update params
|
21
|
+
update_at_xpath params if params[:update_at_xpath]
|
20
22
|
end
|
21
23
|
end
|
22
24
|
|
@@ -12,22 +12,24 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'OsProcessSampler'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="#{name}" enabled="true">
|
18
|
+
<SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="#{params[:name]}" enabled="true">
|
18
19
|
<boolProp name="SystemSampler.checkReturnCode">false</boolProp>
|
19
20
|
<stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
|
20
21
|
<stringProp name="SystemSampler.command"/>
|
21
|
-
<elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="#{name}" enabled="true">
|
22
|
+
<elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="#{params[:name]}" enabled="true">
|
22
23
|
<collectionProp name="Arguments.arguments"/>
|
23
24
|
</elementProp>
|
24
|
-
<elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="#{name}" enabled="true">
|
25
|
+
<elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="#{params[:name]}" enabled="true">
|
25
26
|
<collectionProp name="Arguments.arguments"/>
|
26
27
|
</elementProp>
|
27
28
|
<stringProp name="SystemSampler.directory"/>
|
28
29
|
</SystemSampler>)
|
29
30
|
EOS
|
30
31
|
update params
|
32
|
+
update_at_xpath params if params[:update_at_xpath]
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
@@ -12,14 +12,16 @@ module Gridinit
|
|
12
12
|
attr_accessor :doc
|
13
13
|
include Helper
|
14
14
|
|
15
|
-
def initialize(
|
15
|
+
def initialize(params={})
|
16
|
+
params[:name] ||= 'PoissonRandomTimer'
|
16
17
|
@doc = Nokogiri::XML(<<-EOS.strip_heredoc)
|
17
|
-
<PoissonRandomTimer guiclass="PoissonRandomTimerGui" testclass="PoissonRandomTimer" testname="#{name}" enabled="true">
|
18
|
+
<PoissonRandomTimer guiclass="PoissonRandomTimerGui" testclass="PoissonRandomTimer" testname="#{params[:name]}" enabled="true">
|
18
19
|
<stringProp name="ConstantTimer.delay">300</stringProp>
|
19
20
|
<stringProp name="RandomTimer.range">100</stringProp>
|
20
21
|
</PoissonRandomTimer>)
|
21
22
|
EOS
|
22
23
|
update params
|
24
|
+
update_at_xpath params if params[:update_at_xpath]
|
23
25
|
end
|
24
26
|
end
|
25
27
|
|