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.
Files changed (198) hide show
  1. data/Gemfile +2 -1
  2. data/README.md +51 -72
  3. data/examples/basic_assertion.rb +6 -6
  4. data/examples/basic_auth.rb +5 -5
  5. data/examples/basic_cache.rb +5 -5
  6. data/examples/basic_cookies.rb +5 -5
  7. data/examples/basic_extract.rb +4 -10
  8. data/examples/basic_gc_results.rb +12 -9
  9. data/examples/basic_google.rb +3 -3
  10. data/examples/basic_grid.rb +3 -6
  11. data/examples/basic_header.rb +12 -10
  12. data/examples/basic_ldap_ext.rb +11 -12
  13. data/examples/basic_post.rb +5 -6
  14. data/examples/basic_query_params.rb +3 -3
  15. data/examples/basic_think_time.rb +7 -4
  16. data/examples/basic_throughput_shaping_timer.rb +4 -4
  17. data/examples/etsy_login_browse.rb +21 -21
  18. data/lib/gridinit-jmeter/DSL.md +237 -0
  19. data/lib/gridinit-jmeter/{idl → dsl}/access_log_sampler.rb +4 -2
  20. data/lib/gridinit-jmeter/{idl → dsl}/aggregate_graph.rb +4 -2
  21. data/lib/gridinit-jmeter/{idl → dsl}/aggregate_report.rb +4 -2
  22. data/lib/gridinit-jmeter/{idl → dsl}/ajp13_sampler.rb +5 -3
  23. data/lib/gridinit-jmeter/{idl → dsl}/assertion_results.rb +4 -2
  24. data/lib/gridinit-jmeter/{idl → dsl}/beanshell_assertion.rb +4 -2
  25. data/lib/gridinit-jmeter/{idl → dsl}/beanshell_listener.rb +4 -2
  26. data/lib/gridinit-jmeter/{idl → dsl}/beanshell_postprocessor.rb +4 -2
  27. data/lib/gridinit-jmeter/{idl → dsl}/beanshell_preprocessor.rb +4 -2
  28. data/lib/gridinit-jmeter/{idl → dsl}/beanshell_sampler.rb +4 -2
  29. data/lib/gridinit-jmeter/{idl → dsl}/beanshell_timer.rb +4 -2
  30. data/lib/gridinit-jmeter/{idl → dsl}/bsf_assertion.rb +4 -2
  31. data/lib/gridinit-jmeter/{idl → dsl}/bsf_listener.rb +4 -2
  32. data/lib/gridinit-jmeter/{idl → dsl}/bsf_postprocessor.rb +4 -2
  33. data/lib/gridinit-jmeter/{idl → dsl}/bsf_preprocessor.rb +4 -2
  34. data/lib/gridinit-jmeter/{idl → dsl}/bsf_sampler.rb +4 -2
  35. data/lib/gridinit-jmeter/{idl → dsl}/bsf_timer.rb +4 -2
  36. data/lib/gridinit-jmeter/{idl → dsl}/compare_assertion.rb +4 -2
  37. data/lib/gridinit-jmeter/{idl → dsl}/comparison_assertion_visualizer.rb +4 -2
  38. data/lib/gridinit-jmeter/{idl → dsl}/constant_throughput_timer.rb +4 -2
  39. data/lib/gridinit-jmeter/{idl → dsl}/constant_timer.rb +4 -2
  40. data/lib/gridinit-jmeter/{idl → dsl}/counter.rb +4 -2
  41. data/lib/gridinit-jmeter/{idl → dsl}/cssjquery_extractor.rb +4 -2
  42. data/lib/gridinit-jmeter/{idl → dsl}/csv_data_set_config.rb +4 -2
  43. data/lib/gridinit-jmeter/{idl → dsl}/debug_postprocessor.rb +4 -2
  44. data/lib/gridinit-jmeter/{idl → dsl}/debug_sampler.rb +4 -2
  45. data/lib/gridinit-jmeter/{idl → dsl}/distribution_graphalpha.rb +4 -2
  46. data/lib/gridinit-jmeter/{idl → dsl}/duration_assertion.rb +4 -2
  47. data/lib/gridinit-jmeter/{idl → dsl}/foreach_controller.rb +4 -2
  48. data/lib/gridinit-jmeter/{idl → dsl}/ftp_request.rb +4 -2
  49. data/lib/gridinit-jmeter/{idl → dsl}/ftp_request_defaults.rb +4 -2
  50. data/lib/gridinit-jmeter/{idl → dsl}/gaussian_random_timer.rb +4 -2
  51. data/lib/gridinit-jmeter/{idl → dsl}/generate_summary_results.rb +4 -2
  52. data/lib/gridinit-jmeter/{idl → dsl}/graph_results.rb +4 -2
  53. data/lib/gridinit-jmeter/{idl → dsl}/html_assertion.rb +4 -2
  54. data/lib/gridinit-jmeter/{idl → dsl}/html_link_parser.rb +4 -2
  55. data/lib/gridinit-jmeter/{idl → dsl}/html_parameter_mask.rb +4 -2
  56. data/lib/gridinit-jmeter/dsl/http_authorization_manager.rb +36 -0
  57. data/lib/gridinit-jmeter/{idl → dsl}/http_cache_manager.rb +4 -2
  58. data/lib/gridinit-jmeter/{idl → dsl}/http_cookie_manager.rb +5 -2
  59. data/lib/gridinit-jmeter/{idl → dsl}/http_header_manager.rb +10 -3
  60. data/lib/gridinit-jmeter/{idl → dsl}/http_request.rb +5 -3
  61. data/lib/gridinit-jmeter/{idl → dsl}/http_request_defaults.rb +15 -4
  62. data/lib/gridinit-jmeter/{idl → dsl}/http_url_rewriting_modifier.rb +4 -2
  63. data/lib/gridinit-jmeter/{idl → dsl}/if_controller.rb +5 -2
  64. data/lib/gridinit-jmeter/{idl → dsl}/include_controller.rb +4 -2
  65. data/lib/gridinit-jmeter/{idl → dsl}/java_request.rb +4 -2
  66. data/lib/gridinit-jmeter/{idl → dsl}/java_request_defaults.rb +4 -2
  67. data/lib/gridinit-jmeter/{idl → dsl}/jdbc_connection_configuration.rb +4 -2
  68. data/lib/gridinit-jmeter/{idl → dsl}/jdbc_postprocessor.rb +4 -2
  69. data/lib/gridinit-jmeter/{idl → dsl}/jdbc_preprocessor.rb +4 -2
  70. data/lib/gridinit-jmeter/{idl → dsl}/jdbc_request.rb +4 -2
  71. data/lib/gridinit-jmeter/{idl → dsl}/jms_pointtopoint.rb +6 -4
  72. data/lib/gridinit-jmeter/{idl → dsl}/jms_publisher.rb +5 -3
  73. data/lib/gridinit-jmeter/{idl → dsl}/jms_subscriber.rb +4 -2
  74. data/lib/gridinit-jmeter/{idl → dsl}/jsr223_assertion.rb +4 -2
  75. data/lib/gridinit-jmeter/{idl → dsl}/jsr223_listener.rb +4 -2
  76. data/lib/gridinit-jmeter/{idl → dsl}/jsr223_postprocessor.rb +4 -2
  77. data/lib/gridinit-jmeter/{idl → dsl}/jsr223_preprocessor.rb +4 -2
  78. data/lib/gridinit-jmeter/{idl → dsl}/jsr223_sampler.rb +4 -2
  79. data/lib/gridinit-jmeter/{idl → dsl}/jsr223_timer.rb +4 -2
  80. data/lib/gridinit-jmeter/{idl → dsl}/junit_request.rb +4 -2
  81. data/lib/gridinit-jmeter/{idl → dsl}/keystore_configuration.rb +4 -2
  82. data/lib/gridinit-jmeter/{idl → dsl}/ldap_extended_request.rb +4 -2
  83. data/lib/gridinit-jmeter/{idl → dsl}/ldap_extended_request_defaults.rb +4 -2
  84. data/lib/gridinit-jmeter/{idl → dsl}/ldap_request.rb +5 -3
  85. data/lib/gridinit-jmeter/{idl → dsl}/ldap_request_defaults.rb +13 -4
  86. data/lib/gridinit-jmeter/{idl → dsl}/login_config_element.rb +4 -2
  87. data/lib/gridinit-jmeter/{idl → dsl}/loop_controller.rb +4 -2
  88. data/lib/gridinit-jmeter/{idl → dsl}/mail_reader_sampler.rb +4 -2
  89. data/lib/gridinit-jmeter/{idl → dsl}/mailer_visualizer.rb +4 -2
  90. data/lib/gridinit-jmeter/{idl → dsl}/md5hex_assertion.rb +4 -2
  91. data/lib/gridinit-jmeter/{idl → dsl}/module_controller.rb +4 -2
  92. data/lib/gridinit-jmeter/{idl → dsl}/monitor_results.rb +4 -2
  93. data/lib/gridinit-jmeter/{idl → dsl}/once_only_controller.rb +4 -2
  94. data/lib/gridinit-jmeter/{idl → dsl}/os_process_sampler.rb +6 -4
  95. data/lib/gridinit-jmeter/{idl → dsl}/poisson_random_timer.rb +4 -2
  96. data/lib/gridinit-jmeter/{idl → dsl}/random_controller.rb +4 -2
  97. data/lib/gridinit-jmeter/{idl → dsl}/random_order_controller.rb +4 -2
  98. data/lib/gridinit-jmeter/{idl → dsl}/random_variable.rb +4 -2
  99. data/lib/gridinit-jmeter/{idl → dsl}/recording_controller.rb +4 -2
  100. data/lib/gridinit-jmeter/{idl → dsl}/regex_user_parameters.rb +4 -2
  101. data/lib/gridinit-jmeter/{idl → dsl}/regular_expression_extractor.rb +5 -2
  102. data/lib/gridinit-jmeter/{idl → dsl}/response_assertion.rb +8 -3
  103. data/lib/gridinit-jmeter/{idl → dsl}/response_time_graph.rb +4 -2
  104. data/lib/gridinit-jmeter/{idl → dsl}/result_status_action_handler.rb +4 -2
  105. data/lib/gridinit-jmeter/{idl → dsl}/runtime_controller.rb +4 -2
  106. data/lib/gridinit-jmeter/{idl → dsl}/save_responses_to_a_file.rb +4 -2
  107. data/lib/gridinit-jmeter/{idl → dsl}/simple_config_element.rb +4 -2
  108. data/lib/gridinit-jmeter/{idl → dsl}/simple_controller.rb +4 -2
  109. data/lib/gridinit-jmeter/{idl → dsl}/simple_data_writer.rb +4 -2
  110. data/lib/gridinit-jmeter/{idl → dsl}/smime_assertion.rb +4 -2
  111. data/lib/gridinit-jmeter/{idl → dsl}/smtp_sampler.rb +4 -2
  112. data/lib/gridinit-jmeter/{idl → dsl}/soapxmlrpc_request.rb +4 -2
  113. data/lib/gridinit-jmeter/{idl → dsl}/spline_visualizer.rb +4 -2
  114. data/lib/gridinit-jmeter/{idl → dsl}/summary_report.rb +4 -2
  115. data/lib/gridinit-jmeter/{idl → dsl}/switch_controller.rb +4 -2
  116. data/lib/gridinit-jmeter/{idl → dsl}/synchronizing_timer.rb +4 -2
  117. data/lib/gridinit-jmeter/{idl → dsl}/tcp_sampler.rb +4 -2
  118. data/lib/gridinit-jmeter/{idl → dsl}/tcp_sampler_config.rb +4 -2
  119. data/lib/gridinit-jmeter/{idl → dsl}/test_action.rb +4 -2
  120. data/lib/gridinit-jmeter/{idl → dsl}/test_plan.rb +5 -3
  121. data/lib/gridinit-jmeter/{idl → dsl}/thread_group.rb +5 -3
  122. data/lib/gridinit-jmeter/{idl → dsl}/throughput_controller.rb +5 -3
  123. data/lib/gridinit-jmeter/{idl → dsl}/transaction_controller.rb +6 -3
  124. data/lib/gridinit-jmeter/{idl → dsl}/uniform_random_timer.rb +4 -2
  125. data/lib/gridinit-jmeter/dsl/user_defined_variables.rb +35 -0
  126. data/lib/gridinit-jmeter/{idl → dsl}/user_parameters.rb +4 -2
  127. data/lib/gridinit-jmeter/{idl → dsl}/view_results_in_table.rb +4 -2
  128. data/lib/gridinit-jmeter/{idl → dsl}/view_results_tree.rb +4 -2
  129. data/lib/gridinit-jmeter/{idl → dsl}/while_controller.rb +4 -2
  130. data/lib/gridinit-jmeter/{idl → dsl}/xml_assertion.rb +4 -2
  131. data/lib/gridinit-jmeter/{idl → dsl}/xml_schema_assertion.rb +4 -2
  132. data/lib/gridinit-jmeter/{idl → dsl}/xpath_assertion.rb +4 -2
  133. data/lib/gridinit-jmeter/{idl → dsl}/xpath_extractor.rb +4 -2
  134. data/lib/gridinit-jmeter/dsl.rb +170 -187
  135. data/lib/gridinit-jmeter/helpers/helper.rb +43 -0
  136. data/lib/gridinit-jmeter/helpers/parser.rb +109 -0
  137. data/lib/gridinit-jmeter/idl.rb +16 -6
  138. data/lib/gridinit-jmeter/idl.xml +54 -11
  139. data/lib/gridinit-jmeter/{listeners → plugins}/gc_console_status_logger.rb +0 -0
  140. data/lib/gridinit-jmeter/{listeners → plugins}/gc_latencies_over_time.rb +0 -0
  141. data/lib/gridinit-jmeter/{listeners → plugins}/gc_response_codes_per_second.rb +0 -0
  142. data/lib/gridinit-jmeter/{listeners → plugins}/gc_response_times_distribution.rb +0 -0
  143. data/lib/gridinit-jmeter/{listeners → plugins}/gc_response_times_over_time.rb +0 -0
  144. data/lib/gridinit-jmeter/{listeners → plugins}/gc_response_times_percentiles.rb +0 -0
  145. data/lib/gridinit-jmeter/{listeners → plugins}/gc_transactions_per_second.rb +0 -0
  146. data/lib/gridinit-jmeter/{timers/gc_throughput_shaping_timer.rb → plugins/gc_variable_throughput_timer.rb} +1 -1
  147. data/lib/gridinit-jmeter/version.rb +1 -1
  148. data/lib/gridinit-jmeter.rb +6 -105
  149. data/spec/dsl_spec.rb +377 -82
  150. metadata +131 -174
  151. data/examples/basic_proxy.rb +0 -8
  152. data/examples/basic_results.rb +0 -22
  153. data/examples/basic_run.rb +0 -12
  154. data/examples/basic_simple_data_writer.rb +0 -14
  155. data/examples/basic_stdout.rb +0 -8
  156. data/examples/basic_test_data.rb +0 -15
  157. data/examples/basic_testplan.jmx +0 -138
  158. data/examples/basic_testplan.rb +0 -44
  159. data/examples/jbhifi_now_search.rb +0 -94
  160. data/lib/gridinit-jmeter/assertions/response_assertion.rb +0 -55
  161. data/lib/gridinit-jmeter/config/auth_manager.rb +0 -26
  162. data/lib/gridinit-jmeter/config/cache_manager.rb +0 -20
  163. data/lib/gridinit-jmeter/config/cookie_manager.rb +0 -21
  164. data/lib/gridinit-jmeter/config/counter_config.rb +0 -24
  165. data/lib/gridinit-jmeter/config/header_manager.rb +0 -26
  166. data/lib/gridinit-jmeter/config/random_variable.rb +0 -24
  167. data/lib/gridinit-jmeter/config/request_defaults.rb +0 -31
  168. data/lib/gridinit-jmeter/config/user_defined_variable.rb +0 -25
  169. data/lib/gridinit-jmeter/controllers/if_controller.rb +0 -20
  170. data/lib/gridinit-jmeter/controllers/interleave.rb +0 -18
  171. data/lib/gridinit-jmeter/controllers/loop_controller.rb +0 -19
  172. data/lib/gridinit-jmeter/controllers/once_only.rb +0 -17
  173. data/lib/gridinit-jmeter/controllers/random_order.rb +0 -16
  174. data/lib/gridinit-jmeter/controllers/simple.rb +0 -17
  175. data/lib/gridinit-jmeter/controllers/switch.rb +0 -20
  176. data/lib/gridinit-jmeter/controllers/throughput.rb +0 -26
  177. data/lib/gridinit-jmeter/controllers/transaction.rb +0 -19
  178. data/lib/gridinit-jmeter/controllers/while_controller.rb +0 -18
  179. data/lib/gridinit-jmeter/helpers/dsl_helper.rb +0 -21
  180. data/lib/gridinit-jmeter/idl/http_authorization_manager.rb +0 -26
  181. data/lib/gridinit-jmeter/idl/user_defined_variables.rb +0 -26
  182. data/lib/gridinit-jmeter/listeners/aggregate_report.rb +0 -47
  183. data/lib/gridinit-jmeter/listeners/graph_visualizer.rb +0 -46
  184. data/lib/gridinit-jmeter/listeners/response_time_graph_visualizer.rb +0 -47
  185. data/lib/gridinit-jmeter/listeners/simple_data_writer.rb +0 -51
  186. data/lib/gridinit-jmeter/listeners/stat_visualizer.rb +0 -46
  187. data/lib/gridinit-jmeter/listeners/summary_report.rb +0 -46
  188. data/lib/gridinit-jmeter/listeners/table_visualizer.rb +0 -46
  189. data/lib/gridinit-jmeter/listeners/view_results_full_visualizer.rb +0 -57
  190. data/lib/gridinit-jmeter/post_processors/regex_extractor.rb +0 -34
  191. data/lib/gridinit-jmeter/post_processors/xpath_extractor.rb +0 -23
  192. data/lib/gridinit-jmeter/pre_processors/bean_shell_pre_processor.rb +0 -23
  193. data/lib/gridinit-jmeter/samplers/http_sampler.rb +0 -99
  194. data/lib/gridinit-jmeter/samplers/ldap_ext_sampler.rb +0 -36
  195. data/lib/gridinit-jmeter/samplers/soap_sampler.rb +0 -26
  196. data/lib/gridinit-jmeter/test_plan/test_plan.rb +0 -23
  197. data/lib/gridinit-jmeter/threads/thread_group.rb +0 -30
  198. data/lib/gridinit-jmeter/timers/gaussian_random_timer.rb +0 -18
