Hi Krishantha, Please find the attached 'automation.xml'. I'm getting issue from the second node.
Thanks, Thanuja. On Tue, Mar 17, 2015 at 1:14 PM, Krishantha Samaraweera <[email protected] > wrote: > Hi Thanuja, > > Do you have default instance listed in automation.xml ? Can you share > automation.xml with all product configurations. > > Are you getting this error when start the first node or third node ? > > Thank, > Krishantha. > > On Tue, Mar 17, 2015 at 1:03 PM, Thanuja Jayasinghe <[email protected]> > wrote: > >> Hi All, >> >> Thanks for the replies. Will try to find a workaround. >> >> Thanks, >> Thanuja. >> >> On Tue, Mar 17, 2015 at 10:51 AM, Krishantha Samaraweera < >> [email protected]> wrote: >> >>> Hi Thanuja, >>> >>> The similar issue is fixed in 4.3.2 SNAPSHOT - >>> https://wso2.org/jira/browse/TA-924 >>> >>> We might need to figure out a workaround for this. >>> >>> Thanks, >>> Krishantha. >>> >>> >>> >>> On Tue, Mar 17, 2015 at 9:18 AM, Saneth Dharmakeerthi <[email protected]> >>> wrote: >>> >>>> Hi Thanuja, >>>> >>>> As Akalanka mentioned, you get error for *9765 *because you are using >>>> "startupParameterMap.put("-DportOffset", "1")", might be you have a >>>> another server started manually or from a previous test case is using this >>>> port. Put a debug point at "startupParameterMap.put("-DportOffset", >>>> "1");"(before start the second server) and try to find the consumer of port >>>> 9765. >>>> >>>> Also note that it is not recommend to use SNAPSHOT test framework >>>> version. >>>> >>>> Thanks and Best Regards, >>>> >>>> Saneth Dharmakeerthi >>>> Senior Software Engineer >>>> WSO2, Inc. >>>> Mobile: +94772325511 >>>> >>>> On Tue, Mar 17, 2015 at 8:45 AM, Akalanka Pagoda Arachchi < >>>> [email protected]> wrote: >>>> >>>>> Hi Thanuja, >>>>> >>>>> While getting a new AutomationContext you are passing a parameter for >>>>> portOffset of 1. I believe this is why it is looking for 9764 + 1. >>>>> >>>>> Thanks, >>>>> Akalanka. >>>>> >>>>> On Mon, Mar 16, 2015 at 11:57 PM, Thanuja Jayasinghe <[email protected] >>>>> > wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> We are in the process of moving existing test cases to TAF 4.3.1 and >>>>>> experienced following issue when we try to start another IS server. >>>>>> >>>>>> automation.xml configuration - >>>>>> >>>>>> <instance name="identity002" 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> >>>>>> >>>>>> Code - >>>>>> >>>>>> Map<String, String> startupParameterMap = new HashMap<String, >>>>>> String>(); >>>>>> startupParameterMap.put("-DportOffset", "1"); >>>>>> CarbonTestServerManager server1 = new >>>>>> CarbonTestServerManager(new AutomationContext("IDENTITY", "identity002", >>>>>> TestUserMode.SUPER_TENANT_ADMIN), System.getProperty("carbon.zip"), >>>>>> startupParameterMap); >>>>>> >>>>>> Error - >>>>>> >>>>>> testInit(org.wso2.identity.integration.test.provisioning.ProvisioningTestCase) >>>>>> Time elapsed: 330.967 sec <<< FAILURE! >>>>>> java.lang.RuntimeException: Port *9765* is not open >>>>>> at >>>>>> org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil.waitForPort(ClientConnectionUtil.java:151) >>>>>> at >>>>>> org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.startServerUsingCarbonHome(CarbonServerManager.java:136) >>>>>> at >>>>>> org.wso2.carbon.automation.extensions.servers.carbonserver.TestServerManager.startServer(TestServerManager.java:100) >>>>>> at >>>>>> org.wso2.identity.integration.common.utils.CarbonTestServerManager.startServer(CarbonTestServerManager.java:29) >>>>>> at >>>>>> org.wso2.carbon.automation.extensions.servers.carbonserver.MultipleServersManager.startServers(MultipleServersManager.java:46) >>>>>> at >>>>>> org.wso2.identity.integration.test.provisioning.ProvisioningTestCase.startOtherCarbonServers(ProvisioningTestCase.java:438) >>>>>> at >>>>>> org.wso2.identity.integration.test.provisioning.ProvisioningTestCase.testInit(ProvisioningTestCase.java:91) >>>>>> >>>>>> >>>>>> Issue is it refers to port 9765 even it should be referring to port >>>>>> 9764. >>>>>> >>>>>> So I changed TAF version to 4.3.2-SNAPSHOT and this issue get >>>>>> resolved. But I can see following error log with TAF 4.3.2-SNAPSHOT. This >>>>>> happens because we are trying to access the server before it get started >>>>>> properly. >>>>>> >>>>>> INFO >>>>>> >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil] >>>>>> - Waiting for user login... >>>>>> INFO >>>>>> >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil] >>>>>> - https://localhost:9444/services >>>>>> INFO [org.apache.axis2.transport.http.HTTPSender] - Unable to >>>>>> sendViaPost to url[ >>>>>> https://localhost:9444/services/AuthenticationAdmin] >>>>>> org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found >>>>>> at >>>>>> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:330) >>>>>> at >>>>>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:196) >>>>>> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77) >>>>>> .... >>>>>> >>>>>> ERROR >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil] >>>>>> - Unable to login as user.. >>>>>> >>>>>> >>>>>> Thanks, >>>>>> Thanuja. >>>>>> >>>>>> -- >>>>>> *Thanuja Lakmal* >>>>>> Software Engineer >>>>>> WSO2 Inc. http://wso2.com/ >>>>>> *lean.enterprise.middleware* >>>>>> Mobile: +94715979891 +94758009992 >>>>>> >>>>>> _______________________________________________ >>>>>> Dev mailing list >>>>>> [email protected] >>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> *Darshana Akalanka Pagoda Arachchi,* >>>>> *Software Engineer* >>>>> *078-4721791 <078-4721791>* >>>>> >>>>> _______________________________________________ >>>>> Dev mailing list >>>>> [email protected] >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>> >>> >>> -- >>> Krishantha Samaraweera >>> Senior Technical Lead - Test Automation >>> Mobile: +94 77 7759918 >>> WSO2, Inc.; http://wso2.com/ >>> lean . enterprise . middlewear. >>> >> >> >> >> -- >> *Thanuja Lakmal* >> Software Engineer >> WSO2 Inc. http://wso2.com/ >> *lean.enterprise.middleware* >> Mobile: +94715979891 +94758009992 >> > > > > -- > Krishantha Samaraweera > Senior Technical Lead - Test Automation > Mobile: +94 77 7759918 > WSO2, Inc.; http://wso2.com/ > lean . enterprise . middlewear. > -- *Thanuja Lakmal* Software Engineer WSO2 Inc. http://wso2.com/ *lean.enterprise.middleware* Mobile: +94715979891 +94758009992
<?xml version="1.0" encoding="UTF-8"?> <!-- ~ 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="automationSchema.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 true if you want to generate coverage statistics --> <coverage>false</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="superAdmin"> <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> <user key="Registry580UN"> <userName>Registry580UN</userName> <password>Registry580UN</password> </user> <user key="deniedUser"> <userName>deniedUser</userName> <password>deniedUser</password> </user> </users> </tenant> </superTenant> <tenants> <tenant domain="wso2.com" key="wso2"> <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> </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="IDENTITY" clusteringEnabled="false" default="true"> <instance name="identity001" 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="identity002" type="standalone" nonBlockingTransportEnabled="false"> <hosts> <host type="default">localhost</host> </hosts> <ports> <port type="http">9764</port> <port type="https">9443</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> </extentionClasses> </platformExecutionManager> <PlatformSuiteManager> <extentionClasses> <!--<className>org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension</className>--> </extentionClasses> </PlatformSuiteManager> <PlatformAnnotationTransferManager> <extentionClasses> <!--<className>org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension</className>--> </extentionClasses> </PlatformAnnotationTransferManager> <PlatformTestManager> <extentionClasses> </extentionClasses> </PlatformTestManager> <PlatformReportManager> <extentionClasses> </extentionClasses> </PlatformReportManager> </listenerExtensions> </automation>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
