[arquillian-issues] [JBoss JIRA] (ARQGRA-452) Allow screenshooter configuration to be locally overridden

Stefan Miklosovic (JIRA) issues at jboss.org
Fri Jun 13 06:05:38 EDT 2014


    [ https://issues.jboss.org/browse/ARQGRA-452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12975938#comment-12975938 ] 

Stefan Miklosovic commented on ARQGRA-452:
------------------------------------------

What kind of strategy do you want to use here when you put @Screenshot annotation on a method? That screenshot annotation has to have some default values. It is clear that specified parameter to that annotation overrides settings in arquillian.xml. In case that property is not specified there, what setting should "win"? Annotation one which is not specified explicitly or property in arq.xml ? 

> Allow screenshooter configuration to be locally overridden 
> -----------------------------------------------------------
>
>                 Key: ARQGRA-452
>                 URL: https://issues.jboss.org/browse/ARQGRA-452
>             Project: Arquillian Graphene
>          Issue Type: Enhancement
>      Security Level: Public(Everyone can see) 
>          Components: screenshooter
>    Affects Versions: 2.1-Tracking
>            Reporter: Jakub Cechacek
>            Assignee: Stefan Miklosovic
>            Priority: Optional
>
> Currently the configuration of Screenshooter is done globally inside arquillian.xml. It would be useful to provide a way how to change this configuration locally for specific class.
> Example:
> arquillian xml:
> {code}
> <property name="takeOnEveryAction">false</property>
> <property name="takeBeforeTest">false</property>
> <property name="takeAfterTest">false</property>
> <property name="takeWhenTestFailed">true</property>
> {code}
> This configuration is sufficient for the majority of my tests. However then there are those few complicated / unstable tests for which I would like to take more screenshots. AFAIK there is no way how to change the configuration only for these tests. 
> Nice solution would be to provide an annotation which will allow you to change the configuration. Something like 
> {code}
> @Screenshot(onEveryAction=true, afterTest=True, beforeTest=True)
> public class MyUnstableTestCase()
> {code}



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the arquillian-issues mailing list