@@ -0,0 +1,237 @@
1
+ # Gridinit::JMeter::DSL methods
2
+ - Test Plan
3
+ `test_plan`
4
+ - Counter
5
+ `counter`
6
+ - CSV Data Set Config
7
+ `csv_data_set_config`
8
+ - FTP Request Defaults
9
+ `ftp_request_defaults`
10
+ - HTTP Authorization Manager
11
+ `http_authorization_manager`
12
+ - HTTP Cache Manager
13
+ `http_cache_manager`
14
+ - HTTP Cookie Manager
15
+ `http_cookie_manager`
16
+ - HTTP Header Manager
17
+ `http_header_manager`
18
+ - HTTP Request Defaults
19
+ `http_request_defaults`
20
+ - Java Request Defaults
21
+ `java_request_defaults`
22
+ - JDBC Connection Configuration
23
+ `jdbc_connection_configuration`
24
+ - Keystore Configuration
25
+ `keystore_configuration`
26
+ - LDAP Extended Request Defaults
27
+ `ldap_extended_request_defaults`
28
+ - LDAP Request Defaults
29
+ `ldap_request_defaults`
30
+ - Login Config Element
31
+ `login_config_element`
32
+ - Random Variable
33
+ `random_variable`
34
+ - Simple Config Element
35
+ `simple_config_element`
36
+ - TCP Sampler Config
37
+ `tcp_sampler_config`
38
+ - User Defined Variables
39
+ `user_defined_variables`
40
+ - Thread Group
41
+ `thread_group`
42
+ - ForEach Controller
43
+ `foreach_controller`
44
+ - If Controller
45
+ `if_controller`
46
+ - Include Controller
47
+ `include_controller`
48
+ - Loop Controller
49
+ `loop_controller`
50
+ - Module Controller
51
+ `module_controller`
52
+ - Once Only Controller
53
+ `once_only_controller`
54
+ - Random Controller
55
+ `random_controller`
56
+ - Random Order Controller
57
+ `random_order_controller`
58
+ - Recording Controller
59
+ `recording_controller`
60
+ - Runtime Controller
61
+ `runtime_controller`
62
+ - Simple Controller
63
+ `simple_controller`
64
+ - Switch Controller
65
+ `switch_controller`
66
+ - Throughput Controller
67
+ `throughput_controller`
68
+ - Transaction Controller
69
+ `transaction_controller`
70
+ - While Controller
71
+ `while_controller`
72
+ - BeanShell Timer
73
+ `beanshell_timer`
74
+ - BSF Timer
75
+ `bsf_timer`
76
+ - Constant Throughput Timer
77
+ `constant_throughput_timer`
78
+ - Constant Timer
79
+ `constant_timer`
80
+ - Gaussian Random Timer
81
+ `gaussian_random_timer`
82
+ - JSR223 Timer
83
+ `jsr223_timer`
84
+ - Poisson Random Timer
85
+ `poisson_random_timer`
86
+ - Synchronizing Timer
87
+ `synchronizing_timer`
88
+ - Uniform Random Timer
89
+ `uniform_random_timer`
90
+ - BeanShell PreProcessor
91
+ `beanshell_preprocessor`
92
+ - BSF PreProcessor
93
+ `bsf_preprocessor`
94
+ - HTML Link Parser
95
+ `html_link_parser`
96
+ - HTML Parameter Mask
97
+ `html_parameter_mask`
98
+ - HTTP URL Re-writing Modifier
99
+ `http_url_rewriting_modifier`
100
+ - JDBC PreProcessor
101
+ `jdbc_preprocessor`
102
+ - JSR223 PreProcessor
103
+ `jsr223_preprocessor`
104
+ - RegEx User Parameters
105
+ `regex_user_parameters`
106
+ - User Parameters
107
+ `user_parameters`
108
+ - Access Log Sampler
109
+ `access_log_sampler`
110
+ - AJP/1.3 Sampler
111
+ `ajp13_sampler`
112
+ - BeanShell Sampler
113
+ `beanshell_sampler`
114
+ - BSF Sampler
115
+ `bsf_sampler`
116
+ - Debug Sampler
117
+ `debug_sampler`
118
+ - FTP Request
119
+ `ftp_request`
120
+ - HTTP Request
121
+ `http_request`
122
+ - Java Request
123
+ `java_request`
124
+ - JDBC Request
125
+ `jdbc_request`
126
+ - JMS Point-to-Point
127
+ `jms_pointtopoint`
128
+ - JMS Publisher
129
+ `jms_publisher`
130
+ - JMS Subscriber
131
+ `jms_subscriber`
132
+ - JSR223 Sampler
133
+ `jsr223_sampler`
134
+ - JUnit Request
135
+ `junit_request`
136
+ - LDAP Extended Request
137
+ `ldap_extended_request`
138
+ - LDAP Request
139
+ `ldap_request`
140
+ - Mail Reader Sampler
141
+ `mail_reader_sampler`
142
+ - OS Process Sampler
143
+ `os_process_sampler`
144
+ - SMTP Sampler
145
+ `smtp_sampler`
146
+ - SOAP/XML-RPC Request
147
+ `soapxmlrpc_request`
148
+ - TCP Sampler
149
+ `tcp_sampler`
150
+ - Test Action
151
+ `test_action`
152
+ - BeanShell PostProcessor
153
+ `beanshell_postprocessor`
154
+ - BSF PostProcessor
155
+ `bsf_postprocessor`
156
+ - CSS/JQuery Extractor
157
+ `cssjquery_extractor`
158
+ - Debug PostProcessor
159
+ `debug_postprocessor`
160
+ - JDBC PostProcessor
161
+ `jdbc_postprocessor`
162
+ - JSR223 PostProcessor
163
+ `jsr223_postprocessor`
164
+ - Regular Expression Extractor
165
+ `regular_expression_extractor`
166
+ - Result Status Action Handler
167
+ `result_status_action_handler`
168
+ - XPath Extractor
169
+ `xpath_extractor`
170
+ - BeanShell Assertion
171
+ `beanshell_assertion`
172
+ - BSF Assertion
173
+ `bsf_assertion`
174
+ - Compare Assertion
175
+ `compare_assertion`
176
+ - Duration Assertion
177
+ `duration_assertion`
178
+ - HTML Assertion
179
+ `html_assertion`
180
+ - JSR223 Assertion
181
+ `jsr223_assertion`
182
+ - JSR223 Assertion
183
+ `jsr223_assertion`
184
+ - MD5Hex Assertion
185
+ `md5hex_assertion`
186
+ - MD5Hex Assertion
187
+ `md5hex_assertion`
188
+ - Response Assertion
189
+ `response_assertion`
190
+ - SMIME Assertion
191
+ `smime_assertion`
192
+ - XML Assertion
193
+ `xml_assertion`
194
+ - XML Schema Assertion
195
+ `xml_schema_assertion`
196
+ - XPath Assertion
197
+ `xpath_assertion`
198
+ - Aggregate Graph
199
+ `aggregate_graph`
200
+ - Aggregate Report
201
+ `aggregate_report`
202
+ - Assertion Results
203
+ `assertion_results`
204
+ - BeanShell Listener
205
+ `beanshell_listener`
206
+ - BSF Listener
207
+ `bsf_listener`
208
+ - Comparison Assertion Visualizer
209
+ `comparison_assertion_visualizer`
210
+ - Distribution Graph (alpha)
211
+ `distribution_graphalpha`
212
+ - Generate Summary Results
213
+ `generate_summary_results`
214
+ - Graph Results
215
+ `graph_results`
216
+ - JSR223 Listener
217
+ `jsr223_listener`
218
+ - Mailer Visualizer
219
+ `mailer_visualizer`
220
+ - Monitor Results
221
+ `monitor_results`
222
+ - Response Time Graph
223
+ `response_time_graph`
224
+ - Response Time Graph
225
+ `response_time_graph`
226
+ - Save Responses to a file
227
+ `save_responses_to_a_file`
228
+ - Simple Data Writer
229
+ `simple_data_writer`
230
+ - Spline Visualizer
231
+ `spline_visualizer`
232
+ - Summary Report
233
+ `summary_report`
234
+ - View Results in Table
235
+ `view_results_in_table`
236
+ - View Results Tree
237
+ `view_results_tree`
@@ -12,9 +12,10 @@ module Gridinit
12
12
  attr_accessor :doc
