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 +4 -4
- data/lib/ruby-jmeter/dsl/http_request_defaults.rb +3 -0
- data/lib/ruby-jmeter/dsl/xpath_assertion.rb +1 -0
- data/lib/ruby-jmeter/dsl/xpath_extractor.rb +1 -0
- data/lib/ruby-jmeter/extend/config_elements/http_cache_manager.rb +1 -0
- data/lib/ruby-jmeter/idl.xml +5 -0
- data/lib/ruby-jmeter/version.rb +1 -1
- data/spec/http_cache_manager_spec.rb +12 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ac92173462bb45a1badf8df5e06ffbd781af3789
|
|
4
|
+
data.tar.gz: c6cd65d134f965eba9dd19e20acdb0b18f2fc91a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/ruby-jmeter/idl.xml
CHANGED
|
@@ -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">
|
data/lib/ruby-jmeter/version.rb
CHANGED
|
@@ -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
|