Skip to content

Commit

Permalink
add a flood with files example
Browse files Browse the repository at this point in the history
  • Loading branch information
timkoopmans committed Oct 10, 2016
1 parent d4c3101 commit e87987e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions examples/flood_files.rb
@@ -0,0 +1,19 @@
$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"
]

0 comments on commit e87987e

Please sign in to comment.