Class: Gridinit::Jmeter::XpathExtractor
- Inherits:
-
Object
- Object
- Gridinit::Jmeter::XpathExtractor
- Includes:
- Helper
- Defined in:
- lib/gridinit-jmeter/idl/xpath_extractor.rb,
lib/gridinit-jmeter/post_processors/xpath_extractor.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
Returns the value of attribute doc.
Instance Method Summary collapse
-
#initialize(name, xpath, params = {}) ⇒ XpathExtractor
constructor
A new instance of XpathExtractor.
Methods included from Helper
Constructor Details
#initialize(name, xpath, params = {}) ⇒ XpathExtractor
Returns a new instance of XpathExtractor.
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/gridinit-jmeter/idl/xpath_extractor.rb', line 15 def initialize(name, params={}) @doc = Nokogiri::XML(<<-EOS.strip_heredoc) <XPathExtractor guiclass="XPathExtractorGui" testclass="XPathExtractor" testname="#{name}" enabled="true"> <stringProp name="XPathExtractor.default"/> <stringProp name="XPathExtractor.refname"/> <stringProp name="XPathExtractor.xpathQuery"/> <boolProp name="XPathExtractor.validate">false</boolProp> <boolProp name="XPathExtractor.tolerant">false</boolProp> <boolProp name="XPathExtractor.namespace">false</boolProp> </XPathExtractor>) EOS update params end |
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
12 13 14 |
# File 'lib/gridinit-jmeter/idl/xpath_extractor.rb', line 12 def doc @doc end |