13
13
  include Helper
14
14
 
15
- def initialize(name, params={})
15
+ def initialize(params={})
16
+ params[:name] ||= 'AccessLogSampler'
16
17
  @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
17
- <AccessLogSampler guiclass="TestBeanGUI" testclass="AccessLogSampler" testname="#{name}" enabled="true">
18
+ <AccessLogSampler guiclass="TestBeanGUI" testclass="AccessLogSampler" testname="#{params[:name]}" enabled="true">
18
19
  <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
19
20
  <collectionProp name="Arguments.arguments"/>
20
21
  </elementProp>
@@ -26,6 +27,7 @@ module Gridinit
26
27
  </AccessLogSampler>)
27
28
  EOS
28
29
  update params
30
+ update_at_xpath params if params[:update_at_xpath]
29
31
  end
30
32
  end
31
33
 
@@ -12,9 +12,10 @@ module Gridinit
12
12
  attr_accessor :doc
13
13
  include Helper
14
14
 
15
- def initialize(name, params={})
15
+ def initialize(params={})
16
+ params[:name] ||= 'AggregateGraph'
16
17
  @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
17
- <ResultCollector guiclass="StatGraphVisualizer" testclass="ResultCollector" testname="#{name}" enabled="true">
18
+ <ResultCollector guiclass="StatGraphVisualizer" 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,9 +12,10 @@ module Gridinit
12
12
  attr_accessor :doc
