module RubyJmeter
class GCThroughputShapingTimer
attr_accessor :doc
include Helper
def initialize(name, steps, params={})
@doc = Nokogiri::XML(<<-EOF.strip_heredoc)
EOF
steps.each_with_index do |step, index|
@doc.at_xpath('//collectionProp') <<
Nokogiri::XML(<<-EOF.strip_heredoc).children
#{step[:start_rps]}
#{step[:end_rps]}
#{step[:duration]}
EOF
end
update params
end
end
end