[arquillian-issues] [JBoss JIRA] (ARQ-1077) Persistence Plugin does not work with Drone/Graphene
Bryan Saunders (JIRA)
jira-events at lists.jboss.org
Wed Aug 22 17:27:15 EDT 2012
[ https://issues.jboss.org/browse/ARQ-1077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713189#comment-12713189 ]
Bryan Saunders commented on ARQ-1077:
-------------------------------------
I was able to get it to work with a combination of both suggestions. Here is the working code:
{code:java}
@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(){
// Do nothing, so Persistence will setup database
}
@Test
@InSequence(2)
@RunAsClient
public void ifNavigationTabsCorrectWhenLoggedInThenPass(@ArquillianResource URL applicationPath, @Drone GrapheneSelenium browser) {
// .. Perform Test
}
}
{code}
So it appears that they do work together, It feel's somewhat hackish though. Perhaps in a future release Persistence could be updated to work in AS_CLIENT mode. :-)
Thanks for the help guys.
> 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: 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