ruby-jmeter 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c74a1b79ce925ae4f7421e7b66178cd905806d40
4
- data.tar.gz: 72326c3b7f61cba3734a4d1d0a81476d1c9e29bb
3
+ metadata.gz: c3e57bac4187d3c01484988d3a737a26bbb0f21d
4
+ data.tar.gz: 4669860076c00b8eb24f2ca5325b1a21d9bfdd36
5
5
  SHA512:
6
- metadata.gz: d917316e79440554e0bb9ecfa68c448a41e88bde5352b5aa6593bca193c08ccf2f861fb80e5348087c3481dcfc6b7134636a8229473f6a9d8bc925e2286f96c8
7
- data.tar.gz: e252f9f2b3f077d9b87cffbe9658add5fab4201ab448b63f9be3ee4e0320f3c94f6221912dc9aa56be752e13f97dbb35985b9b2a1dce070ba886381748a70cd7
6
+ metadata.gz: 3e9eaf013c00c6b3b0f5546c103c923d13a568f2517f3133c55887254acfbe43414b86a6648c8904f7f883c6f168047479317df967e6979d37afa42490d0ad6d
7
+ data.tar.gz: 1b5c99975c124122c7a15941d961c488f4cdfd2211a9a66ac84bf0a2502c3ea9095d63e65373ec4ac29b2a8f482a31e34a534312098f76c8314828db090888ab
data/examples/extract.rb CHANGED
@@ -4,7 +4,7 @@ require 'ruby-jmeter'
4
4
  test do
5
5
  threads count: 100 do
6
6
  visit name: 'Home', url: 'http://altentee.com' do
7
- extract regex: "content='(.+?)' name='csrf-token'", name: 'csrf-token'
7
+ extract regex: "content='(.+?)' name='csrf-token'", name: 'csrf-token', match_number: 1
8
8
  extract regex: 'pattern', name: 'jmeter_variable_regex', variable: 'test'
9
9
  extract css: 'span#blog', name: 'blog'
10
10
  end
@@ -0,0 +1,13 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ require 'ruby-jmeter'
3
+
4
+ test do
5
+ threads count: 1 do
6
+ visit 'https://flood.io/d384673f64e3a3/result.json' do
7
+ jsr223_assertion update_at_xpath: [
8
+ { "//stringProp[@name='script']" => 'var foo = "cat";' },
9
+ { "//stringProp[@name='scriptLanguage']" => 'javascript' }
10
+ ]
11
+ end
12
+ end
13
+ end.run(path: '/usr/share/jmeter/bin/', gui: true)
@@ -0,0 +1,8 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ require 'ruby-jmeter'
3
+
4
+ test do
5
+ threads count: 1 do
6
+ visit 'https://flood.io/?unicode=åß∂˙∆¬¬'
7
+ end
8
+ end.run(path: '/usr/share/jmeter/bin/', gui: true)
@@ -181,10 +181,6 @@
181
181
  `html_assertion`
182
182
  - JSR223 Assertion
183
183
  `jsr223_assertion`
184
- - JSR223 Assertion
185
- `jsr223_assertion`
186
- - MD5Hex Assertion
187
- `md5hex_assertion`
188
184
  - MD5Hex Assertion
189
185
  `md5hex_assertion`
190
186
  - Response Assertion
@@ -223,8 +219,6 @@
223
219
  `monitor_results`
224
220
  - Response Time Graph
225
221
  `response_time_graph`
226
- - Response Time Graph
227
- `response_time_graph`
228
222
  - Save Responses to a file
229
223
  `save_responses_to_a_file`
230
224
  - Simple Data Writer
@@ -14,11 +14,11 @@ module RubyJmeter
14
14
  testname = params.kind_of?(Array) ? 'Jsr223Assertion' : (params[:name] || 'Jsr223Assertion')
15
15
  @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
16
16
  <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="#{testname}" enabled="true">
17
- <stringProp name="scriptLanguage"/>
18
- <stringProp name="parameters"/>
19
- <stringProp name="filename"/>
20
17
  <stringProp name="cacheKey"/>
18
+ <stringProp name="filename"/>
19
+ <stringProp name="parameters"/>
21
20
  <stringProp name="script"/>
21
+ <stringProp name="scriptLanguage"/>
22
22
  </JSR223Assertion>)
23
23
  EOS
24
24
  update params
@@ -36,7 +36,7 @@ module RubyJmeter
36
36
  content_type: 'application/octet-stream'
37
37
  }.merge(params)
38
38
  if response.code == 201