13
13
  include Helper
14
14
 
15
- def initialize(name, params={})
15
+ def initialize(params={})
16
+ params[:name] ||= 'AggregateReport'
16
17
  @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
17
- <ResultCollector guiclass="StatVisualizer" testclass="ResultCollector" testname="#{name}" enabled="true">
18
+ <ResultCollector guiclass="StatVisualizer" 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,10 +12,11 @@ module Gridinit
12
12
  attr_accessor :doc
13
13
  include Helper
14
14
 
15
- def initialize(name, params={})
15
+ def initialize(params={})
16
+ params[:name] ||= 'Ajp13Sampler'
16
17
  @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
17
- <AjpSampler guiclass="AjpSamplerGui" testclass="AjpSampler" testname="#{name}" enabled="true">
18
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="#{name}" enabled="true">
18
+ <AjpSampler guiclass="AjpSamplerGui" testclass="AjpSampler" testname="#{params[:name]}" enabled="true">
19
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="#{params[:name]}" enabled="true">
19
20
  <collectionProp name="Arguments.arguments"/>
20
21
  </elementProp>
21
22
  <stringProp name="HTTPSampler.domain"/>
@@ -35,6 +36,7 @@ module Gridinit
35
36
  </AjpSampler>)
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(name, params={})
15
+ def initialize(params={})
16
+ params[:name] ||= 'AssertionResults'
16
17
  @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
