Class: Gridinit::Jmeter::OsProcessSampler
- Inherits:
-
Object
- Object
- Gridinit::Jmeter::OsProcessSampler
- Includes:
- Helper
- Defined in:
- lib/gridinit-jmeter/idl/os_process_sampler.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
Returns the value of attribute doc.
Instance Method Summary collapse
-
#initialize(name, params = {}) ⇒ OsProcessSampler
constructor
A new instance of OsProcessSampler.
Methods included from Helper
Constructor Details
#initialize(name, params = {}) ⇒ OsProcessSampler
Returns a new instance of OsProcessSampler.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/gridinit-jmeter/idl/os_process_sampler.rb', line 15 def initialize(name, params={}) @doc = Nokogiri::XML("<SystemSampler guiclass=\"SystemSamplerGui\" testclass=\"SystemSampler\" testname=\"\#{name}\" enabled=\"true\">\n <boolProp name=\"SystemSampler.checkReturnCode\">false</boolProp>\n <stringProp name=\"SystemSampler.expectedReturnCode\">0</stringProp>\n <stringProp name=\"SystemSampler.command\"/>\n <elementProp name=\"SystemSampler.arguments\" elementType=\"Arguments\" guiclass=\"ArgumentsPanel\" testclass=\"Arguments\" testname=\"\#{name}\" enabled=\"true\">\n <collectionProp name=\"Arguments.arguments\"/>\n </elementProp>\n <elementProp name=\"SystemSampler.environment\" elementType=\"Arguments\" guiclass=\"ArgumentsPanel\" testclass=\"Arguments\" testname=\"\#{name}\" enabled=\"true\">\n <collectionProp name=\"Arguments.arguments\"/>\n </elementProp>\n <stringProp name=\"SystemSampler.directory\"/>\n</SystemSampler>)\n EOS\n update params\nend\n".strip_heredoc) |
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
12 13 14 |
# File 'lib/gridinit-jmeter/idl/os_process_sampler.rb', line 12 def doc @doc end |