-1

The screenshots taken by Calabash has numbers appeneded at the end to make it unique. I am looking to remove this and just want the filename without these auto generated number.

As mentioend in the question at CALABASH - Renaming screenshot filenames without the iterator , I have edited code in lib/calabash-cucumber/failure_helpers.rb but it's of no help.

Any changes done to the core files are not getting reflected.

I am trying for Android.

Community
  • 1
  • 1
Purus
  • 5,701
  • 9
  • 50
  • 89

1 Answers1

0
def screenshot(options={:prefix => nil, :name => nil})

screenshot method in failure helpers has path variable appended with screen shot count path = "#{prefix}#{name}_#{@@screenshot_count}.png" remove screenshot count and that must work path = "#{prefix}#{name}.png"

Tejasvi Manmatha
  • 564
  • 7
  • 12