17
- <ResultCollector guiclass="AssertionVisualizer" testclass="ResultCollector" testname="#{name}" enabled="true">
18
+ <ResultCollector guiclass="AssertionVisualizer" 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,9 +12,10 @@ module Gridinit
12
12
  attr_accessor :doc
13
13
  include Helper
14
14
 
15
- def initialize(name, params={})
15
+ def initialize(params={})
16
+ params[:name] ||= 'BeanshellAssertion'
16
17
  @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
17
- <BeanShellAssertion guiclass="BeanShellAssertionGui" testclass="BeanShellAssertion" testname="#{name}" enabled="true">
18
+ <BeanShellAssertion guiclass="BeanShellAssertionGui" testclass="BeanShellAssertion" testname="#{params[:name]}" enabled="true">
18
19
  <stringProp name="BeanShellAssertion.query"/>
19
20
  <stringProp name="BeanShellAssertion.filename"/>
20
21
  <stringProp name="BeanShellAssertion.parameters"/>
@@ -22,6 +23,7 @@ module Gridinit
22
23
  </BeanShellAssertion>)
23
24
  EOS
24
25
  update params
26
+ update_at_xpath params if params[:update_at_xpath]
25
27
  end
26
28
  end
27
29
 
@@ -12,9 +12,10 @@ module Gridinit
12
12
  attr_accessor :doc
