9 Replies Latest reply on Oct 7, 2016 9:50 PM by vinoth selvaraj

    Selenium functional tests fails when using TestNg parallel parameter with Arquillian (drone & graphene)

    Anthony Smith Newbie

      How does one execute functional arquillian tests in parallel.  When setting the -parallel parameter to either method, tests, or classes my test are immediately failed with an ILLegalState and NullPointer Exception.  See attachments for full java exception.

       

      testng xml file

      <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >

      <suite name="Account Services" verbose="10" parallel="tests" thread-count="10" preserve-order="false" configfailurepolicy="continue">

          <test name="Account Services - Services n Settings - Customize Display Tests">

              <classes>

                  <class name="com.frostbank.myfrost.accountservices.customizedisplay.MaskAccountNumbersTest" />

                  <class name="com.frostbank.myfrost.accountservices.customizedisplay.ShowHideMemoTest" />

                  <class name="com.frostbank.myfrost.accountservices.customizedisplay.SetLanguageTest"/>

                  <class name="com.frostbank.myfrost.accountservices.NicknameAccountTest"/>

                  <class name="com.frostbank.myfrost.accountservices.HideAccountTest"/>

              </classes>

          </test>

       

          <test name="Account Services - Customer Service - Contact Information Tests">

              <classes>

                  <class name="com.frostbank.myfrost.accountservices.contactinfo.ChangeEmailAddressTest" />

                  <class name="com.frostbank.myfrost.accountservices.contactinfo.ChangePhoneNumberTest" />

              </classes>

          </test>

      </suite>

       

      Exceptions

      arquillianBeforeClass(com.frostbank.myfrost.accountservices.HideAccountTest)  Time elapsed: 1.739 sec  <<< FAILURE!

      java.lang.IllegalStateException: No TestRunnerAdaptor found, @BeforeSuite has not been called

       

      arquillianBeforeAfterMethod(com.frostbank.myfrost.accountservices.SubscribeToVDITest)  Time elapsed: 0.001 sec  <<< FAILURE!

      java.lang.NullPointerException: null

              at com.frostbank.myfrost.BaseTest.arquillianBeforeAfterMethod(BaseTest.java:269)

       

      arquillianAfterSuite(com.frostbank.myfrost.accountservices.SubscribeToVDITest)  Time elapsed: 0.003 sec  <<< FAILURE!

      java.lang.NullPointerException: null

              at org.arquillian.recorder.reporter.impl.ReporterLifecycleObserver.observeAfterSuite(ReporterLifecycleObserver.java:222)