[arquillian-issues] [JBoss JIRA] (ARQGRA-382) Make @InitialPage work for Field

Karel Piwko (JIRA) issues at jboss.org
Thu Aug 10 08:23:00 EDT 2017


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

Karel Piwko commented on ARQGRA-382:
------------------------------------

Vsevolod - haven't read through whole comment but I wanted to flag you can use @InSequence annotation with Arquillian to order tests:

http://arquillian.org/guides/getting_started_rinse_and_repeat/

> Make @InitialPage work for Field
> --------------------------------
>
>                 Key: ARQGRA-382
>                 URL: https://issues.jboss.org/browse/ARQGRA-382
>             Project: Arquillian Graphene
>          Issue Type: Enhancement
>          Components: core
>    Affects Versions: 2.0.0.CR1
>            Reporter: Karel Piwko
>             Fix For: 2.0-Tracking
>
>
> While @InitialPage allows to be used on test class field, it does not do anything.
> {code}
> @InitialPage AddUserPage page;
> @Test
> void test() {
>     page.foo()
> }
> {code}
> raises
> {code}
> java.lang.NullPointerException: null
>         at com.acme.example.test.DroneTest.addUser(DroneTest.java:35)
> {code}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the arquillian-issues mailing list