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

Felipe Reis (JIRA) jira-events at lists.jboss.org
Thu Aug 22 20:55:26 EDT 2013


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

Felipe Reis commented on ARQ-1077:
----------------------------------

I am using that workaround as well, my test class has the exact same structure as yours. However the data is available only at the test annotated with InSequence(1).

Aslak had pointed out that possibility and [~edevera] had this exact same issue as he stated in [this comment|https://issues.jboss.org/browse/ARQ-1077?focusedCommentId=12764790&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12764790]

Maybe you're doing something slightly different from us, but I'm having a hard time figuring that out.

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

    @Deployment(testable = true)
    public static WebArchive createDeployment() {
        // Create Archive
    }
    
    @Test
    @InSequence(1)
    public void setupDatabase(){
        // I can query data from here
    }

    @Test
    @InSequence(2)
    @RunAsClient
    public void ifNavigationTabsCorrectWhenLoggedInThenPass(@ArquillianResource URL applicationPath, @Drone GrapheneSelenium browser) {
        // ... but here the database seems to be empty
    }

}
{code}
                
> 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
>              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
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the arquillian-issues mailing list