lib/calabash-android/operations.rb in calabash-android-0.2.11 vs lib/calabash-android/operations.rb in calabash-android-0.2.12

- old
+ new

@@ -198,10 +198,10 @@ path = ENV["SCREENSHOT_PATH_PREFIX"] || "results" FileUtils.mkdir_p path unless File.exist? path filename_prefix = FeatureNameMemory.feature_name.gsub(/\s+/, '_').downcase begin Timeout.timeout(30) do - file_name = "#{path}/#{filename_prefix}_#{StepCounter.step_line}.png" + file_name = "#{path}/#{filename_prefix}_#{FeatureNameMemory.invocation}_#{StepCounter.step_line}.png" image = http("/screenshot") open(file_name ,"wb") { |file| file.write(image) } log "Screenshot stored in: #{file_name}"