13
13
  include Helper
14
14
 
15
- def initialize(name, params={})
15
+ def initialize(params={})
16
+ params[:name] ||= 'BeanshellListener'
16
17
  @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
17
- <BeanShellListener guiclass="TestBeanGUI" testclass="BeanShellListener" testname="#{name}" enabled="true">
18
+ <BeanShellListener guiclass="TestBeanGUI" testclass="BeanShellListener" testname="#{params[:name]}" enabled="true">
18
19
  <stringProp name="filename"/>
19
20
  <stringProp name="parameters"/>
20
21
  <boolProp name="resetInterpreter">false</boolProp>
@@ -22,6 +23,7 @@ module Gridinit
22
23
  </BeanShellListener>)
23
24
  EOS
24
25
  update params
26
+ update_at_xpath params if params[:update_at_xpath]
25
27
  end
26
28
  end
27
29
 
@@ -12,9 +12,10 @@ module Gridinit
12
12
  attr_accessor :doc
13
13
  include Helper
14
14
 
15
- def initialize(name, params={})
15
+ def initialize(params={})
16
+ params[:name] ||= 'BeanshellPostprocessor'
16
17
  @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
17
- <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="#{name}" enabled="true">
18
+ <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="#{params[:name]}" enabled="true">
18
19
  <stringProp name="filename"/>
