Class: Gridinit::Jmeter::HttpRequest
- Inherits:
-
Object
- Object
- Gridinit::Jmeter::HttpRequest
- Includes:
- Helper
- Defined in:
- lib/gridinit-jmeter/idl/http_request.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
Returns the value of attribute doc.
Instance Method Summary collapse
-
#initialize(name, params = {}) ⇒ HttpRequest
constructor
A new instance of HttpRequest.
Methods included from Helper
Constructor Details
#initialize(name, params = {}) ⇒ HttpRequest
Returns a new instance of HttpRequest.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/gridinit-jmeter/idl/http_request.rb', line 15 def initialize(name, params={}) @doc = Nokogiri::XML("<HTTPSamplerProxy guiclass=\"HttpTestSampleGui\" testclass=\"HTTPSamplerProxy\" testname=\"\#{name}\" enabled=\"true\">\n <elementProp name=\"HTTPsampler.Arguments\" elementType=\"Arguments\" guiclass=\"HTTPArgumentsPanel\" testclass=\"Arguments\" testname=\"\#{name}\" enabled=\"true\">\n <collectionProp name=\"Arguments.arguments\"/>\n </elementProp>\n <stringProp name=\"HTTPSampler.domain\"/>\n <stringProp name=\"HTTPSampler.port\"/>\n <stringProp name=\"HTTPSampler.connect_timeout\"/>\n <stringProp name=\"HTTPSampler.response_timeout\"/>\n <stringProp name=\"HTTPSampler.protocol\"/>\n <stringProp name=\"HTTPSampler.contentEncoding\"/>\n <stringProp name=\"HTTPSampler.path\"/>\n <stringProp name=\"HTTPSampler.method\">GET</stringProp>\n <boolProp name=\"HTTPSampler.follow_redirects\">true</boolProp>\n <boolProp name=\"HTTPSampler.auto_redirects\">false</boolProp>\n <boolProp name=\"HTTPSampler.use_keepalive\">true</boolProp>\n <boolProp name=\"HTTPSampler.DO_MULTIPART_POST\">false</boolProp>\n <boolProp name=\"HTTPSampler.monitor\">false</boolProp>\n <stringProp name=\"HTTPSampler.embedded_url_re\"/>\n</HTTPSamplerProxy>)\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/http_request.rb', line 12 def doc @doc end |