ruby-jmeter 3.1.02 → 3.1.03

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ccdd46b52ad5147253b948f1fb4f11b9deebf5bf
4
- data.tar.gz: d814597c2b3d417a5ecd3bf6e1eea24ff1448ba1
3
+ metadata.gz: ac92173462bb45a1badf8df5e06ffbd781af3789
4
+ data.tar.gz: c6cd65d134f965eba9dd19e20acdb0b18f2fc91a
5
5
  SHA512:
6
- metadata.gz: a82bd04e23b29833f626620241289951c9ec5d20d826a9010c4f2d5799d5ba0182ce508b7aa34ad28b20793124a9bd1d906c8b83cdd9bbc0d54454deec493824
7
- data.tar.gz: 69ae16e1b7bee35fa8a863eff07b9231e566cf051fce2caa539f46d3658617108556fdb962034a5b015ed98ff59fc1d7319e43589f5c4d6a8f7d18c73d93ee65
6
+ metadata.gz: 327f5e97cc508febe7144dd723743ae5cfb5241629ca37004421b840b9b92a7f8b4ad946c1d6a5f38722b3ac23a04458bf1f52db746981228ed3299286fdd859
7
+ data.tar.gz: 0018846bf58fc186e0cb873b91912168c44e22525b23fe6448a37caf144df3b1a59d4530e2df8411125fd16ef96678b5f121ad624c9718d2f3c3abc599d5ca78
@@ -19,6 +19,8 @@ module RubyJmeter
19
19
  </elementProp>
20
20
  <stringProp name="HTTPSampler.domain"/>
21
21
  <stringProp name="HTTPSampler.port"/>
22
+ <stringProp name="HTTPSampler.proxyHost"/>
23
+ <stringProp name="HTTPSampler.proxyPort"/>
22
24
  <stringProp name="HTTPSampler.connect_timeout"/>
23
25
  <stringProp name="HTTPSampler.response_timeout"/>
24
26
  <stringProp name="HTTPSampler.protocol"/>
@@ -28,6 +30,7 @@ module RubyJmeter
28
30
  <boolProp name="HTTPSampler.image_parser">true</boolProp>
29
31
  <boolProp name="HTTPSampler.concurrentDwn">true</boolProp>
30
32
  <stringProp name="HTTPSampler.concurrentPool">4</stringProp>
33
+ <stringProp name="HTTPSampler.embedded_url_re"/>
31
34
  </ConfigTestElement>)
32
35
  EOS
33
36
  update params
@@ -20,6 +20,7 @@ module RubyJmeter
20
20
  <boolProp name="XPath.whitespace">false</boolProp>
21
21
  <boolProp name="XPath.tolerant">false</boolProp>
22
22
  <boolProp name="XPath.namespace">false</boolProp>
23
+ <stringProp name="Assertion.scope">all</stringProp>
23
24
  </XPathAssertion>)
24
25
  EOS
25
26
  update params
@@ -20,6 +20,7 @@ module RubyJmeter
20
20
  <boolProp name="XPathExtractor.validate">false</boolProp>
21
21
  <boolProp name="XPathExtractor.tolerant">false</boolProp>
22
22
  <boolProp name="XPathExtractor.namespace">false</boolProp>
23
+ <stringProp name="Sample.scope">all</stringProp>
23
24
  </XPathExtractor>)
24
25
  EOS
25
26
  update params
@@ -2,6 +2,7 @@ module RubyJmeter
2
2
  class ExtendedDSL < DSL
3
3
  def http_cache_manager(params = {}, &block)
4
4
  params[:clearEachIteration] = true if params.keys.include? :clear_each_iteration
5
+ params[:useExpires] = true if params.keys.include? :use_expires
5
6
 
6
7
  super
7
8
  end
@@ -82,6 +82,8 @@
82
82
  </elementProp>
83
83
  <stringProp name="HTTPSampler.domain"></stringProp>
84
84
  <stringProp name="HTTPSampler.port"></stringProp>
85
+ <stringProp name="HTTPSampler.proxyHost"></stringProp>
86
+ <stringProp name="HTTPSampler.proxyPort"></stringProp>
85
87
  <stringProp name="HTTPSampler.connect_timeout"></stringProp>
86
88
  <stringProp name="HTTPSampler.response_timeout"></stringProp>
87
89
  <stringProp name="HTTPSampler.protocol"></stringProp>
@@ -91,6 +93,7 @@
91
93
  <boolProp name="HTTPSampler.image_parser">true</boolProp>
92
94
  <boolProp name="HTTPSampler.concurrentDwn">true</boolProp>
93
95
  <stringProp name="HTTPSampler.concurrentPool">4</stringProp>
96
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
94
97
  </ConfigTestElement>
95
98
  <hashTree/>
96
99
  <JavaConfig guiclass="JavaConfigGui" testclass="JavaConfig" testname="Java Request Defaults" enabled="true">
@@ -885,6 +888,7 @@
885
888
  <boolProp name="XPathExtractor.validate">false</boolProp>
886
889
  <boolProp name="XPathExtractor.tolerant">false</boolProp>
887
890
  <boolProp name="XPathExtractor.namespace">false</boolProp>
891
+ <stringProp name="Sample.scope">all</stringProp>
888
892
  </XPathExtractor>
889
893
  <hashTree/>
890
894
  <BeanShellAssertion guiclass="BeanShellAssertionGui" testclass="BeanShellAssertion" testname="BeanShell Assertion" enabled="true">
@@ -969,6 +973,7 @@
969
973
  <boolProp name="XPath.whitespace">false</boolProp>
970
974
  <boolProp name="XPath.tolerant">false</boolProp>
971
975
  <boolProp name="XPath.namespace">false</boolProp>
976
+ <stringProp name="Assertion.scope">all</stringProp>
972
977
  </XPathAssertion>
973
978
  <hashTree/>
974
979
  <ResultCollector guiclass="StatGraphVisualizer" testclass="ResultCollector" testname="Aggregate Graph" enabled="true">
@@ -1,3 +1,3 @@
1
1
  module RubyJmeter
2
- VERSION = '3.1.02'
2
+ VERSION = '3.1.03'
3
3
  end
@@ -14,4 +14,16 @@ describe 'http_cache_manager' do
14
14
  expect(cache_fragment.search(".//boolProp[@name='clearEachIteration']").first.text).to eq 'true'
15
15
  end
16
16
  end
17
+
18
+ describe 'the use_expires option should be respected' do
19
+ let(:doc) do
20
+ test do
21
+ cache use_expires: true
22
+ end.to_doc
23
+ end
24
+ let(:cache_fragment) { doc.search("//CacheManager") }
25
+ it 'should match on useExpires' do
26
+ expect(cache_fragment.search(".//boolProp[@name='useExpires']").first.text).to eq 'true'
27
+ end
28
+ end
17
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-jmeter
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.02
4
+ version: 3.1.03
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Koopmans