19
20
  <stringProp name="parameters"/>
20
21
  <boolProp name="resetInterpreter">false</boolProp>
@@ -22,6 +23,7 @@ module Gridinit
22
23
  </BeanShellPostProcessor>)
23
24
  EOS
24
25
  update params
26
+ update_at_xpath params if params[:update_at_xpath]
25
27
  end
26
28
  end
27
29
 
@@ -12,9 +12,10 @@ module Gridinit
12
12
  attr_accessor :doc
13
13
  include Helper
14
14
 
15
- def initialize(name, params={})
15
+ def initialize(params={})
16
+ params[:name] ||= 'BeanshellPreprocessor'
16
17
  @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
17
- <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="#{name}" enabled="true">
18
+ <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="#{params[:name]}" enabled="true">
18
19
  <stringProp name="filename"/>
19
20
  <stringProp name="parameters"/>
20
21
  <boolProp name="resetInterpreter">false</boolProp>
@@ -22,6 +23,7 @@ module Gridinit
22
23
  </BeanShellPreProcessor>)
23
24
  EOS
24
25
  update params
26
+ update_at_xpath params if params[:update_at_xpath]
25
27
  end
26
28
  end
27
29
 
@@ -12,9 +12,10 @@ module Gridinit
12
12
  attr_accessor :doc
13
13
  include Helper
14
14
 
15
- def initialize(name, params={})
15
+ def initialize(params={})
16
+ params[:name] ||= 'BeanshellSampler'
16
17
  @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
17
- <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="#{name}" enabled="true">
18
+ <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="#{params[:name]}" enabled="true">
18
19
  <stringProp name="BeanShellSampler.query"/>
19
20
  <stringProp name="BeanShellSampler.filename"/>
20
21
  <stringProp name="BeanShellSampler.parameters"/>
@@ -22,6 +23,7 @@ module Gridinit
22
23
  </BeanShellSampler>)
23
24
  EOS
24
25
  update params
26
+ update_at_xpath params if params[:update_at_xpath]
25
27
  end
26
28
  end
27
29
 
@@ -12,9 +12,10 @@ module Gridinit
12
12
  attr_accessor :doc
13
13
  include Helper
14
14
 
15
- def initialize(name, params={})
15
+ def initialize(params={})
16
+ params[:name] ||= 'BeanshellTimer'
16
17
  @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
17
- <BeanShellTimer guiclass="TestBeanGUI" testclass="BeanShellTimer" testname="#{name}" enabled="true">
18
+ <BeanShellTimer guiclass="TestBeanGUI" testclass="BeanShellTimer" testname="#{params[:name]}" enabled="true">
18
19
  <stringProp name="filename"/>
19
20
  <stringProp name="parameters"/>
20
21
  <boolProp name="resetInterpreter">false</boolProp>
@@ -22,6 +23,7 @@ module Gridinit
22
23
  </BeanShellTimer>)
23
24
  EOS
24
25
  update params
26
+ update_at_xpath params if params[:update_at_xpath]
25
27
  end
26
28
  end
27
29
 
@@ -12,9 +12,10 @@ module Gridinit
12
12
  attr_accessor :doc
13
13
  include Helper
14
14
 
15
- def initialize(name, params={})
15
+ def initialize(params={})
16
+ params[:name] ||= 'BsfAssertion'
16
17
  @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
17
- <BSFAssertion guiclass="TestBeanGUI" testclass="BSFAssertion" testname="#{name}" enabled="true">
18
+ <BSFAssertion guiclass="TestBeanGUI" testclass="BSFAssertion" testname="#{params[:name]}" enabled="true">
18
19
  <stringProp name="filename"/>
19
20
  <stringProp name="parameters"/>
20
21
  <stringProp name="script"/>
@@ -22,6 +23,7 @@ module Gridinit
22
23
  </BSFAssertion>)
23
24
  EOS
24
25
  update params
26
+ update_at_xpath params if params[:update_at_xpath]
25
27
  end
26
28
  end
27
29
 
@@ -12,9 +12,10 @@ module Gridinit
12
12
  attr_accessor :doc
13
13
  include Helper
14
14
 
15
- def initialize(name, params={})
15
+ def initialize(params={})
16
+ params[:name] ||= 'BsfListener'
16
17
  @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
17
- <BSFListener guiclass="TestBeanGUI" testclass="BSFListener" testname="#{name}" enabled="true">
18
+ <BSFListener guiclass="TestBeanGUI" testclass="BSFListener" testname="#{params[:name]}" enabled="true">
18
19
  <stringProp name="filename"/>
19
20
  <stringProp name="parameters"/>
20
21
  <stringProp name="script"/>
@@ -22,6 +23,7 @@ module Gridinit
22
23
  </BSFListener>)
23
24
  EOS
24
25
  update params
26
+ update_at_xpath params if params[:update_at_xpath]
25
27
  end
26
28
  end
27
29
 
@@ -12,9 +12,10 @@ module Gridinit
12
12
  attr_accessor :doc
13
13
  include Helper
14
14
 
15
- def initialize(name, params={})
15
+ def initialize(params={})
16
+ params[:name] ||= 'BsfPostprocessor'
16
17
  @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
