Class: Gridinit::Jmeter::UserDefinedVariable
- Inherits:
-
Object
- Object
- Gridinit::Jmeter::UserDefinedVariable
- Includes:
- Helper
- Defined in:
- lib/gridinit-jmeter/config/user_defined_variable.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
Returns the value of attribute doc.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ UserDefinedVariable
constructor
A new instance of UserDefinedVariable.
Methods included from Helper
Constructor Details
#initialize(params = {}) ⇒ UserDefinedVariable
Returns a new instance of UserDefinedVariable.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/gridinit-jmeter/config/user_defined_variable.rb', line 7 def initialize(params={}) @doc = Nokogiri::XML(" <Arguments guiclass=\"ArgumentsPanel\" testclass=\"Arguments\" testname=\"User Defined Variables\" enabled=\"true\">\n <collectionProp name=\"Arguments.arguments\">\n <elementProp name=\"testguid\" elementType=\"Argument\">\n <stringProp name=\"Argument.name\"></stringProp>\n <stringProp name=\"Argument.value\"></stringProp>\n <stringProp name=\"Argument.metadata\">=</stringProp>\n </elementProp>\n </collectionProp>\n <stringProp name=\"TestPlan.comments\"></stringProp>\n </Arguments>\n EOF\n update params\nend\n".strip_heredoc) |
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
5 6 7 |
# File 'lib/gridinit-jmeter/config/user_defined_variable.rb', line 5 def doc @doc end |