[arquillian-issues] [JBoss JIRA] (ARQ-1761) Investigate Screenshooter per container for Droidium

Stefan Miklosovic (JIRA) issues at jboss.org
Wed Apr 16 04:06:35 EDT 2014


Stefan Miklosovic created ARQ-1761:
--------------------------------------

             Summary: Investigate Screenshooter per container for Droidium
                 Key: ARQ-1761
                 URL: https://issues.jboss.org/browse/ARQ-1761
             Project: Arquillian
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
          Components: Extension - Droidium
    Affects Versions: droidium_1.0.0.Alpha5
            Reporter: Stefan Miklosovic


Screenshooter is injected into test case like this

{code}
@ArquillianResource private Screenshooter screenshooter;
{code}

It behaves ok when you have just one Android container available.

The problem is, how to make difference between these screenshooters when you have multiple Androids in your test.

Injection of Screenshooter has to know which device will be that screenshooter backed by.

The best solution to me seems to be like this:

{code}
@ArquillianResource
@TargetsContainer("android_1")
private Screenshooter screenshooter_1;

@ArquillianResource
@TargetsContainer("android_2")
private Screenshooter screenshooter_2;
{code}

Enrichment of test class is done in this context in ResourceProvider where we have access to annotations put on injection point.

There is already ApplicationScoped register of AndroidDevices which are bound to some container and deployments.

In general, you do not need any deployment method but you have always some Android container so matching ArquillianResource with @TargetsContainer seems to be very natural.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the arquillian-issues mailing list