[arquillian-issues] [JBoss JIRA] (ARQ-1179) Mark a test so it will only run against certain browsers

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Wed Oct 31 06:54:01 EDT 2012


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

Lukáš Fryč commented on ARQ-1179:
---------------------------------

Drone can provide {{TestEnricher}} which will inject a browser for current test:

{code:java}
@ArquillianResource
BrowserType browserType;

public void selectDate() {
    switch (browserType) {
        case HTML_UNIT:
           xyz
        case INTERNET_EXPLORER:
           yxz
        default:
           zyx
    }
}
{code}

----

The Drone's browser-type enum can be reused in ARQGRA-135 - e.g. {{Graphene.getBrowserType()}} will return current type of browser.
                
> Mark a test so it will only run against certain browsers
> --------------------------------------------------------
>
>                 Key: ARQ-1179
>                 URL: https://issues.jboss.org/browse/ARQ-1179
>             Project: Arquillian
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Extension - Drone
>            Reporter: Brian Leathem
>            Assignee: Karel Piwko
>             Fix For: drone_1.2.0.next
>
>
> It would be useful to be able to annotate a particular test so it will only run when driven by a particular set of browsers.
> Some sample use cases:
> # Some tests cannot target the incomplete js impl found in html unit.  I would mark such tests not to run when htmlunit is the configured browser (in CI for instance)
> # Some tests may target non-standard behaviour in certain browsers (older IE versions for instance) and may not make sense to run in all browsers.  I would mark such tests not to run only when IE is the configured browser.

--
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