39
- logger.info 'Flood results at: #{JSON.parse(response)["permalink"]}'
39
+ logger.info "Flood results at: #{JSON.parse(response)["permalink"]}"
40
40
  else
41
41
  logger.fatal "Sorry there was an error: #{JSON.parse(response)["error"]}"
42
42
  end
@@ -923,18 +923,6 @@
923
923
  <stringProp name="scriptLanguage"></stringProp>
924
924
  </JSR223Assertion>
925
925
  <hashTree/>
926
- <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
927
- <stringProp name="scriptLanguage"></stringProp>
928
- <stringProp name="parameters"></stringProp>
929
- <stringProp name="filename"></stringProp>
930
- <stringProp name="cacheKey"></stringProp>
931
- <stringProp name="script"></stringProp>
932
- </JSR223Assertion>
933
- <hashTree/>
934
- <MD5HexAssertion guiclass="MD5HexAssertionGUI" testclass="MD5HexAssertion" testname="MD5Hex Assertion" enabled="true">
935
- <stringProp name="MD5HexAssertion.size"></stringProp>
936
- </MD5HexAssertion>
937
- <hashTree/>
938
926
  <MD5HexAssertion guiclass="MD5HexAssertionGUI" testclass="MD5HexAssertion" testname="MD5Hex Assertion" enabled="true">
939
927
  <stringProp name="MD5HexAssertion.size"></stringProp>
940
928
  </MD5HexAssertion>
@@ -1317,40 +1305,6 @@
1317
1305
  <stringProp name="filename"></stringProp>
1318
1306
  </ResultCollector>
1319
1307
  <hashTree/>
1320
- <ResultCollector guiclass="RespTimeGraphVisualizer" testclass="ResultCollector" testname="Response Time Graph" enabled="true">
1321
- <boolProp name="ResultCollector.error_logging">false</boolProp>
1322
- <objProp>
1323
- <name>saveConfig</name>
1324
- <value class="SampleSaveConfiguration">
1325
- <time>true</time>
1326
- <latency>true</latency>
1327
- <timestamp>true</timestamp>
1328
- <success>true</success>
1329
- <label>true</label>
1330
- <code>true</code>
1331
- <message>false</message>
1332
- <threadName>true</threadName>
1333
- <dataType>false</dataType>
1334
- <encoding>false</encoding>
1335
- <assertions>false</assertions>
1336
- <subresults>false</subresults>
1337
- <responseData>false</responseData>
1338
- <samplerData>false</samplerData>
1339
- <xml>false</xml>
1340
- <fieldNames>false</fieldNames>
1341
- <responseHeaders>false</responseHeaders>
1342
- <requestHeaders>false</requestHeaders>
1343
- <responseDataOnError>false</responseDataOnError>
1344
- <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
1345
- <assertionsResultsToSave>0</assertionsResultsToSave>
1346
- <bytes>true</bytes>
1347
- <threadCounts>true</threadCounts>
1348
- <sampleCount>true</sampleCount>
1349
- </value>
1350
- </objProp>
1351
- <stringProp name="filename"></stringProp>
1352
- </ResultCollector>
1353
- <hashTree/>
1354
1308
  <ResultSaver guiclass="ResultSaverGui" testclass="ResultSaver" testname="Save Responses to a file" enabled="true">
1355
1309
  <stringProp name="FileSaver.filename"></stringProp>
1356
1310
  <boolProp name="FileSaver.errorsonly">false</boolProp>
@@ -1,3 +1,3 @@
1
1
  module RubyJmeter
2
- VERSION = '3.0.0'
2
+ VERSION = '3.0.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-jmeter
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Koopmans
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-08 00:00:00.000000000 Z
11
+ date: 2016-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -77,6 +77,7 @@ files:
77
77
  - examples/jmeter_plugins_graphs.rb
78
78
  - examples/json_path_assertions.rb
79
79
  - examples/json_path_extractor.rb
80
+ - examples/jsr223_assertion.rb
80
81
  - examples/ldap_sampler.rb
81
82
  - examples/loadosophia.rb
82
83
  - examples/loop_controller.rb
@@ -96,6 +97,7 @@ files:
96
97
  - examples/throughput_controller.rb
97
98
  - examples/throughput_shaping_timer.rb
98
99
  - examples/ultimate_thread_group.rb
100
+ - examples/unicode.rb
99
101
  - examples/user_defined_variables.rb
100
102
  - examples/user_parameters.rb
101
103
  - lib/ruby-jmeter.rb