Creating a html report and a screenshot for behat tests

Bug #1696627 reported by Niranjan on 2017-06-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
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

Please provide the file separately.

Changed in mahara:
status: New → Confirmed
status: Confirmed → In Progress
importance: Undecided → Wishlist

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) on 2018-01-15
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) on 2018-04-05
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers