Screenshots for selenium tests

Marcin Czajka December 16, 2013

I'm working now on maven + bamboo + selenium tests. In case of test failure I would like to attach a screenshot for a failed test report. Is there any way to achieve this.

regards

Marcin

2 answers

1 vote
Aseem Parikh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 16, 2013

This blog looks like it has everything you need to set that up: http://blogs.steeplesoft.com/posts/2012/01/24/grabbing-screenshots-of-failed-selenium-tests/

Marcin Czajka December 17, 2013

It's not a problem to capture a screenshot, I'm just trying to attach this screenshot to JUnit report displayed on bamboo.

PiotrA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 17, 2013

Have you considered "attaching" the screenshots to the build result via Bamboo Artifact(s)?

oh, and btw: you might be interested in placing your vote on this particular issue https://jira.atlassian.com/browse/BAM-13108

Jamey Holden March 9, 2014

Is it possible to publish an artifact if the tests fail? From what I've seen artifacts don't get published if the tests fail. Even using stages, the later stage doesn't run if a previous stage failed. I guess perhaps this is a failing with maven and being unable to break it down into seperate phases. :(

John D Giotta April 15, 2015

Too bad that reference link is dead.

0 votes
Marcin Czajka December 17, 2013

Hi Piotr,

I understand that Bamboo Artifacts are the only proper way to achieve that now, I'll use it then.

many thanks,

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events