[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:50:01 EDT 2012


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

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

The idea is to create enum of available browser types

and test/class-level annotation for selecting on which browser can given test run.

If test shouldn't / can't be run on given browser, {{SkipException}} will be thrown.

{code:java}
// exact match (able to run)
@Test @RunsOnBrowser(value=FIREFOX)

// exclusion (not able to run)
@Test @RunsOnBrowser(exclude=HTML_UNIT)
{code}
                
> 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