Hi Rajith, You have misconfigured the portOffset value in automation.xml. It should be like *<parameter name="-DportOffset" value="900" />*
In your configuration hyphen is missing. Because of that server starts on default ports even though all constructed URLs refer to updated port offset. This leads to wait for login method to fail as backend URL is constructed with correct port off set. Please follow the guide at [1] for more details. [1] https://docs.google.com/a/wso2.com/document/d/1No0WiacifJquSaSgdc6jE5gyrw51lgnj2MWmFQdt_iE/edit?usp=sharing Thanks, Krishantha. On Tue, Sep 1, 2015 at 8:12 PM, Rajith Roshan <raji...@wso2.com> wrote: > Hi Krishantha, > > Please do find the requested files in [1] for a particular test module. > > [1] - > https://drive.google.com/a/wso2.com/folderview?id=0B8xmd1n2DieYfjk2X0Fnb20yMUF0TnI1X1NIek5zTXFtUmhhU0wxRXFTQ1lCQ19qSlN5RmM&usp=sharing > > Thanks! > Rajith > > On Tue, Sep 1, 2015 at 7:55 PM, Krishantha Samaraweera < > krishan...@wso2.com> wrote: > >> Hi Rajith, >> >> Can you share the following files in your test module >> >> 1. automation.xml >> 2. pom.xml >> 3. automation.log at your module/target/log/automation.log >> >> Thanks, >> Krishantha. >> >> On Tue, Sep 1, 2015 at 7:46 PM, Rajith Roshan <raji...@wso2.com> wrote: >> >>> Hi Devs, >>> >>> I refer the doc [1] for updating Jacoco code coverage tool for >>> integration tests in product G-Reg. It builds successfully when code >>> coverage is set to false in automation.xml as follows. >>> >>> <coverage>false</coverage> >>> >>> [1] - >>> https://docs.google.com/document/d/1pMJGdRH4Kmc4J3rYzgnpGlR5AnSeoC4QL9gMX9tUhYs/edit# >>> >>> But it gives the following error when code coverage is enabled. >>> Any help will be appreciated. >>> >>> >>> at >>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) >>> ERROR >>> [org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener] - >>> Execution error occurred in TestExecutionListener:- >>> java.lang.reflect.InvocationTargetException >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >>> at >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>> at java.lang.reflect.Method.invoke(Method.java:606) >>> at >>> org.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.executeExtensible(TestNGExtensionExecutor.java:75) >>> at >>> org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:47) >>> at org.testng.TestNG.runExecutionListeners(TestNG.java:1032) >>> at org.testng.TestNG.run(TestNG.java:983) >>> at >>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178) >>> at >>> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92) >>> at >>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >>> at >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>> at java.lang.reflect.Method.invoke(Method.java:606) >>> at >>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) >>> at >>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) >>> at >>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) >>> at >>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) >>> at >>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) >>> Caused by: java.lang.RuntimeException: Fail to start carbon server >>> at >>> org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension.handleException(CarbonServerExtension.java:70) >>> at >>> org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension.onExecutionStart(CarbonServerExtension.java:54) >>> ... 20 more >>> Caused by: >>> org.wso2.carbon.automation.engine.exceptions.AutomationFrameworkException: >>> Login failed for user admin while verifying server startup. Please make >>> sure that server is up and running or user is a valid user >>> at >>> org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:136) >>> at >>> org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:51) >>> at >>> org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.startServerUsingCarbonHome(CarbonServerManager.java:165) >>> at >>> org.wso2.carbon.automation.extensions.servers.carbonserver.TestServerManager.startServer(TestServerManager.java:109) >>> at >>> org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension.onExecutionStart(CarbonServerExtension.java:50) >>> ... 20 more >>> org.apache.maven.surefire.util.SurefireReflectionException: >>> java.lang.reflect.InvocationTargetException; nested exception is >>> java.lang.reflect.InvocationTargetException: null >>> java.lang.reflect.InvocationTargetException >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >>> at >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>> at java.lang.reflect.Method.invoke(Method.java:606) >>> at >>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) >>> at >>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) >>> at >>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) >>> at >>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) >>> at >>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) >>> Caused by: java.lang.RuntimeException: Error on initializing test >>> environment >>> at >>> org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.handleException(TestExecutionListener.java:71) >>> at >>> org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:52) >>> at org.testng.TestNG.runExecutionListeners(TestNG.java:1032) >>> at org.testng.TestNG.run(TestNG.java:983) >>> at >>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178) >>> at >>> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92) >>> at >>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96) >>> ... 9 more >>> Caused by: java.lang.reflect.InvocationTargetException >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >>> at >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>> at java.lang.reflect.Method.invoke(Method.java:606) >>> at >>> org.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.executeExtensible(TestNGExtensionExecutor.java:75) >>> at >>> org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:47) >>> ... 14 more >>> Caused by: java.lang.RuntimeException: Fail to start carbon server >>> at >>> org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension.handleException(CarbonServerExtension.java:70) >>> at >>> org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension.onExecutionStart(CarbonServerExtension.java:54) >>> ... 20 more >>> Caused by: >>> org.wso2.carbon.automation.engine.exceptions.AutomationFrameworkException: >>> Login failed for user admin while verifying server startup. Please make >>> sure that server is up and running or user is a valid user >>> at >>> org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:136) >>> at >>> org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil.waitForLogin(ClientConnectionUtil.java:51) >>> at >>> org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.startServerUsingCarbonHome(CarbonServerManager.java:165) >>> at >>> org.wso2.carbon.automation.extensions.servers.carbonserver.TestServerManager.startServer(TestServerManager.java:109) >>> at >>> org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension.onExecutionStart(CarbonServerExtension.java:50) >>> ... 20 more >>> >>> Results : >>> >>> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 >>> >>> >>> Thanks! >>> Rajith >>> >>> -- >>> Rajith Roshan >>> Software Engineer, WSO2 Inc. >>> Mobile: +94-72-642-8350 <%2B94-71-554-8430> >>> >> >> >> >> -- >> Krishantha Samaraweera >> Senior Technical Lead - Test Automation >> Mobile: +94 77 7759918 >> WSO2, Inc.; http://wso2.com/ >> lean . enterprise . middleware. >> > > > > -- > Rajith Roshan > Software Engineer, WSO2 Inc. > Mobile: +94-72-642-8350 <%2B94-71-554-8430> > -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middleware.
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev