[arquillian-issues] [JBoss JIRA] (ARQ-1077) Persistence Plugin does not work with Drone/Graphene

Karel Piwko (JIRA) jira-events at lists.jboss.org
Wed Aug 22 03:43:15 EDT 2012


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

Karel Piwko commented on ARQ-1077:
----------------------------------

Guys, 

I thing this issue can be fixed if:
* Drone extension could be enabled in IN_CONTAINER mode or
* Persistence extension could be enabled in AS_CLIENT mode or
* Test run in IN_CONTAINER mode, however Drone tests are forced to run AS_CLIENT

So, I think following scenario should work without any code modifications required:

{code}
@RunWith(Arquillian.class)
@DataSource("java:jboss/datasources/ExampleDS")
@UsingDataSet("OneUserAccount-Admin.yml")
public void CombinedTest {


// notice testable=true, hence run in container by default
@Deployment(testable=true) 
public static Archive<?> deployment() {
  // return full archive for Drone here
}

@Test
@RunAsClient
public void droneTest(@Drone WebDriver driver) {
   driver.XYZ();

}
{code}

Bryan, can you try this approach and let us know?
                
> Persistence Plugin does not work with Drone/Graphene
> ----------------------------------------------------
>
>                 Key: ARQ-1077
>                 URL: https://issues.jboss.org/browse/ARQ-1077
>             Project: Arquillian
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Extension - Drone, Extension - Persistence
>         Environment: JBoss AS 7 Container
>            Reporter: Bryan Saunders
>            Assignee: Karel Piwko
>              Labels: drone, persistence
>
> Persistence Extension does not execute when being used with the Drone/Graphene extensions.  When you run the tests in Client Mode the @UsingDataSet annotations do not trigger and populate the database. @ApplyScriptBefore also does not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list