Thank you. I will have a look. On Thu, Nov 5, 2015 at 2:10 PM, Akalanka Pagoda Arachchi <[email protected] > wrote:
> Hi Malintha, > > The testng.xml file is located in [1]. > > The test cases failing are different in each run, at the moment test [2], > and [3] have failed in jenkins. > > Please note that although this is frequent in jenkins, when doing a local > run, this issue is rarely occurring. Furthermore, this issue did not occur > when the tests are run sequentially. We made it to run in parallel since it > will save more time when building. > > [1] - > https://github.com/wso2/product-mb/blob/master/modules/integration/tests-integration/tests-amqp/src/test/resources/testng.xml > [2] - > https://github.com/wso2/product-mb/blob/master/modules/integration/tests-integration/tests-amqp/src/test/java/org/wso2/mb/integration/tests/amqp/functional/AutoAcknowledgementsTestCase.java > [3] - > https://github.com/wso2/product-mb/blob/master/modules/integration/tests-integration/tests-amqp/src/test/java/org/wso2/mb/integration/tests/amqp/functional/DurableTopicSubscriptionTestCase.java > > Thanks, > Akalanka. > > > On Thu, Nov 5, 2015 at 1:51 PM, Malintha Adikari <[email protected]> > wrote: > >> Hi Akalanka, >> >> Can you point me to the test case which you are trying to run in >> parallel. >> >> Regards, >> Malintha >> >> On Thu, Nov 5, 2015 at 11:47 AM, Akalanka Pagoda Arachchi < >> [email protected]> wrote: >> >>> Hi All, >>> >>> When we configure to run automation tests in parallel, following error >>> is thrown intermittently. >>> >>> I"ve enabled to run 10 threads in parallel with the following config in >>> testng.xml file. >>> >>> <test name="tests-amqp-parallel" preserve-order="false" parallel="true" >>> thread-count="10"> >>> >>> Stacktrace >>> >>> java.lang.NullPointerException >>> at org.apache.xerces.dom.ParentNode.nodeListGetLength(Unknown Source) >>> at org.apache.xerces.dom.ParentNode.getLength(Unknown Source) >>> at >>> org.wso2.carbon.automation.engine.context.AutomationContext.extractUser(AutomationContext.java:307) >>> at >>> org.wso2.carbon.automation.engine.context.AutomationContext.getSuperTenant(AutomationContext.java:286) >>> at >>> org.wso2.carbon.automation.engine.context.AutomationContext.getContextTenant(AutomationContext.java:336) >>> at >>> org.wso2.carbon.automation.engine.context.AutomationContext.getContextUrls(AutomationContext.java:477) >>> at >>> org.wso2.mb.integration.common.utils.backend.MBIntegrationBaseTest.init(MBIntegrationBaseTest.java:59) >>> at >>> org.wso2.mb.integration.tests.amqp.functional.AutoAcknowledgementsTestCase.prepare(AutoAcknowledgementsTestCase.java:61) >>> >>> >>> There are kind of similar issue reported regarding DOM usage with threads >>> [1]. This is happening when initialising each test with following two lines. >>> >>> >>> automationContext = new AutomationContext("MB", userMode); >>> >>> backendURL = automationContext.getContextUrls().getBackEndUrl(); >>> >>> >>> Any idea on this? >>> >>> >>> Thanks, >>> >>> Akalanka >>> >>> >>> [1] - https://issues.apache.org/jira/browse/XERCESJ-727 >>> >>> >>> >>> >>> -- >>> *Darshana Akalanka Pagoda Arachchi,* >>> *Software Engineer* >>> *078-4721791* >>> >> >> >> >> -- >> *Malintha Adikari* >> Software Engineer >> WSO2 Inc.; http://wso2.com >> lean.enterprise.middleware >> >> Mobile: +94 71 2312958 >> Blog: http://malinthas.blogspot.com >> Page: http://about.me/malintha >> > > > > -- > *Darshana Akalanka Pagoda Arachchi,* > *Software Engineer* > *078-4721791* > -- *Malintha Adikari* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware Mobile: +94 71 2312958 Blog: http://malinthas.blogspot.com Page: http://about.me/malintha
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
