[arquillian-issues] [JBoss JIRA] (ARQGRA-480) Screenshooter - When "takeOnEveryAction" is activated then "takeBeforeTest" seems to be activated as well
Lukáš Fryč (JIRA)
issues at jboss.org
Tue Oct 20 03:03:02 EDT 2015
[ https://issues.jboss.org/browse/ARQGRA-480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukáš Fryč updated ARQGRA-480:
------------------------------
Fix Version/s: 2.1.0.Alpha3
(was: 2.1-Tracking)
> Screenshooter - When "takeOnEveryAction" is activated then "takeBeforeTest" seems to be activated as well
> ---------------------------------------------------------------------------------------------------------
>
> Key: ARQGRA-480
> URL: https://issues.jboss.org/browse/ARQGRA-480
> Project: Arquillian Graphene
> Issue Type: Bug
> Components: screenshooter
> Affects Versions: 2.1.0.Alpha2
> Reporter: Matous Jobanek
> Assignee: Matous Jobanek
> Fix For: 2.1.0.Alpha3
>
>
> Consider this scenario:
> Arquillian.xml contains:
> {code:xml}
> <extension qualifier="screenshooter">
> <property name="takeOnEveryAction">true</property>
> <property name="takeBeforeTest">false</property>
> <property name="takeAfterTest">false</property>
> <property name="takeWhenTestFailed">false</property>
> </extension>
> {code}
> Then, when the test starts this output is written there in the console log:
> {noformat}
> Configuration of Arquillian Browser Screenshooter:
> rootDir target/screenshots
> screenshotType PNG
> takeBeforeTest true
> takeAfterTest false
> takeWhenTestFailed false
> takeOnEveryAction true
> {noformat}
> There is written {{takeBeforeTest true}} which can be confusing, because it is not activated there in the arquillian.xml. This output should reflect what is set there.
> The second thing is that the {{_before}} screenshot is taken when takeOnEveryAction is activated. However, neither {{_after}} nor {{_failed}} is taken. This is confusing as well - I would expect some consistency. I'm suggesting two options how to solve this:
> 1) take screenshots only on every interaction with the WebDriver object (as it is written in the [README|https://github.com/MatousJobanek/arquillian-graphene/tree/ARQ-1979_tests/extension/screenshooter#arquillian-browser-screenshooter]) - this means not taking screenshots during the before phase
> 2) take screenshots on every action at all - this means not only on every interaction with the WebDriver but also during before, after and when the test fails
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the arquillian-issues
mailing list