Class: JmeterPerf::Plugins::JsonPathAssertion
- Inherits:
-
Object
- Object
- JmeterPerf::Plugins::JsonPathAssertion
- Includes:
- Helpers::XmlDocumentUpdater
- Defined in:
- lib/jmeter_perf/plugins/json_path_assertion.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
Returns the value of attribute doc.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ JsonPathAssertion
constructor
A new instance of JsonPathAssertion.
Constructor Details
#initialize(params = {}) ⇒ JsonPathAssertion
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/jmeter_perf/plugins/json_path_assertion.rb', line 6 def initialize(params = {}) @doc = Nokogiri::XML( JmeterPerf::Helpers::String.strip_heredoc( " <com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.JSONPathAssertion guiclass=\"com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.gui.JSONPathAssertionGui\" testclass=\"com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.JSONPathAssertion\" testname=\"jp@gc - JSON Path Assertion\" enabled=\"true\">\n <stringProp name=\"EXPECTED_VALUE\"></stringProp>\n <stringProp name=\"JSON_PATH\"></stringProp>\n <boolProp name=\"JSONVALIDATION\">true</boolProp>\n <boolProp name=\"INVERT\">false</boolProp>\n </com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.JSONPathAssertion>\n EOF\n )\n )\n update params\nend\n" |
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
4 5 6 |
# File 'lib/jmeter_perf/plugins/json_path_assertion.rb', line 4 def doc @doc end |