lib/ilesspainfulclient-cucumber/operations.rb in ilesspainfulclient-cucumber-0.0.6 vs lib/ilesspainfulclient-cucumber/operations.rb in ilesspainfulclient-cucumber-0.0.7
- old
+ new
@@ -215,10 +215,10 @@
def screenshot
if !/localhost/.match(ENV['DEVICE_ENDPOINT'])
f = %x[idevicescreenshot -u #{ENV['UUID']}]
line=f.strip().split("\n").last
filename=line.split(" ").last
- outfile = "#{ENV['SCREENSHOT_PATH_PREFIX']}_#{@@Step_line}.png"
+ outfile = "#{ENV['SCREENSHOT_PATH_PREFIX']}_#{Step_line}.png"
if File.exist?filename
puts "converting screenshot: #{filename} to 1.png"
system("convert #{filename} to #{outfile}")
else
raise "Error. Unable to screenshot for device #{ENV['UUID']}."