Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-1797

Allow screenshooter configuration to be locally overridden

XMLWordPrintable

      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:

      <property name="takeOnEveryAction">false</property>
      <property name="takeBeforeTest">false</property>
      <property name="takeAfterTest">false</property>
      <property name="takeWhenTestFailed">true</property>
      

      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

      @Screenshot(onEveryAction=true, afterTest=True, beforeTest=True)
      public class MyUnstableTestCase()
      

              smikloso Stefan Miklosovic (Inactive)
              jcechace@redhat.com Jakub Čecháček
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: