Creating a html report and a screenshot for behat tests

Bug #1696627 reported by Niranjan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Unassigned

Bug Description

Here are the steps to follow for creating a html report and to take a screenshot while running a behat test.

http://paste.wgtn.cat-it.co.nz/745771#vagS+rJ/E66AbNjC0AB5yw

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Please provide the file separately.

Changed in mahara:
status: New → Confirmed
status: Confirmed → In Progress
importance: Undecided → Wishlist
Revision history for this message
Rebecca Blundell (rjb-dev) wrote :
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/7823

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/7823
Committed: https://git.mahara.org/mahara/mahara/commit/e35e3528cf8738b4d2010650ccf3b726f9af347a
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit e35e3528cf8738b4d2010650ccf3b726f9af347a
Author: Rebecca Blundell <email address hidden>
Date: Wed Jun 14 11:19:10 2017 +1200

Bug #1696627: Behat HTML report

- Updated details for behat.yml config to BehatConfigManager and a call
to update the file
- Added BehatHooks to get screenshots on fail. Screenshots are saved in the
Behat maharadata directory at /behat/results/html/screenshots
- Added auto-open of report
- Added some explanatory notes on how to run report

If you set the "html" flag as third parameter of the Behat command, you can
generate the HTML report. The report will be saved in the Behat
dataroot under behat/html_results

If you accidentially set the "html" flag as 2nd parameter it will
instead show help info

behatnotneeded

Change-Id: I76c67a1148278efa049317b526fef760c1a43ded

Robert Lyon (robertl-9)
Changed in mahara:
milestone: none → 18.04.0
status: In Progress → Fix Committed
tags: added: nominatedfeature
removed: wishlist
summary: - Steps for creating a html report and a screenshot for behat tests
+ Creating a html report and a screenshot for behat tests
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.