Im in the process of creating platform test case.I need to get some registry data in GREG product for my test case. My test case runs inside the Application server. When i add 2 product groups in automation.xml it throws an exception [1], according to schema its possible to add multiple product groups, what should be the issue, i have attached my automation.xml as well.
[1] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18:test (default-test) on project org.wso2.appserver.platform.tests: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18:test failed: There was an error in the forked process [ERROR] java.lang.ExceptionInInitializerError [ERROR] at org.wso2.carbon.automation.engine.context.AutomationContext.<init>(AutomationContext.java:141) [ERROR] at org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:41) [ERROR] at org.testng.TestNG.runExecutionListeners(TestNG.java:1032) [ERROR] at org.testng.TestNG.run(TestNG.java:983) [ERROR] at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:295) [ERROR] at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84) [ERROR] at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:90) [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203) [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155) [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) [ERROR] Caused by: java.lang.IllegalArgumentException: Error While reading configurations[Ljava.lang.StackTraceElement;@2d7aece8 [ERROR] at org.wso2.carbon.automation.engine.configurations.AutomationConfiguration.<clinit>(AutomationConfiguration.java:26) [ERROR] ... 10 more -- Shashika Prabath Karunatilaka, Software Engineer, WSO2, Inc: http://wso2.com/ mobile : +94 77 7487792
<!-- ~ Copyright (c) 2005-2010, WSO2 Inc. (http://wso2.com) All Rights Reserved. ~ ~ WSO2 Inc. licenses this file to you under the Apache License, ~ Version 2.0 (the "License"); you may not use this file except ~ in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, ~ software distributed under the License is distributed on an ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~ KIND, either express or implied. See the License for the ~ specific language governing permissions and limitations ~ under the License. --> <automation xmlns="automation_mapping.xsd"> <!-- ================================================= --> <!-- Parameters --> <!-- ================================================= --> <configurations> <!-- Change this to edit wait time for test artifact deployment --> <deploymentDelay>60000</deploymentDelay> <!-- Change this to product|platform/cloud to execute test on specific environment --> <executionEnvironment>standalone</executionEnvironment> <!-- Change this to user/tenant to execute test with user mode or tenant mode --> <multiTenantMode>false</multiTenantMode> <!-- Change this to true if you want to generate coverage statistics --> <coverage>true</coverage> <!-- Change this to true if you want to enable framework dashboard --> <frameworkDashboard>false</frameworkDashboard> <!-- Browser type with used by framework to execute UI test, supported types - chrome|firefox|opera|ie|htmlUnit --> </configurations> <tools> <selenium> <!-- Change to enable remote webDriver --> <!-- URL of remote webDriver server --> <remoteDriverUrl enable="true">http://10.100.2.51:4444/wd/hub/</remoteDriverUrl> <!-- Type of the browser selenium tests are running" --> <browser> <browserType>firefox</browserType> <!-- path to webDriver executable - required only for chrome--> <webdriverPath enable="false">/home/test/name/webDriver</webdriverPath> </browser> </selenium> </tools> <!-- Database configuration to be used for data service testing. DB configuration in dbs files will be replaced with below configuration at test run time --> <datasources> <datasource name="dataService"> <url>jdbc:h2:testDB</url> <username>wso2carbon</username> <password>wso2carbon</password> <driverClassName>org.h2.Driver</driverClassName> </datasource> <datasource name="dataService1"> <url>jdbc:h2:testDB</url> <username>wso2carbon</username> <password>wso2carbon</password> <driverClassName>org.h2.Driver</driverClassName> </datasource> </datasources> <security> <!-- KeyStore which will be used for encrypting/decrypting passwords and other sensitive information. --> <keystore name="wso2"> <!-- Keystore file location --> <fileName>keystores/products/wso2carbon.jks</fileName> <!-- Keystore type (JKS/PKCS12 etc.) --> <type>JKS</type> <!-- Keystore password --> <password>wso2carbon</password> <!-- Private Key alias --> <keyAlias>wso2carbon</keyAlias> <!-- Private Key password --> <keyPassword>wso2carbon</keyPassword> </keystore> <!-- System wide trust-store which is used to maintain the certificates of all the trusted parties. --> <truststore name="wso2"> <!-- trust-store file location --> <fileName>client-truststore.jks</fileName> <!-- trust-store type (JKS/PKCS12 etc.) --> <type>JKS</type> <!-- trust-store password --> <password>wso2carbon</password> </truststore> </security> <featureManagement> <p2Repositories> <repository name="localDefault"> <repository repo-id="online-repository">https://wso2.org/repo</repository> <repository repo-id="file-repository">file:///home/krishantha/test</repository> </repository> </p2Repositories> </featureManagement> <!-- System wide users who to be registered at the test initiation --> <userManagement> <superTenant> <tenant domain="carbon.super" key="superTenant"> <admin> <user key="admin"> <userName>admin</userName> <password>admin</password> </user> </admin> <users> <user key="userKey1"> <userName>testu1</userName> <password>testu1pass</password> </user> <user key="userKey2"> <userName>testu2</userName> <password>testu2pass</password> </user> <user key="userKey3"> <userName>testu3</userName> <password>testu3pass</password> </user> </users> </tenant> </superTenant> <tenants> <tenant domain="wso2.com" key="wso2.com"> <admin> <user key="admin"> <userName>admin</userName> <password>admin</password> </user> </admin> <users> <user key="user1"> <userName>testuser11</userName> <password>testuser11</password> </user> <user key="user2"> <userName>testuser21</userName> <password>testuser21</password> </user> </users> </tenant> <!--<tenant domain="abc.com" key="abcDomainKey">--> <!--<admin>--> <!--<user key="admin">--> <!--<userName>admin</userName>--> <!--<password>admin</password>--> <!--</user>--> <!--</admin>--> <!--<users>--> <!--<user key="user1">--> <!--<userName>testuser11</userName>--> <!--<password>testuser11</password>--> <!--</user>--> <!--<user key="user2">--> <!--<userName>testuser21</userName>--> <!--<password>testuser21</password>--> <!--</user>--> <!--</users>--> <!--</tenant>--> <!--<tenant domain="malintha.com" key="malinthaDomainKey">--> <!--<admin>--> <!--<user key="admin">--> <!--<userName>admin</userName>--> <!--<password>admin</password>--> <!--</user>--> <!--</admin>--> <!--<users>--> <!--<user key="userm1">--> <!--<userName>testuse11</userName>--> <!--<password>testuse11</password>--> <!--</user>--> <!--<user key="userm2">--> <!--<userName>testuse21</userName>--> <!--<password>testuse21</password>--> <!--</user>--> <!--</users>--> <!--</tenant>--> </tenants> </userManagement> <!-- This section will initiate the initial deployment of the platform required by the test suites. --> <platform> <!-- cluster instance details to be used to platform test execution --> <productGroup name="AS" clusteringEnabled="false" default="true"> <instance name="appServerInstance0001" type="standalone" nonBlockingTransportEnabled="false"> <hosts> <host type="default">localhost</host> </hosts> <ports> <port type="http">9763</port> <port type="https">9443</port> </ports> <properties> </properties> </instance> <instance name="appServerInstance0002" type="standalone" nonBlockingTransportEnabled="false"> <hosts> <host type="default">localhost</host> </hosts> <ports> <port type="http">9764</port> <port type="https">9444</port> </ports> <properties> </properties> </instance> <instance name="appServerInstance0003" type="standalone" nonBlockingTransportEnabled="false"> <hosts> <host type="default">localhost</host> </hosts> <ports> <port type="http">9765</port> <port type="https">9445</port> </ports> <properties> </properties> </instance> </productGroup> <productGroup name="GREG" clusteringEnabled="false" default="true"> <instance name="greg001" type="standalone" nonBlockingTransportEnabled="false"> <hosts> <host type="default">localhost</host> </hosts> <ports> <port type="http">9766</port> <port type="https">9446</port> </ports> <properties> </properties> </instance> </productGroup> </platform> <listenerExtensions> <platformExecutionManager> <extentionClasses> <class> <name>org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerExtension</name> <!--<parameter name="-DportOffset" value="0" />--> <!--<parameter name="cmdArg" value="debug 5005" />--> </class> <class> <name>org.wso2.carbon.integration.common.extensions.usermgt.UserPopulateExtension</name> </class> </extentionClasses> </platformExecutionManager> <PlatformSuiteManager> <extentionClasses> </extentionClasses> </PlatformSuiteManager> <PlatformAnnotationTransferManager> <extentionClasses> </extentionClasses> </PlatformAnnotationTransferManager> <PlatformTestManager> <extentionClasses> </extentionClasses> </PlatformTestManager> <PlatformReportManager> <extentionClasses> </extentionClasses> </PlatformReportManager> </listenerExtensions> </automation>
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev