examples/flood_files.rb
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'ruby-jmeter'
test do
threads count: 1 do
visit name: 'Home', url: 'https://flooded.io'
end
end.flood ENV['FLOOD_API_TOKEN'],
privacy: 'public',
name: ENV['FLOOD_NAME'] ||= 'Simple Demo',
project: 'workspace',
region: ENV['REGION'] ||= 'us-west-2',
override_parameters: '-Dsun.net.inetaddr.ttl=30',
files: [
"#{Dir.pwd}/data1.csv",
"#{Dir.pwd}/data2.csv",
"#{Dir.pwd}/data3.csv",
"#{Dir.pwd}/data4.csv"
]