← Back to team overview

mahara-contributors team mailing list archive

[Bug 1902318] Re: Better options when it comes to making screenshots in behat

 

For point 1 and 2 we have patch https://reviews.mahara.org/#/c/11414/
For point 3 we havehttps://reviews.mahara.org/#/c/11415/

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1902318

Title:
  Better options when it comes to making screenshots in behat

Status in Mahara:
  In Progress

Bug description:
  Currently there is some code for creating a screenshot on step failure
  but it's not very useful as it saves the screenshot to dataroot with
  the name of the scenario as a subdir and feature as the name of the
  image file but when a step fails the error output mentions the feature
  file and step line so it's hard to quickly work out what screenshot is
  for what failure.

  Changes I want to implement:

  1) Get the step fail screenshot to be better named, eg have the name
  of the feature file path be the subdir, eg for
  social/delete_page_collection_group.feature it makes
  social__delete_page_collection_group and for the screenshot it makes
  have the text of the failed step and line number, eg
  IloginasUserBwithpasswordKupuh1pa_line48.png

  2) Create a step in BehatGeneral so that we can force a screenshot as
  it's own step so we can get multiple screenshots during a feature so
  that we can see what is happening before a failure. Because the step
  will be named specifically for making a screenshot we will need to
  allow the passing in of a variable to save the screenshot as, eg  And
  show me a screenshot named "One",  And show me a screenshot named
  "Two" etc.

  3) For Ubuntu allow the system to open up the screenshot in image
  viewer without stopping behat running so that whether it's a failure
  screenshot or specified screenshot step we get to view the images
  without needing to hunt for them in the dataroot

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1902318/+subscriptions


References