Class: RubyJmeter::Plugins::JsonPathAssertion
- Inherits:
-
Object
- Object
- RubyJmeter::Plugins::JsonPathAssertion
- Includes:
- Helper
- Defined in:
- lib/ruby-jmeter/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.
Methods included from Helper
#enabled, #enabled_disabled, #update, #update_at_xpath, #update_collection
Constructor Details
#initialize(params = {}) ⇒ JsonPathAssertion
Returns a new instance of JsonPathAssertion.
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/ruby-jmeter/plugins/json_path_assertion.rb', line 6 def initialize(params={}) @doc = Nokogiri::XML(<<-EOF.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"> <stringProp name="EXPECTED_VALUE"></stringProp> <stringProp name="JSON_PATH"></stringProp> <boolProp name="JSONVALIDATION">true</boolProp> </com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.JSONPathAssertion> EOF update params end |
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
4 5 6 |
# File 'lib/ruby-jmeter/plugins/json_path_assertion.rb', line 4 def doc @doc end |