14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# file_size_checker(stepname, filename, minsize, maxsize) - negative means ignore
# file_size_checker('create db','testing.db',100,-1)
num_records=rand(5) # 0000
record_step("add #{num_records}","start","n/a")
status=false
(0..num_records).each do |i|
randstring="a;lskdfja;sdfj;alsdfj;aslfdj;alsfja;lsfdj;alsfja;lsjfd;lasfjl;asdfja;slfj;alsjf;asljf;alsjf;lasdjf;lasjf;lasjf;alsjf;lashflkashflkerhflkdsvnlasldhlfaldf"
# status=system "sqlite3 testing.db \"insert into blah (name) values ('#{randstring}');\""
system "megatest -step testing :state wrote_junk :status #{num_records}"
sleep(5)
puts "i=#{i}"
end
if status==0
status='pass'
|
>
|
|
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# file_size_checker(stepname, filename, minsize, maxsize) - negative means ignore
# file_size_checker('create db','testing.db',100,-1)
num_records=rand(5) # 0000
record_step("add #{num_records}","start","n/a")
status=false
(0..num_records).each do |i|
randstring="abc";
# "a;lskdfja;sdfj;alsdfj;aslfdj;alsfja;lsfdj;alsfja;lsjfd;lasfjl;asdfja;slfj;alsjf;asljf;alsjf;lasdjf;lasjf;lasjf;alsjf;lashflkashflkerhflkdsvnlasldhlfaldf"
# status=system "sqlite3 testing.db \"insert into blah (name) values ('#{randstring}');\""
system "megatest -step testing :state wrote_junk :status #{num_records}"
sleep(5)
puts "i=#{i}"
end
if status==0
status='pass'
|