Reporter does not consider screenshots taken manually in test
methods
---------------------------------------------------------------------
Key: ARQ-1726
URL:
https://issues.jboss.org/browse/ARQ-1726
Project: Arquillian
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Extension - Recorder
Affects Versions: recorder_1.0.0.Alpha2
Reporter: Stefan Miklosovic
Assignee: Stefan Miklosovic
Fix For: recorder_1.0.0.Alpha3
Beside screenshots taken automatically before / after test method according to
configuration, user can take screenshots manually with screenshooter injection like this
{code}
@ArquillianResource Screenshooter screenshooter;
public void test()
{
screenshooter.takeScreenshot();
}
{code}
It holds for Recoder injection point as well when user can record videos manually in test
method like
{code}
@ArquillianResource Recoder recorder;
public void test()
{
recorder.start();
// something is happening
recorder.stop();
}
{code}
However, these screenshots and videos does not appear in final report file because when
it is taken directly by injection interface, it does not fire any screenshot report event.
Logic behind screenshooter and recorder knows this because it invokes screenshooter itself
but concrete screenshooter implementation does not fire them.
There needs to be a way how to report these screenshots which were taken manually as
well.
Taking of screenshots manually is the "last chance" for a user to take them
exactly where he needs them to be taken and not showing them in report could be justified
however due to user experience these should be taken into account as well definitely.