17
- <BSFPostProcessor guiclass="TestBeanGUI" testclass="BSFPostProcessor" testname="#{name}" enabled="true">
18
+ <BSFPostProcessor guiclass="TestBeanGUI" testclass="BSFPostProcessor" testname="#{params[:name]}" enabled="true">
18
19
  <stringProp name="filename"/>
19
20
  <stringProp name="parameters"/>
20
21
  <stringProp name="script"/>
@@ -22,6 +23,7 @@ module Gridinit
22
23
  </BSFPostProcessor>)
23
24
  EOS
24
25
  update params
26
+ update_at_xpath params if params[:update_at_xpath]
25
27
  end
26
28
  end
27
29
 
@@ -12,9 +12,10 @@ module Gridinit
12
12
  attr_accessor :doc
13
13
  include Helper
14
14
 
15
- def initialize(name, params={})
15
+ def initialize(params={})
16
+ params[:name] ||= 'BsfPreprocessor'
16
17
  @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
17
- <BSFPreProcessor guiclass="TestBeanGUI" testclass="BSFPreProcessor" testname="#{name}" enabled="true">
18
+ <BSFPreProcessor guiclass="TestBeanGUI" testclass="BSFPreProcessor" testname="#{params[:name]}" enabled="true">
18
19
  <stringProp name="filename"/>
19
20
  <stringProp name="parameters"/>
20
21
  <stringProp name="script"/>
@@ -22,6 +23,7 @@ module Gridinit
22
23
  </BSFPreProcessor>)
23
24
  EOS
24
25
  update params
26
+ update_at_xpath params if params[:update_at_xpath]
25
27
  end
26
28
  end
27
29
 
@@ -12,9 +12,10 @@ module Gridinit
12
12
  attr_accessor :doc
13
13
  include Helper
14
14
 
15
- def initialize(name, params={})
15
+ def initialize(params={})
16
+ params[:name] ||= 'BsfSampler'
16
17
  @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
17
- <BSFSampler guiclass="TestBeanGUI" testclass="BSFSampler" testname="#{name}" enabled="true">
18
+ <BSFSampler guiclass="TestBeanGUI" testclass="BSFSampler" testname="#{params[:name]}" enabled="true">
18
19
  <stringProp name="filename"/>
19
20
  <stringProp name="parameters"/>
20
21
  <stringProp name="script"/>
@@ -22,6 +23,7 @@ module Gridinit
22
23
  </BSFSampler>)
23
24
  EOS
24
25
  update params
26
+ update_at_xpath params if params[:update_at_xpath]
25
27
  end
26
28
  end
27
29
 
@@ -12,9 +12,10 @@ module Gridinit
12
12
  attr_accessor :doc
13
13
  include Helper
14
14
 
15
- def initialize(name, params={})
15
+ def initialize(params={})
16
+ params[:name] ||= 'BsfTimer'
16
17
  @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
17
- <BSFTimer guiclass="TestBeanGUI" testclass="BSFTimer" testname="#{name}" enabled="true">
18
+ <BSFTimer guiclass="TestBeanGUI" testclass="BSFTimer" testname="#{params[:name]}" enabled="true">
18
19
  <stringProp name="filename"/>
19
20
  <stringProp name="parameters"/>
20
21
  <stringProp name="script"/>
@@ -22,6 +23,7 @@ module Gridinit
22
23
  </BSFTimer>)
23
24
  EOS
24
25
  update params
26
+ update_at_xpath params if params[:update_at_xpath]
25
27
  end
26
28
  end
27
29
 
@@ -12,15 +12,17 @@ module Gridinit
12
12
  attr_accessor :doc
13
13
  include Helper
14
14
 
15
- def initialize(name, params={})
15
+ def initialize(params={})
16
+ params[:name] ||= 'CompareAssertion'
16
17
  @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
17
- <CompareAssertion guiclass="TestBeanGUI" testclass="CompareAssertion" testname="#{name}" enabled="true">
18
+ <CompareAssertion guiclass="TestBeanGUI" testclass="CompareAssertion" testname="#{params[:name]}" enabled="true">
18
19
  <boolProp name="compareContent">true</boolProp>
19
20
  <longProp name="compareTime">-1</longProp>
20
21
  <collectionProp name="stringsToSkip"/>
21
22
  </CompareAssertion>)
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(name, params={})
15
+ def initialize(params={})
16
+ params[:name] ||= 'ComparisonAssertionVisualizer'
16
17
  @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
17
- <ResultCollector guiclass="ComparisonVisualizer" testclass="ResultCollector" testname="#{name}" enabled="true">
18
+ <ResultCollector guiclass="ComparisonVisualizer" 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,9 +12,10 @@ module Gridinit
12
12
  attr_accessor :doc
13
13
  include Helper
14
14
 
15
- def initialize(name, params={})
15
+ def initialize(params={})
16
+ params[:name] ||= 'ConstantThroughputTimer'
16
17
  @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
17
- <ConstantThroughputTimer guiclass="TestBeanGUI" testclass="ConstantThroughputTimer" testname="#{name}" enabled="true">
18
+ <ConstantThroughputTimer guiclass="TestBeanGUI" testclass="ConstantThroughputTimer" testname="#{params[:name]}" enabled="true">
18
19
  <stringProp name="calcMode">this thread only</stringProp>
19
20
  <doubleProp>
20
21
  <name>throughput</name>
@@ -24,6 +25,7 @@ module Gridinit
24
25
  </ConstantThroughputTimer>)
25
26
  EOS
26
27
  update params
28
+ update_at_xpath params if params[:update_at_xpath]
27
29
  end
28
30
  end
29
31