Re: [Dev] What is the compatible Firefox version, which works with selenium framework?
Firefox 24, 31 and 32 are officially supported - refer https://github.com/SeleniumHQ/selenium/blob/master/java/CHANGELOG Note that you can use webdriver.firefox.bin to run tests with different firefox version without actually downgrading firefox on your machine - refer http://stackoverflow.com/questions/17398896/how-to-use-different-version-of-firefox-using-webdriver <http://stackoverflow.com/questions/17398896/how-to-use-different-version-of-firefox-using-webdriver> Thanks, Krishantha. On Thu, Jun 30, 2016 at 11:13 AM, Thilini Cooray <thili...@wso2.com> wrote: > Hi, > > You will be able to run our automated Selenium tests on Firefox 23.0 > AFAIR newer versions of Firefox is not compatible. > > Thanks. > > On Thu, Jun 30, 2016 at 11:07 AM, Amalka Subasinghe <ama...@wso2.com> > wrote: > >> Hi, >> >> I'm executing product-mb selenium tests, getting following error. I have >> firefox. 46.0.1 installed in my local machine >> >> >> JavaScript warning: >> https://normandy.cdn.mozilla.net/static/js/bundles/selfrepair-7575f6d27445b45bcffb.js, >> line 9825: mutating the [[Prototype]] of an object will cause your code to >> run very slowly; instead create the object with the correct initial >> [[Prototype]] value using Object.create >> Build info: version: '2.43.0', revision: >> 'accb3003b9fb8f7cae30f9669b4c594a065396a6', time: '2014-09-09 22:22:51' >> System info: host: 'amalka-pc', ip: '127.0.0.1', os.name: 'Linux', >> os.arch: 'amd64', os.version: '3.13.0-55-generic', java.version: '1.7.0_79' >> Driver info: driver.version: FirefoxDriver >> at >> org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:130) >> at >> org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246) >> at >> org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:114) >> at >> org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:191) >> at >> org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:186) >> at >> org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:182) >> at >> org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:95) >> at >> org.wso2.carbon.automation.extensions.selenium.BrowserManager.getDriver(BrowserManager.java:86) >> at >> org.wso2.carbon.automation.extensions.selenium.BrowserManager.getWebDriver(BrowserManager.java:62) >> at >> org.wso2.mb.integration.common.utils.backend.MBIntegrationUiBaseTest.init(MBIntegrationUiBaseTest.java:67) >> at >> org.wso2.carbon.mb.ui.test.login.LoginTestCase.init(LoginTestCase.java:47) >> Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to >> connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console >> output: >> la.org >> ":{"d":"/usr/lib/firefox/browser/extensions/langpack-en...@firefox.mozilla.org.xpi >> ","e":true,"v":"46.0.1","st":1463011425000},"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"/usr/lib/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","e":true,"v":"46.0.1","st":1463010896000}," >> langpack-en...@firefox.mozilla.org >> ":{"d":"/usr/lib/firefox/browser/extensions/langpack-en...@firefox.mozilla.org.xpi >> ","e":true,"v":"46.0.1","st":1463011425000}},"app-system-share":{" >> ubu...@ubuntu.com >> ":{"d":"/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ubu...@ubuntu.com.xpi >> ","e":false,"v":"3.2","st":1442597111000}}} >> >> Thanks >> Amalka >> >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Best Regards, > > *Thilini Cooray* > Software Engineer > Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194> > E-mail : thili...@wso2.com > > WSO2 Inc. www.wso2.com > lean.enterprise.middleware > -- 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
Re: [Dev] Error while registering UDF method in Spark
gt;>>>>>> - at >>>>>>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345) >>>>>>>> INFO >>>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] >>>>>>>> - at >>>>>>>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) >>>>>>>> INFO >>>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] >>>>>>>> - at >>>>>>>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) >>>>>>>> INFO >>>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] >>>>>>>> - at >>>>>>>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) >>>>>>>> INFO >>>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] >>>>>>>> - at >>>>>>>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) >>>>>>>> INFO >>>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] >>>>>>>> - at >>>>>>>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) >>>>>>>> INFO >>>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] >>>>>>>> - at >>>>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) >>>>>>>> INFO >>>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] >>>>>>>> - at >>>>>>>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) >>>>>>>> INFO >>>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] >>>>>>>> - at >>>>>>>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) >>>>>>>> INFO >>>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] >>>>>>>> - at >>>>>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) >>>>>>>> INFO >>>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] >>>>>>>> - at >>>>>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) >>>>>>>> INFO >>>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] >>>>>>>> - at >>>>>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) >>>>>>>> INFO >>>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] >>>>>>>> - at >>>>>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) >>>>>>>> INFO >>>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] >>>>>>>> - at >>>>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) >>>>>>>> INFO >>>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] >>>>>>>> - at >>>>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451) >>>>>>>> INFO >>>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] >>>>>>>> - at >>>>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:950) >>>>>>>> INFO >>>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] >>>>>>>> - at >>>>>>>> org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServiceComponent.activate(Analytics >>>>>>>> >>>>>>>> >>>>>>>> [1] https://wso2.org/jenkins/job/analytics-apim/136/consoleText >>>>>>>> -- >>>>>>>> Thanks & Regards, >>>>>>>> >>>>>>>> Fazlan Nazeem >>>>>>>> >>>>>>>> *Software Engineer* >>>>>>>> >>>>>>>> *WSO2 Inc* >>>>>>>> Mobile : +94772338839 >>>>>>>> <%2B94%20%280%29%20773%20451194> >>>>>>>> fazl...@wso2.com >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> >>>>>>> Thanks & regards, >>>>>>> Nirmal >>>>>>> >>>>>>> Team Lead - WSO2 Machine Learner >>>>>>> Associate Technical Lead - Data Technologies Team, WSO2 Inc. >>>>>>> Mobile: +94715779733 >>>>>>> Blog: http://nirmalfdo.blogspot.com/ >>>>>>> >>>>>>> >>>>>>> >>>>>>> ___ >>>>>>> Dev mailing list >>>>>>> Dev@wso2.org >>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Gimantha Bandara >>>>>> Software Engineer >>>>>> WSO2. Inc : http://wso2.com >>>>>> Mobile : +94714961919 >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Sachith Withana >>>>> Software Engineer; WSO2 Inc.; http://wso2.com >>>>> E-mail: sachith AT wso2.com >>>>> M: +94715518127 >>>>> Linked-In: <http://goog_416592669> >>>>> https://lk.linkedin.com/in/sachithwithana >>>>> >>>> >>>> >>>> >>>> -- >>>> >>>> Thanks & regards, >>>> Nirmal >>>> >>>> Team Lead - WSO2 Machine Learner >>>> Associate Technical Lead - Data Technologies Team, WSO2 Inc. >>>> Mobile: +94715779733 >>>> Blog: http://nirmalfdo.blogspot.com/ >>>> >>>> >>>> >>> >>> >>> -- >>> >>> Dharshana Warusavitharana >>> Senior Software Engineer , Test Automation >>> WSO2 Inc. http://wso2.com >>> email : dharsha...@wso2.com <dharsha...@wso2.com> >>> Tel : +94 11 214 5345 >>> Fax :+94 11 2145300 >>> cell : +94770342233 >>> blog : http://dharshanaw.blogspot.com >>> >>> lean . enterprise . middleware >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> *Supun Sethunga* >> Senior Software Engineer >> WSO2, Inc. >> http://wso2.com/ >> lean | enterprise | middleware >> Mobile : +94 716546324 >> > > > > -- > *Supun Sethunga* > Senior Software Engineer > WSO2, Inc. > http://wso2.com/ > lean | enterprise | middleware > Mobile : +94 716546324 > Blog: http://supunsetunga.blogspot.com > -- 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
Re: [Dev] Selenium UI Testing [GREG/ES - Publisher]
You can use WebDriverWait see - http://stackoverflow.com/questions/7991522/selenium-webdriver-test-if-element-is-present Thanks, Krishantha. On Tue, Feb 9, 2016 at 3:01 PM, Lahiru J Ekanayake <lahi...@wso2.com> wrote: > Hi , > > I'm writing selenium tests for GREG publisher UI. When implementing UI > test cases, some situations we need to check whether some elements exists, > before click or make any operations on them. > Selenium provides, *driver.findElement(By.id("elemnt_id")) * > method to find any element by id. Problem is if that element is not exist > , it will return an error, saying > *org.openqa.selenium.NoSuchElementException: Unable to locate > element:{"method":"id","selector":"elemnt_id"}* > > Is there any way to check the existence of any element , without catching > the error? . > > > > > Regards > > > > -- > > > > *Lahiru J Ekanayake**Software Engineer* > Mobile : +94 (0) 77 8812629 / +94(0) 778509547 > Email : lahi...@wso2.com > WSO2, Inc.; http://wso2.com/ > lean . enterprise . middleware. > > -- 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
Re: [Dev] [Test Coverage] How to instrument war files?
Hi Bhathiya, This is not possible at the moment. Can you raise a TA JIRA requesting this feature improvement. Thanks, Krishantha. On Mon, Feb 8, 2016 at 12:38 AM, Bhathiya Jayasekara <bhath...@wso2.com> wrote: > Hi automation team, > > In [1] it says that the *jars* residing at plugins and patches > directories get instrumented. Is there a way to get *war* files in > deployment directory instrumented too? > > [1] > https://docs.wso2.com/display/TA430/General+Introduction+to+Test+Coverage > > Thanks, > -- > *Bhathiya Jayasekara* > *Senior Software Engineer,* > *WSO2 inc., http://wso2.com <http://wso2.com>* > > *Phone: +94715478185 <%2B94715478185>* > *LinkedIn: http://www.linkedin.com/in/bhathiyaj > <http://www.linkedin.com/in/bhathiyaj>* > *Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>* > *Blog: http://movingaheadblog.blogspot.com > <http://movingaheadblog.blogspot.com/>* > -- 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
Re: [Dev] [Test-Automation] Error After Updating Selenium version
.8-SNAPSHOT:compile >> [INFO] +- >> org.wso2.carbon.identity:org.wso2.carbon.claim.mgt.stub:jar:5.0.8-SNAPSHOT:compile >> [INFO] +- >> org.wso2.carbon.identity:org.wso2.carbon.identity.provider.openid.stub:jar:5.0.8-SNAPSHOT:compile >> [INFO] +- >> org.wso2.carbon.identity:org.wso2.carbon.identity.scim.common.stub:jar:5.0.8-SNAPSHOT:compile >> [INFO] +- >> org.wso2.carbon.identity:org.wso2.carbon.identity.user.account.association.stub:jar:5.0.8-SNAPSHOT:compile >> [INFO] +- >> org.wso2.carbon.automation:org.wso2.carbon.automation.engine:jar:4.4.2:compile >> [INFO] | +- org.testng:testng:jar:6.1.1:test >> [INFO] | | +- junit:junit:jar:3.8.1:test >> [INFO] | | +- org.beanshell:bsh:jar:2.0b4:compile >> [INFO] | | +- com.beust:jcommander:jar:1.12:test >> [INFO] | | \- org.yaml:snakeyaml:jar:1.6:test >> [INFO] | +- commons-io:commons-io:jar:2.2:compile >> [INFO] | +- org.jacoco:org.jacoco.core:jar:0.7.4.201502262128:compile >> [INFO] | | \- org.ow2.asm:asm-debug-all:jar:5.0.1:compile >> [INFO] | +- org.jacoco:org.jacoco.report:jar:0.7.4.201502262128:compile >> [INFO] | +- org.codehaus.plexus:plexus-utils:jar:3.0.22:compile >> [INFO] | \- commons-collections:commons-collections:jar:3.2.2:compile >> [INFO] +- org.wso2.carbon:org.wso2.carbon.user.core:jar:4.4.3:compile >> [INFO] | +- org.wso2.carbon:javax.cache.wso2:jar:4.4.3:compile >> [INFO] | | \- >> org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1:compile >> [INFO] | +- org.wso2.carbon:org.wso2.carbon.user.api:jar:4.4.3:compile >> [INFO] | +- xerces.wso2:xercesImpl:jar:2.8.1.wso2v2:compile >> [INFO] | +- commons-dbcp.wso2:commons-dbcp:jar:1.4.0.wso2v1:compile >> [INFO] | +- org.wso2.carbon:org.wso2.carbon.logging:jar:4.4.3:compile >> [INFO] | | +- org.apache.log4j.wso2:log4j:jar:1.2.17.wso2v1:compile >> [INFO] | | \- >> org.wso2.carbon:org.wso2.carbon.bootstrap:jar:4.4.3:compile >> [INFO] | | \- wrapper:wrapper:jar:3.2.3:compile >> [INFO] | +- org.wso2.securevault:org.wso2.securevault:jar:1.0.0:compile >> [INFO] | | +- log4j:log4j:jar:1.2.14:compile >> [INFO] | | \- jline:jline:jar:0.9.94:compile >> [INFO] | \- >> org.wso2.orbit.commons-collections:commons-collections:jar:3.2.2.wso2v1:compile >> [INFO] +- org.wso2.is: >> org.wso2.sample.is.sso.agent:war:5.2.0-SNAPSHOT:compile >> [INFO] +- org.wso2.is:playground2:war:5.2.0-SNAPSHOT:compile >> [INFO] +- org.wso2.is:PassiveSTSSampleApp:war:5.2.0-SNAPSHOT:compile >> [INFO] +- com.googlecode.json-simple:json-simple:jar:1.1:test >> [INFO] +- org.jacoco:org.jacoco.agent:jar:0.7.4.201502262128:compile >> [INFO] +- >> org.wso2.carbon.identity:org.wso2.carbon.identity.sts.passive.stub:jar:5.0.8-SNAPSHOT:compile >> [INFO] +- >> org.wso2.carbon.automationutils:org.wso2.carbon.integration.common.extensions:jar:4.4.1:compile >> [INFO] | \- net.lingala.zip4j:zip4j:jar:1.2.3:compile >> [INFO] \- bouncycastle:bcprov-jdk15:jar:132:compile >> >> How can I fix this issue? >> >> Thank You! >> >> -- >> *Chamila Dilshan Wijayarathna,* >> Software Engineer >> Mobile:(+94)788193620 >> WSO2 Inc., http://wso2.com/ >> > > > > -- > Nuwan Wimalasekara > Senior Software Engineer - Test Automation > WSO2, Inc.: http://wso2.com > lean. enterprise. middleware > > phone: +94 71 668 4620 > > > > -- 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
Re: [Dev] [Test-Automation] Error After Updating Selenium version
Hi Chamila, You don't need to downgrade firefox on the machine. Use -Dwebdriver.firefox.bin system property and set it to firefox binary (No need to install firefox here just pointing to the directory would be enough) All Ui tests are disabled by default in local run using a maven property. Ui tests are configured to run on Jenkins machine only. If external user want to run UI tests they have to execute tests by enabling that property. Please refer AS and ML product UI tests and build plans. If you really want to upgrade firefox then all these dependency conflicts need to be resolved. https://docs.wso2.com/display/TA430/FAQ#FAQ-HowcanIrunSeleniumtestswithadifferentversionofFirefox ? Thanks, Krishantha. On Thu, Feb 4, 2016 at 11:05 PM, Chamila Wijayarathna <cham...@wso2.com> wrote: > Hi Krishantha, > > Currently I am using Firefox version 41, but current selenium version of > IS only supports Firefox version 24 which is now about two years old, so to > run ui tests I'll have to either upgrade selenium to a later version or > downgrade my Firefox. > > Downgrading Firefox is not a problem for me since I use chrome as my > primary browser, but I believe a contributor who use Firefox as primary > browser will not prefer to downgrade his Firefox only for running ui tests. > Even its not the primary browser, I'll not be amazed if someone hesitate to > downgrade his Firefox version. > > So I thought it would be more user friendly, if it is possible to run our > ui tests in one of the latest Firefox versions. That's why I tried latest > selenium version 2.50.1. > > Thank you! > On Feb 4, 2016 3:49 PM, "Krishantha Samaraweera" <krishan...@wso2.com> > wrote: > >> Hi Chamila, >> >> Any specific reason to upgrade Selenium version explicitly. >> >> We recommend to use selenium dependency comes with >> carbon-platform-integration >> (Selenium 2.40.0). Its because of the exact issue that you have found >> (When you upgrade Selenium it tread to conflict with other dependencies) >> >> Thanks, >> Krishantha. >> >> On Wed, Feb 3, 2016 at 10:42 PM, Nuwan Wimalasekara <nuw...@wso2.com> >> wrote: >> >>> Hi Chamila, >>> >>> Seems this is a dependency issue with httpcore version. Can you please >>> try to update the httpcore version to latest and exclude all httpcore >>> transitive dependencies. >>> >>> Thanks, >>> Nuwanw >>> >>> On Wed, Feb 3, 2016 at 9:51 PM, Chamila Wijayarathna <cham...@wso2.com> >>> wrote: >>> >>>> Hi all, >>>> >>>> Currently in product-is, we are using carbon-platform-integration >>>> version 4.4.2 and selenium 2.40.0. I tried upgrading selenium version to >>>> 2.50.1 which is the latest version, but when I do that I am getting >>>> following error. >>>> >>>> java.lang.NoSuchFieldError: INSTANCE >>>> at >>>> org.apache.http.impl.io.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:52) >>>> at >>>> org.apache.http.impl.io.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:56) >>>> at >>>> org.apache.http.impl.io.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:46) >>>> at >>>> org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.(ManagedHttpClientConnectionFactory.java:72) >>>> at >>>> org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.(ManagedHttpClientConnectionFactory.java:84) >>>> at >>>> org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.(ManagedHttpClientConnectionFactory.java:59) >>>> at >>>> org.apache.http.impl.conn.PoolingHttpClientConnectionManager$InternalConnectionFactory.(PoolingHttpClientConnectionManager.java:487) >>>> at >>>> org.apache.http.impl.conn.PoolingHttpClientConnectionManager.(PoolingHttpClientConnectionManager.java:147) >>>> at >>>> org.apache.http.impl.conn.PoolingHttpClientConnectionManager.(PoolingHttpClientConnectionManager.java:136) >>>> at >>>> org.apache.http.impl.conn.PoolingHttpClientConnectionManager.(PoolingHttpClientConnectionManager.java:112) >>>> at >>>> org.openqa.selenium.remote.internal.HttpClientFactory.getClientConnectionManager(HttpClientFactory.java:74) >>>> at >>>> org.openqa.selenium.remote.internal.HttpClientFactory.(HttpClientFactory.java:57) >>>> at >>>> org.openqa.selenium.remote.internal.HttpClientFactory.(HttpClientFactory.java:60) >>>> at >>>>
Re: [Dev] Null pointer exception when running Test cases
Hi Menaka, Can you share the repo URL. So I can go though the configurations and see. Thanks, Krishantha. On Tue, Feb 2, 2016 at 10:47 AM, Menaka Jayawardena <men...@wso2.com> wrote: > Hello, > > I get this exception when trying to run tests in IOT server. > > But all test cases are running without any problem. > > Feb 02, 2016 10:44:42 AM > org.wso2.carbon.automation.engine.extensions.ExecutionListenerExtension > > WARNING: Failed to initializing the Extension Class > Feb 02, 2016 10:44:42 AM > org.wso2.carbon.automation.engine.extensions.ExecutionListenerExtension > > SEVERE: Error initializing the Automation Context > java.lang.NullPointerException > at > org.wso2.carbon.automation.engine.extensions.ListenerExtension.setParameterMap(ListenerExtension.java:51) > at > org.wso2.carbon.automation.engine.extensions.ExecutionListenerExtension.(ExecutionListenerExtension.java:31) > at > org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension.(CarbonServerExtension.java:29) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:526) > at java.lang.Class.newInstance(Class.java:383) > at > org.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.initiate(TestNGExtensionExecutor.java:97) > at > org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:46) > at org.testng.TestNG.runExecutionListeners(TestNG.java:1068) > at org.testng.TestNG.run(TestNG.java:1015) > at > org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:295) > at > org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84) > at > org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:90) > at > org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203) > at > org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155) > at > org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) > > > I debugged the test platform and the parameter map gets null. > > What could be the reason for this? > > > Thanks and regards > Menaka Madusanka > > -- > Menaka Madushanka Jayawardena > Software Engineering Intern > men...@wso2.com > Mobile:- +94 71 8851183/ +94 71 3505470 > LinkedIn - Menaka Jayawardena > <https://lk.linkedin.com/in/menakajayawardena> > > ___ > Dev mailing list > Dev@wso2.org > 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 . middleware. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Auto Tests] Checking if Carbon server restart is complete
You can use "*ClientConnectionUtil.waitForPort(port, timeout, true**, hostname);"* to wait for port to open after restart. Thanks, Krishantha On Tue, Dec 15, 2015 at 4:39 PM, Gokul Balakrishnan <go...@wso2.com> wrote: > Hi TA team, > > Is there a way to do $subject? Basically, my requirement is for the > current thread to stay blocked until the initiated server restart is > complete. > > Is there a way to achieve this through the framework itself, rather than > use sleep() in the test code? We're currently using TAF 4.4.2 in DAS. > > Thanks, > > -- > Gokul Balakrishnan > Senior Software Engineer, > WSO2, Inc. http://wso2.com > Mob: +94 77 593 5789 | +1 650 272 9927 > -- 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
Re: [Dev] [DEV] Implement unit/integration test cases for API Manager JAX-RS Rest API
the Jax-RS functionality ex . If >>>>>>> crud operations work, if it returns correct error messages. >>>>>>> - We can use swagger-codegen to do this. >>>>>>> API Definition has all the details of the API interface what >>>>>>> missing are >>>>>>> >>>>>>> 2. How to get the existing integration test to utilize the new API. >>>>>>> - We already have a lot of integration tests which uses >>>>>>> existing store & publisher APIs to add/remove resources. As Saneth >>>>>>> mention >>>>>>> they have written it in a layered architecture this replacing the >>>>>>> existing >>>>>>> API layer with Jax-rs existing test should work. >>>>>>> >>>>>>> >>>>>>> 3. How to make it easy to write test in the future with Jax-Rs API. >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Mon, Oct 19, 2015 at 11:39 AM, Sanjeewa Malalgoda < >>>>>>> sanje...@wso2.com> wrote: >>>>>>> >>>>>>>> Hi Team, >>>>>>>> We are planning to implement complete REST API for all operations >>>>>>>> available in API Manager. >>>>>>>> This will be CXF based jax-rs application. >>>>>>>> This application based on swagger template and service skeleton >>>>>>>> automatically generate according to swagger to cxf implementation done >>>>>>>> by >>>>>>>> Jo. >>>>>>>> We would like to know what would be the best approach to implement >>>>>>>> test for this service. >>>>>>>> Do we have any mechanism to generate client and test service in >>>>>>>> unit test level ? I can see there are projects to generate java client >>>>>>>> based on swagger content. >>>>>>>> Or do we need to write integration test to run this application in >>>>>>>> server and perform tests? >>>>>>>> Since this implementation changes rapidly it would be ideal if we >>>>>>>> can have skeleton based testing approach without binding to real >>>>>>>> implementation(like auto generated client). >>>>>>>> >>>>>>>> Have we done something similar? >>>>>>>> What would be the best approach? >>>>>>>> >>>>>>>> Thanks, >>>>>>>> sanjeewa. >>>>>>>> >>>>>>>> -- >>>>>>>> >>>>>>>> *Sanjeewa Malalgoda* >>>>>>>> WSO2 Inc. >>>>>>>> Mobile : +94713068779 >>>>>>>> >>>>>>>> <http://sanjeewamalalgoda.blogspot.com/>blog >>>>>>>> :http://sanjeewamalalgoda.blogspot.com/ >>>>>>>> <http://sanjeewamalalgoda.blogspot.com/> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ___ >>>>>>>> Dev mailing list >>>>>>>> Dev@wso2.org >>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> >>>>>>> -- >>>>>>> *Joseph Fonseka* >>>>>>> WSO2 Inc.; http://wso2.com >>>>>>> lean.enterprise.middleware >>>>>>> >>>>>>> mobile: +94 772 512 430 >>>>>>> skype: jpfonseka >>>>>>> >>>>>>> * <http://lk.linkedin.com/in/rumeshbandara>* >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> >>>>>> -- >>>>>> *Joseph Fonseka* >>>>>> WSO2 Inc.; http://wso2.com >>>>>> lean.enterprise.middleware >>>>>> >>>>>> mobile: +94 772 512 430 >>>>>> skype: jpfonseka >>>>>> >>>>>> * <http://lk.linkedin.com/in/rumeshbandara>* >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> -- >>>>> *Joseph Fonseka* >>>>> WSO2 Inc.; http://wso2.com >>>>> lean.enterprise.middleware >>>>> >>>>> mobile: +94 772 512 430 >>>>> skype: jpfonseka >>>>> >>>>> * <http://lk.linkedin.com/in/rumeshbandara>* >>>>> >>>>> >>>>> ___ >>>>> Dev mailing list >>>>> Dev@wso2.org >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> Nuwan Dias >>>> >>>> Technical Lead - WSO2, Inc. http://wso2.com >>>> email : nuw...@wso2.com >>>> Phone : +94 777 775 729 >>>> >>> >>> >>> >>> -- >>> >>> -- >>> *Joseph Fonseka* >>> WSO2 Inc.; http://wso2.com >>> lean.enterprise.middleware >>> >>> mobile: +94 772 512 430 >>> skype: jpfonseka >>> >>> * <http://lk.linkedin.com/in/rumeshbandara>* >>> >>> >> >> >> -- >> >> *Sanjeewa Malalgoda* >> WSO2 Inc. >> Mobile : +94713068779 >> >> <http://sanjeewamalalgoda.blogspot.com/>blog >> :http://sanjeewamalalgoda.blogspot.com/ >> <http://sanjeewamalalgoda.blogspot.com/> >> >> >> > > > -- > > *Sanjeewa Malalgoda* > WSO2 Inc. > Mobile : +94713068779 > > <http://sanjeewamalalgoda.blogspot.com/>blog > :http://sanjeewamalalgoda.blogspot.com/ > <http://sanjeewamalalgoda.blogspot.com/> > > > > ___ > Dev mailing list > Dev@wso2.org > 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 . middleware. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Sending custom responses in automation test
Hi Senduran, Can you list the steps that you have followed to verify the scenario manually. Thanks, Krishantha. On Tue, Oct 6, 2015 at 10:05 AM, Senduran Balasubramaniyam < sendu...@wso2.com> wrote: > Hi Krishantha, > > I need to write a test for ESB where my proxy service should receive some > custom responses. > For example > Empty body with status code 202 and content type text/html. > Could you please guide me to do this > > Thank you > Senduran > > -- > *Senduran * > Software Engineer, > WSO2, Inc.; http://wso2.com/ <http://wso2.com/> > Mobile: +94 77 952 6548 > -- 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
Re: [Dev] Starting server in debug mode when running tests
Hi Gothami, On Fri, Oct 2, 2015 at 11:41 AM, Gothami Abayawickrama <goth...@wso2.com> wrote: > Hi all, > I need to start the server in debug mode when running tests. Can somebody > help me with this. > Are you trying to debug integration tests ? if yes, you can use -Dsurefire.debug option to debug surefire process. To debug product components set debug port for CarbonServerExtension in automation.xml org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension Thanks, Krishantha. Thanks, > Gothami > -- > *Gothami Abayawickrama* > Software Engineer Intern, WSO2, Inc > Mobile : +(94)717537697 > goth...@wso2.com > > ___ > Dev mailing list > Dev@wso2.org > 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 . middleware. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Getting error while installing features to IS 5.0.0 pack using pom
Hi all, Any chance to look into this issue ? Thanks, Krishantha. On Mon, Sep 14, 2015 at 11:11 AM, Dinusha Boteju <dinus...@wso2.com> wrote: > Hi, > > Sure, I'll look into this and get back to you. > > Regards, > Dinusha > > On Mon, Sep 14, 2015 at 11:08 AM, Niranjan Karunanandham < > niran...@wso2.com> wrote: > >> Hi, >> >> I tried to install the install the >> org.wso2.carbon.registry.contentsearch.server.feature >> 4.2.2 into IS 5.0.0 and got the same error as mentioned by Malintha. >> >> @Dinusha: Will you be able to look into this? >> >> Regards, >> Nira >> >> On Fri, Sep 11, 2015 at 5:22 PM, Sameera Jayasoma <same...@wso2.com> >> wrote: >> >>> I will check this. >>> >>> On Fri, Sep 11, 2015 at 5:18 PM, Malintha Adikari <malin...@wso2.com> >>> wrote: >>> >>>> attaching POM file used to install key manager features. >>>> >>>> On Thu, Sep 10, 2015 at 10:56 AM, Krishantha Samaraweera < >>>> krishan...@wso2.com> wrote: >>>> >>>>> Hi Malintha, >>>>> >>>>> Shall we try to installed the feature using osgi console. You can >>>>> refer [1]. Automation of this approach would be bit tricky as we need to >>>>> maintain another script to do all these command execution. >>>>> >>>>> [1] http://wiki.eclipse.org/Equinox_p2_Console_Users_Guide >>>>> >>>>> Thanks, >>>>> Krishantha. >>>>> >>>>> On Wed, Sep 9, 2015 at 10:46 PM, Malintha Adikari <malin...@wso2.com> >>>>> wrote: >>>>> >>>>>> Thank you Lasitha for infomation >>>>>> >>>>>> On Wed, Sep 9, 2015 at 10:26 PM, Malintha Adikari <malin...@wso2.com> >>>>>> wrote: >>>>>> >>>>>>> Adding Krishantha >>>>>>> On Sep 9, 2015 6:30 PM, "Lasitha Wattaladeniya" <lasit...@wso2.com> >>>>>>> wrote: >>>>>>> >>>>>>>> Hi Malintha, >>>>>>>> >>>>>>>> Apparently there's a bug, it's reported in this jira [1]. >>>>>>>> >>>>>>>> [1]. https://wso2.org/jira/browse/CARBON-15195 >>>>>>>> >>>>>>>> On Wed, Sep 9, 2015 at 3:59 PM, Malintha Adikari <malin...@wso2.com >>>>>>>> > wrote: >>>>>>>> >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> I am installing keymanager feature to IS 5.0.0 pack using pom >>>>>>>>> file. I am getting version conflicts for some features. >>>>>>>>> When I try to install >>>>>>>>> >>>>>>>>> Ex: >>>>>>>>> >>>>>>>>> >>>>>>>>> org.wso2.carbon.registry.contentsearch.server.feature.group >>>>>>>>>4.2.2 >>>>>>>>> >>>>>>>>> >>>>>>>>> I am getting following error >>>>>>>>> >>>>>>>>> Installing org.wso2.carbon.xfer.feature.group 4.2.0. >>>>>>>>> Installing org.wso2.carbon.stratos.deployment.feature.group 2.2.1. >>>>>>>>> Installing org.wso2.carbon.system.statistics.feature.group 4.2.2. >>>>>>>>> Installation failed. >>>>>>>>> Cannot complete the install because of a conflicting dependency. >>>>>>>>> Software being installed: WSO2 Carbon - Registry Content Search >>>>>>>>> Server Feature 4.2.2 >>>>>>>>> (org.wso2.carbon.registry.contentsearch.server.feature.group 4.2.2) >>>>>>>>> Software currently installed: WSO2 Carbon - Registry Content >>>>>>>>> Search Feature 4.2.1 >>>>>>>>> (org.wso2.carbon.registry.contentsearch.feature.group >>>>>>>>> 4.2.1) >>>>>>>>> Only one of the following can be installed at once: >>>>>>>>> WSO2 Carbon - Registry Content Search Server Feature 4.2.2 >>>>>>>>> (org.wso2.carbon.registry.contentsearch.server.feature.jar 4.2.2) >>>&g
Re: [Dev] App Manager Test Framework is upgraded to 4.4.2
Hi Dilan, On Thu, Sep 10, 2015 at 12:20 PM, Chathura Dilan <chathu...@wso2.com> wrote: > Hi Krishantha, > > Sorry, previous test cases use 4.2.7 for UI automation and we are no > longer using org.wso2.carbon.automation.core.utils, > org.wso2.carbon.automation.utils.esb > and org.wso2.carbon.automation.utils.services packages . Previous test > cases are heavily depend on their classes, therefore, we will have to write > test cases from the scratch. > I can't understand why you need to write test cases from the scratch. You just need to modify the test initialisation logic. We did migrate 1000 tests in G-Reg and ESB but never rewrite the tests again. Thanks, Krishantha. > On Thu, Sep 10, 2015 at 10:47 AM, Krishantha Samaraweera < > krishan...@wso2.com> wrote: > >> >> >> On Tue, Sep 8, 2015 at 12:00 PM, Chathura Dilan <chathu...@wso2.com> >> wrote: >> >>> Hi all, >>> >>> I have upgraded App Manager Test Framework to 4.4.2 >>> >>> Following tasks has been done >>> >>> 1. Upgraded App Manager Test Framework to 4.4.2 from 4.3 >>> 2. Changed the test port offset to 600 >>> 3. Create a custom CarbonServerExtension to change port values of the >>> configuration files app-manager.xml and sso-idp-conf.xml >>> 4. Added a Test Case to AppM publisher Sign In >>> >>> However previous test cases are not working due to API changes of the >>> test framework. We need to rewrite them to work with 4.4.2 >>> >> >> I don't think you need to rewrite all tests here. Just fixing the >> compilations failures wouldn't be enough ? TAF 4.3 already contain major >> api changes. Changes we have introduced in 4.4.2 is related to exception >> handling etc.. >> >> Thanks, >> Krishantha. >> >> >>> -- >>> Regards, >>> >>> Chatura Dilan Perera >>> *Senior Software Engineer** - WSO2 Inc.* >>> www.dilan.me >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> 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 . middleware. >> > > > > -- > Regards, > > Chatura Dilan Perera > *Senior Software Engineer** - WSO2 Inc.* > www.dilan.me > -- 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
Re: [Dev] App Manager Test Framework is upgraded to 4.4.2
On Tue, Sep 8, 2015 at 12:00 PM, Chathura Dilan <chathu...@wso2.com> wrote: > Hi all, > > I have upgraded App Manager Test Framework to 4.4.2 > > Following tasks has been done > > 1. Upgraded App Manager Test Framework to 4.4.2 from 4.3 > 2. Changed the test port offset to 600 > 3. Create a custom CarbonServerExtension to change port values of the > configuration files app-manager.xml and sso-idp-conf.xml > 4. Added a Test Case to AppM publisher Sign In > > However previous test cases are not working due to API changes of the test > framework. We need to rewrite them to work with 4.4.2 > I don't think you need to rewrite all tests here. Just fixing the compilations failures wouldn't be enough ? TAF 4.3 already contain major api changes. Changes we have introduced in 4.4.2 is related to exception handling etc.. Thanks, Krishantha. > -- > Regards, > > Chatura Dilan Perera > *Senior Software Engineer** - WSO2 Inc.* > www.dilan.me > > ___ > Dev mailing list > Dev@wso2.org > 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 . middleware. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Getting error while installing features to IS 5.0.0 pack using pom
Hi Malintha, Shall we try to installed the feature using osgi console. You can refer [1]. Automation of this approach would be bit tricky as we need to maintain another script to do all these command execution. [1] http://wiki.eclipse.org/Equinox_p2_Console_Users_Guide Thanks, Krishantha. On Wed, Sep 9, 2015 at 10:46 PM, Malintha Adikari <malin...@wso2.com> wrote: > Thank you Lasitha for infomation > > On Wed, Sep 9, 2015 at 10:26 PM, Malintha Adikari <malin...@wso2.com> > wrote: > >> Adding Krishantha >> On Sep 9, 2015 6:30 PM, "Lasitha Wattaladeniya" <lasit...@wso2.com> >> wrote: >> >>> Hi Malintha, >>> >>> Apparently there's a bug, it's reported in this jira [1]. >>> >>> [1]. https://wso2.org/jira/browse/CARBON-15195 >>> >>> On Wed, Sep 9, 2015 at 3:59 PM, Malintha Adikari <malin...@wso2.com> >>> wrote: >>> >>>> Hi, >>>> >>>> I am installing keymanager feature to IS 5.0.0 pack using pom file. I >>>> am getting version conflicts for some features. >>>> When I try to install >>>> >>>> Ex: >>>> >>>>org.wso2.carbon.registry.contentsearch.server.feature.group >>>>4.2.2 >>>> >>>> >>>> I am getting following error >>>> >>>> Installing org.wso2.carbon.xfer.feature.group 4.2.0. >>>> Installing org.wso2.carbon.stratos.deployment.feature.group 2.2.1. >>>> Installing org.wso2.carbon.system.statistics.feature.group 4.2.2. >>>> Installation failed. >>>> Cannot complete the install because of a conflicting dependency. >>>> Software being installed: WSO2 Carbon - Registry Content Search Server >>>> Feature 4.2.2 (org.wso2.carbon.registry.contentsearch.server.feature.group >>>> 4.2.2) >>>> Software currently installed: WSO2 Carbon - Registry Content Search >>>> Feature 4.2.1 (org.wso2.carbon.registry.contentsearch.feature.group 4.2.1) >>>> Only one of the following can be installed at once: >>>> WSO2 Carbon - Registry Content Search Server Feature 4.2.2 >>>> (org.wso2.carbon.registry.contentsearch.server.feature.jar 4.2.2) >>>> WSO2 Carbon - Registry Content Search Server Feature 4.2.1 >>>> (org.wso2.carbon.registry.contentsearch.server.feature.jar 4.2.1) >>>> Cannot satisfy dependency: >>>> From: WSO2 Carbon - Registry Content Search Feature 4.2.1 >>>> (org.wso2.carbon.registry.contentsearch.feature.group 4.2.1) >>>> To: org.wso2.carbon.registry.contentsearch.server.feature.group >>>> [4.2.1] >>>> Cannot satisfy dependency: >>>> From: WSO2 Carbon - Registry Content Search Server Feature 4.2.1 >>>> (org.wso2.carbon.registry.contentsearch.server.feature.group 4.2.1) >>>> To: org.wso2.carbon.registry.contentsearch.server.feature.jar [4.2.1] >>>> Cannot satisfy dependency: >>>> From: WSO2 Carbon - Registry Content Search Server Feature 4.2.2 >>>> (org.wso2.carbon.registry.contentsearch.server.feature.group 4.2.2) >>>> To: org.wso2.carbon.registry.contentsearch.server.feature.jar [4.2.2] >>>> Application failed, log file location: >>>> /root/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1441793612480.log >>>> >>>> Seems there is a conflict between existing feature in the carbon pack >>>> and the new feature to be installed. How can I upgrade a feature ?. >>>> Appreciate your help on this. >>>> >>>> Regards, >>>> Malintha >>>> >>>> -- >>>> *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 >>>> Dev@wso2.org >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> Lasitha Wattaladeniya >>> Software Engineer >>> WSO2, Inc. | http://wso2.com >>> lean. enterprise. middleware >>> >>> Mobile : +94719397528 >>> Blog : techreadme.blogspot.com >>> >> > > > -- > *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 > Dev@wso2.org > 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 . middleware. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [GREG] Error when adding JaCoco code coverage to test automation
he.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 while tear down the execution > environment > at > org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.handleException(TestExecutionListener.java:71) > at > org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionFinish(TestExecutionListener.java:65) > at org.testng.TestNG.runExecutionListeners(TestNG.java:1033) > at org.testng.TestNG.run(TestNG.java:1013) > 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.onExecutionFinish(TestExecutionListener.java:62) > ... 14 more > Caused by: java.lang.IncompatibleClassChangeError: class > org.jacoco.core.internal.flow.ClassProbesVisitor has interface > org.objectweb.asm.ClassVisitor as super class > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:800) > at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) > at java.net.URLClassLoader.access$100(URLClassLoader.java:71) > at java.net.URLClassLoader$1.run(URLClassLoader.java:361) > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > at java.lang.ClassLoader.loadClass(ClassLoader.java:425) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > at > org.wso2.carbon.automation.engine.frameworkutils.ReportGenerator.analyzeStructure(ReportGenerator.java:144) > at > org.wso2.carbon.automation.engine.frameworkutils.ReportGenerator.create(ReportGenerator.java:77) > at > org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.generateCoverageReport(CarbonServerManager.java:333) > at > org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.serverShutdown(CarbonServerManager.java:309) > at > org.wso2.carbon.automation.extensions.servers.carbonserver.TestServerManager.stopServer(TestServerManager.java:132) > at > org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension.onExecutionFinish(CarbonServerExtension.java:61) > ... 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. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [GREG] Error while updating test automation to new version
Hi Rajith, You have misconfigured the portOffset value in automation.xml. It should be like ** 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=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. >>> >>> false >>> >>> [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 th
Re: [Dev] [GREG] Error while updating test automation to new version
a: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. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [C5] Jacoco reports are not generating for Pax-Exam Test cases
Hi Aruna, Can you use Jacoco ReportGenerator class at [1] and parse your jacoco.exec file into it. By doing it we will be able to analyse what has been captured in data dump file. You better escalate the issue to Jacoco community in same time. Thanks, Krishantha. [1] http://www.eclemma.org/jacoco/trunk/doc/examples/java/ReportGenerator.java On Wed, Aug 26, 2015 at 2:04 PM, Aruna Karunarathna ar...@wso2.com wrote: Hi all, After integrating the pax-exam plugin to the kernel. Jacoco reports are not generated for the OSGi based tests. Following is the output I'm getting. --- jacoco-maven-plugin:0.7.5.201505241946:restore-instrumented-classes (default-restore-instrumented-classes) @ osgi-tests --- [INFO] [INFO] --- jacoco-maven-plugin:0.7.5.201505241946:report (default-report) @ osgi-tests --- [INFO] *Analyzed bundle 'WSO2 Carbon Kernel - OSGi Tests' with 0 classes* [INFO] [INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ osgi-tests --- [INFO] Building jar: /home/aruna/Desktop/pax-work/carbon-kernel/osgi-tests/target/osgi-tests-5.0.0-SNAPSHOT.jar [INFO] [INFO] --- jacoco-maven-plugin:0.7.5.201505241946:check (default-check) @ osgi-tests --- [INFO] Analyzed bundle 'WSO2 Carbon Kernel - OSGi Tests' with 0 classes [INFO] All coverage checks have been met. Following is the plugin I've used. I can see that jacoco.exec file contains some data. But the report is empty. Any thoughts whats causing this issue? plugin groupIdorg.jacoco/groupId artifactIdjacoco-maven-plugin/artifactId executions execution iddefault-prepare-agent/id goals goalprepare-agent/goal /goals configuration includes includeorg.wso2.carbon*/include /includes /configuration /execution execution configuration includes includeorg.wso2.carbon*/include /includes dataFiletarget/jacoco.exec/dataFile /configuration iddefault-report/id phaseprepare-package/phase goals goalreport/goal /goals /execution execution iddefault-check/id goals goalcheck/goal /goals configuration rules rule /rule /rules /configuration /execution /executions /plugin Regards, Aruna -- *Aruna Sujith Karunarathna *| Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 9040362 | Work: +94 112145345 Email: ar...@wso2.com | Web: www.wso2.com -- 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
Re: [Dev] [Atom/RSS Inbound endpoint] Test Server for Automation test
Hi Rajaaz, As we discussed offline lets try to use registry atom feeds first rather implementing our own server or consuming external atom/rss endpoints (highly discourage as those endpoints trend to change in future - we had many bad experience with consuming external endpoints). Thanks, Krishantha. On Mon, Aug 24, 2015 at 11:49 PM, Kathees Rajendram kath...@wso2.com wrote: Hi Rajjaz, We need to automate the server startup also if the server startup is available. We don't need to write the separate connector method for the server startup. We can include the server startup in the integration test. We can use the google blogspot to feed. https://developers.google.com/gdata/docs/auth/oauth Thanks, Kathees On Mon, Aug 24, 2015 at 7:11 PM, Rajjaz Mohammed raj...@wso2.com wrote: Hi All, I'm Developing Atom Connector and its Feed CRUD Operations are working fine for Implemented Testing Server and i need to know how to add the test Server to connector and Automation test. i have two options. 1.write one method as startserver and do the operations follow by statrserver. 2.write the Connector and run the server Separately Before Test the Connector. please Advice to me which is Best? and Atom/ RSS Connector Currently We can't test with 3rd party backend because of the Authentication methods are Different to each Backend and Inbound Working with Atom and RSS and inject as Atom into ESB. Please Comments on it. On Tue, Aug 11, 2015 at 10:23 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi all, On Tue, Aug 11, 2015 at 8:59 AM, Malaka Silva mal...@wso2.com wrote: Hi Rajjaz, If there is a server already provided by automation framework then you don't have a blocker for writing the test cases. However if that is not the case, write your tests case assuming that there is a running server and comment it out. Once it's available we can include it to esb tests cases. @Automation Team - Do we already have support for this? No automation doesn't support for this. Why don't you guys write your own way to obtain atom URL and proceed. Its not practical for us to provide all test utilities upfront. BTW, you guys can use registry atom URLs - https://10.100.1.26:9443/registry/atom/_system/config/ Thanks, Krishantha. On Tue, Aug 11, 2015 at 1:19 AM, Rajjaz Mohammed raj...@wso2.com wrote: Hi Vanji, This is the way I’m developing. if I’m wrong please correct me. On Tue, Aug 11, 2015 at 12:58 AM, Rajjaz Mohammed raj...@wso2.com wrote: Hi Vanji, We are creating a our own rss feed producer but we need to update it in 3rd party backend own by Client. that's the Requirement given to me. according that I’m Developing the Connector for 3rd party backend rss feeds. On Mon, Aug 10, 2015 at 11:37 PM, Vanjikumaran Sivajothy va...@wso2.com wrote: Rather than depending on 3rd party backend (like wordpress/ blogspot.. etc), it is better to create own rss feed producer. On Mon, Aug 10, 2015 at 9:55 AM, Kathees Rajendram kath...@wso2.com wrote: Hi Rajjaz, To write the automation test for the inbound lister, you can create a Java client to produce the feed to the URL. The inbound listener will consume the feeds from the URL then you can write the couple of test cases to test the inbound listener. Other inbound automation test can be found below. https://github.com/wso2/product-esb/tree/master/modules/integration/tests-integration/tests-transport/src/test/java/org/wso2/carbon/esb Thanks, Kathees On Mon, Aug 10, 2015 at 6:11 PM, Rajjaz Mohammed raj...@wso2.com wrote: for the Connector Part . Connector will create , update and Delete the feeds in given URL. so the URL may be a Blogger or Wordpress or something else so Test want to be able to do so. On Mon, Aug 10, 2015 at 5:16 PM, Rajjaz Mohammed raj...@wso2.com wrote: Hi Irham, its an polling inbound to listen Atom/RSS feeds update in a given URL. On Mon, Aug 10, 2015 at 5:01 PM, Irham Iqbal iq...@wso2.com wrote: Hi Rajjaz, Can you elaborate the scenario which you're going to write integration tests. I mean what are the steps you're following to test this manually? Thanks, Iqbal On Mon, Aug 10, 2015 at 3:45 PM, Rajjaz Mohammed raj...@wso2.com wrote: *is there any methods available to do the Automation Test to my Atom/RSS inbound endpoint? On Mon, Aug 10, 2015 at 3:03 PM, Rajjaz Mohammed raj...@wso2.com wrote: Hi All, I'm Developing Atom/RSS inbount endpoint for ESB so for the Automation test i need to test in multiple server like Blogger , Wordpress . is the any method to do the Automation test? -- Thank you Best Regards *Rajjaz HM* Associate Software Engineer WSO2 Inc. http://wso2.com/ lean | enterprise | middleware Mobile : +94752833834 Email :raj...@wso2.com LinkedIn | Blogger | WSO2 Profile http://wso2.com/about/team/mohammer_rajjaz/ -- Thank you Best Regards *Rajjaz HM* Associate Software Engineer WSO2 Inc
Re: [Dev] Greg5.0.0 Integration test execute with Cluster Deployment
Since we haven't run tests on cluster, I couldn't say exact success rate, but around 80% of the tests cases should pass on clustered setup. Test cases which refers carbon.home will fail, so isolating the test failures would be bit harder (If those cases haven't use proper custom annotations to skip tests from cluster). AFAIK, usage of carbon.home in G-Reg tests are very minimum. We might need to modify test suites (testng.xml) in order to avoid pre configuration like indexing time etc.. Automation team don't have enough bandwidth to modify tests and debug failures ATM. May be we will be able to help. My recommendation is to not to run them on cluster until someone properly fix all tests to run on cluster. Thanks, Krishantha. On Thu, Aug 20, 2015 at 10:34 PM, Chandana Napagoda chand...@wso2.com wrote: HI Chaminda, Since G-Reg integration tests are written in few years back, at that time they were not considered to run on the clustered deployment. Due to above limitation some of the test causes are falling in the clustered setup. Regards, Chandana On Thu, Aug 20, 2015 at 6:50 PM, Chaminda Jayawardena chami...@wso2.com wrote: Hi All, Is $Subject possible? AFAIK still this is possible only for some of wso2 products. Please advice and guide to do this(Share any document if exist). Please find the cluster details below, which we currently have. -2 Greg instances as manager nodes with external IDP(IS5.0.0) -External Apache Solr instance -All fronted by nginx -with Oracle database -- Thanks Regards *Chaminda Jayawardena* Senior Software Engineer - QA WSO2 Inc. - http://wso2.com +94-77-7725234 -- *Chandana Napagoda* Senior Software Engineer WSO2 Inc. - http://wso2.org *Email : chand...@wso2.com chand...@wso2.com**Mobile : +94718169299 %2B94718169299* *Blog :http://cnapagoda.blogspot.com http://cnapagoda.blogspot.com* -- 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
Re: [Dev] [Atom/RSS Inbound endpoint] Test Server for Automation test
://twitter.com/vanjikumaran [image: LinkedIn] http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image: Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare] http://www.slideshare.net/vanjikumaran This communication may contain privileged or other confidential information and is intended exclusively for the addressee/s. If you are not the intended recipient/s, or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received and in addition, you should not print, copy, re-transmit, disseminate, or otherwise use the information contained in this communication. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions -- Thank you Best Regards *Rajjaz HM* Associate Software Engineer WSO2 Inc. http://wso2.com/ lean | enterprise | middleware Mobile : +94752833834 Email :raj...@wso2.com LinkedIn | Blogger | WSO2 Profile http://wso2.com/about/team/mohammer_rajjaz/ -- Thank you Best Regards *Rajjaz HM* Associate Software Engineer WSO2 Inc. http://wso2.com/ lean | enterprise | middleware Mobile : +94752833834 Email :raj...@wso2.com LinkedIn | Blogger | WSO2 Profile http://wso2.com/about/team/mohammer_rajjaz/ -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. -- 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
Re: [Dev] [Integration Tests] Running test cases one by one
You need to include all testNG listeners in command line. Please refer original TestNG documentation [1] and search for -listener Thanks, Krishantha. [1]http://testng.org/doc/documentation-main.html On Tue, Jun 30, 2015 at 10:29 AM, Nirmal Fernando nir...@wso2.com wrote: When I use -Dtest, test case failed since the Carbon server isn't started up. How to fix it please? On Tue, Jun 30, 2015 at 10:18 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Nuwan, Thats exactly I wanted. Thank you. On Mon, Jun 29, 2015 at 6:49 PM, Nuwan Wimalasekara nuw...@wso2.com wrote: Hi Mahesh, You can use -Dtest parameter to define the test classes which need to run. mvn clean install -Dtest=TestClassName Thanks, Nuwanw On Mon, Jun 29, 2015 at 6:13 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, Suppose I have declared some test cases in testng.xml file , is there a way that I could run one by one with each time i run mvn clean install. At the moment what we do is comment out rest of the test cases leaving required one enabled. Then run mvn clean install. Repeat the same for all the cases. Is there an another way to do without commenting out test cases in testng.xnl file ? May be giving a parameter or something. mvn clean install -Dsome_parameter_to_specify_test_case thanks. -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620 -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks regards, Nirmal Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ ___ Dev mailing list Dev@wso2.org 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 . middleware. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Integration test dependencies are released !
Hi all, Test dependencies are released again with few fixes. 1. Fixed issues with integration test execution on Windows environment. 2. Improve Jacoco class and package level filtering 3. Fixed Jmeter test runner issue on Linux New dependencies are as follows. carbon-platform-integration 4.4.1 carbon-platform-integration-utils 4.4.1 Thanks, Krishantha. On Mon, Jun 8, 2015 at 6:04 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Product teams, Following test automation repos have been released to make the artefacts compliant with JDK 7/8. Please update your product integration test dependencies before the next release. carbon-platform-integration 4.4.0 carbon-platform-integration-utils 4.4.0 With this release, new coverage generation was introduce which is based on Jacoco (To fix JDK 1.7 problems). You need update tests modules according to the guide at [1] for coverage generation. Let us know if you find any issues related to new coverage generation. Thanks, Krishantha. [1] https://docs.google.com/a/wso2.com/document/d/1pMJGdRH4Kmc4J3rYzgnpGlR5AnSeoC4QL9gMX9tUhYs/edit?usp=sharing -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middleware. -- 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
Re: [Dev] [TAF] Cleaning carbontmp after test execution
Hi Maheeka, On Fri, Jun 19, 2015 at 4:17 PM, Maheeka Jayasuriya mahe...@wso2.com wrote: Hi, During each test execution a copy of ESB distribution is unzipped to target folder to run the tests against. The problem is that distribution gets copied per execution per module. Each of this is ~250MB and therefore, extremely space consuming. As per [1], we can add carbontmp folder deletion logic in serverShutdown method. Is there any particular reason to preserve them? Distribution is preserved for the purpose of debugging. You can delete the distribution at end of tests if its not necessary. To delete the distribution: a. Use maven clearn-resource-plugin and configure it to run at the end of tests. [1] may helps. b. Write you own framework extension and clean distribution at the end of each test module execution [recommended] Thanks, Krishantha. [1] http://stackoverflow.com/questions/2911676/delete-the-target-directory-after-build [1] https://github.com/wso2/carbon-platform-integration/blob/master/test-automation-framework/org.wso2.carbon.automation.extensions/src/main/java/org/wso2/carbon/automation/extensions/servers/carbonserver/CarbonServerManager.java Thanks, Maheeka Jayasuriya Software Engineer Mobile : +9450661 ___ Dev mailing list Dev@wso2.org 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 . middleware. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [TAF] Support for RabbitMQ
Hi Maheeka, On Thu, Jun 18, 2015 at 11:31 AM, Maheeka Jayasuriya mahe...@wso2.com wrote: [Moving to dev@] To update the current status on $subject. The main concern of including rabbitmq to test framework is that, rabbitmq server cannot be started programmatically. This is because there is no server library available and rabbitmq-server distribution is too large to be included to product-esb (~18MB). Hence, the alternative is to have rabbitmq-server started at the time of running tests. Therefore, as per offline discussion with Krishantha, rabbitmq-tests will be added to a new integration test module - 'tests-platform' and skipped during jenkins build by setting the skipTest property in maven-surefire-plugin configuration. However, most of the rabbitmq server operations can be performed via rabbitmqctl [1], by executing commands. With this support, I am looking at the possibility of starting rabbitmq server at runtime. For this following will be done. 1. set RabbitMQ server home using an automation.xml property 2. Start up RabbitMQ server To start the rabbitmq server, what is the best approach? To have a RabbitMQ server extension or with a broker startup test case similar to JMS for ActiveMQServer [2]. I think you better start RabbitMQ server Similar to the implementation followed for ActiveMQ. it will give you much flexibility on server startup and configuration management. Also keep noted about remotely hosted RabbitMQ server instance as well. This is because we might be able to start RabbitMQ server though puppet or some other configuration management system in future along with product setup. Thanks, Krishantha. In conclusion, the idea is to allow running RabbitMQ tests by, 1. enable tests in maven-surefire-plugin configuration 2. set RabbitMQ server home in automation.xml Please share your ideas. [1] https://www.rabbitmq.com/man/rabbitmqctl.1.man.html [2] https://docs.wso2.com/display/TA430/Writing+WSO2+ESB+and+JMS+Integration+Tests Thanks, Maheeka Maheeka Jayasuriya Software Engineer Mobile : +9450661 On Fri, May 8, 2015 at 10:42 PM, Dharshana Warusavitharana dharsha...@wso2.com wrote: Hi Kasun, At the moment we don't have this in Automation team road map. As per the Architecture of the Automation framework you can implement an Framework extension to implement RabbitMQ support. So you don't have to depend on the Framework release to get RabbitMQ support. Since RabbitMQ related scenarios are most unlikely used by other products other than ESB and APIM. So the best approach would be to implement a Framework extension and maintain it in ESB side. Thank you, Dharshana On Fri, May 8, 2015 at 10:17 PM, Kasun Indrasiri ka...@wso2.com wrote: Do we have any plans on adding RabbitMQ support in TAF? Is that something useful for other products in the platform? On Thu, May 7, 2015 at 10:47 AM, Maheeka Jayasuriya mahe...@wso2.com wrote: Hi, With the upcoming ESB 4.9.0, rabbitmq transport and rabbitmq message store and processor features will be released. Therefore, we need test automation support from TAF for rabbitmq related scenarios. Can we get help from TAF team to work on this? Thanks, Maheeka Maheeka Jayasuriya Software Engineer Mobile : +9450661 -- Kasun Indrasiri Software Architect WSO2, Inc.; http://wso2.com lean.enterprise.middleware cell: +94 77 556 5206 Blog : http://kasunpanorama.blogspot.com/ -- Dharshana Warusavitharana Senior Software Engineer , Test Automation WSO2 Inc. http://wso2.com email : dharsha...@wso2.com dharsha...@wso2.com Tel : +94 11 214 5345 Fax :+94 11 2145300 cell : +94770342233 blog : http://dharshanaw.blogspot.com lean . enterprise . middleware -- 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
Re: [Dev] AS build fails at tests-security-manager due to file permission
Hi Niranjan, Can you create a TA Jira to track the issue. Thanks, Krishantha. On Fri, Jun 12, 2015 at 5:18 PM, Niranjan Karunanandham niran...@wso2.com wrote: Hi, When I tried to build AS pack from Github (master branch) [1], it failed with error in [2], but this is *passing in Jenkins*. Had an offline discussion with Nuwan and found out that in my machine *sign-packs.sh* which is used to sign the jar files in the pack for testing is not executed as it does *not have execute permission*. When I check the original location of the file and it has the permission - 775, but when it is copied the permission is lost. After I changed the original file permission to 755 and ran the test case, it failed when it tried to execute sign-packs.sh with a different error (error: that a newline is present (^M)). This is happened because the sign-packs.sh file has the Line Separator as *CRLF*. After changing it to *LF*, I was able to run the tests-security-manager. Why is this happening? [1] - https://github.com/wso2/product-as/ [2] - INFO [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil] - Port 9763 is closed and available for use INFO [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil] - Port 9443 is closed and available for use INFO [org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager] - Starting carbon server. INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - JAVA_HOME environment variable is set to /usr/local/java/jdk1.7.0_51 INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - CARBON_HOME environment variable is set to /home/nira/git/Nira/product-as/modules/integration/tests-integration/tests-security-manager/target/carbontmp1434108379893/wso2as-6.0.0-SNAPSHOT INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - Property pattern javax.net.ssl.trustStore is restricted for tenant code. INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - Property pattern javax.net.ssl.trustStorePassword is restricted for tenant code. INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - Property pattern denied.system.properties is restricted for tenant code. INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - java.security.AccessControlException INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - - klass: 'java/security/AccessControlException' INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - # INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - # A fatal error has been detected by the Java Runtime Environment: INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - # INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - # Internal Error (exceptions.cpp:424), pid=20621, tid=139773740406528 INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - # fatal error: ExceptionMark destructor expects no pending exceptions INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - # INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - # JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13) INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops) INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try ulimit -c unlimited before starting Java again INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - # INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - # An error report file with more information is saved as: INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - # /home/nira/git/Nira/product-as/modules/integration/tests-integration/tests-security-manager/target/carbontmp1434108379893/wso2as-6.0.0-SNAPSHOT/hs_err_pid20621.log INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - # INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - # If you would like to submit a bug report, please visit: INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - # http://bugreport.sun.com/bugreport/crash.jsp INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - # ERROR [org.wso2.carbon.automation.extensions.servers.utils.InputStreamHandler] - Aborted (core dumped) Regards, Nira -- *Niranjan Karunanandham* Senior Software Engineer - WSO2 Inc. WSO2 Inc.: http://www.wso2.com -- Krishantha Samaraweera
Re: [Dev] [MB] Unable to build with tests skipped with test automation framework 4.4.0
Hi Hemika, Its because your coverage data files not created since you skipped the tests. As a workaround you can execute the maven exec plugin in report module based on a activation condition defined for -Dmaven.test.skip. Also you need to define new profile with activateByDefault property set to true. Please refer [1] [2] for more details. [1] http://stackoverflow.com/questions/5443097/conditionally-execute-maven-plugins [2] http://books.sonatype.com/mvnref-book/reference/profiles-sect-activation.html Thanks, Krishantha. On Wed, Jun 10, 2015 at 2:21 PM, Hemika Kodikara hem...@wso2.com wrote: Hi All, I was moving the wso2 test automation framework of MB to 4.4.0 and I am facing this issue. When building the product with tests enabled(mvn clean install) all works fine without an issue. But when building with tests skipped(mvn clean install -Dmaven.test.skip=true), I am getting the following error. Exception in thread main org.wso2.carbon.automation.engine.exceptions.AutomationFrameworkException: Couldn't find coverage data files at /Users/hemikakodikara/mb/dev/300/product-mb/modules/integration/tests-integration/reports/target/jacoco at org.wso2.carbon.automation.engine.frameworkutils.CodeCoverageUtils.load(CodeCoverageUtils.java:286) at org.wso2.carbon.automation.engine.frameworkutils.CodeCoverageUtils.executeMerge(CodeCoverageUtils.java:268) at org.wso2.carbon.automation.engine.frameworkutils.TestCoverageGenerator.main(TestCoverageGenerator.java:51) In MB there is a Merge Coverage report as mentioned in [1]. I have attached the pom.xml file of the reports module. Currently these changes are not merged to the product. But can view them at [2]. [1] - https://docs.google.com/document/d/1pMJGdRH4Kmc4J3rYzgnpGlR5AnSeoC4QL9gMX9tUhYs/edit#heading=h.ouu74oaqo3zh [2] - https://github.com/hemikak/product-mb/tree/ui-enable Regards, Hemika Hemika Kodikara Software Engineer WSO2 Inc. lean . enterprise . middleware http://wso2.com Mobile : +9477762 -- 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
Re: [Dev] Improving automated tests code coverage of ML
Excellent progress Nirmal and the team. Keep up the good work! Thanks, -Krishantha. On Wed, Jun 10, 2015 at 10:53 AM, Nirmal Fernando nir...@wso2.com wrote: Hi All, I am working $subject. With latest improvement we're now at 66%. I will keep this thread updated. ​ Screen Shot 2015-06-10 at 10.50.50 AM.png https://docs.google.com/a/wso2.com/file/d/0BwyfgM0bWz_WWldOU3FwSWxsY28/edit?usp=drive_web ​ -- Thanks regards, Nirmal Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- 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
[Dev] Integration test dependencies are released !
Hi Product teams, Following test automation repos have been released to make the artefacts compliant with JDK 7/8. Please update your product integration test dependencies before the next release. carbon-platform-integration 4.4.0 carbon-platform-integration-utils 4.4.0 With this release, new coverage generation was introduce which is based on Jacoco (To fix JDK 1.7 problems). You need update tests modules according to the guide at [1] for coverage generation. Let us know if you find any issues related to new coverage generation. Thanks, Krishantha. [1] https://docs.google.com/a/wso2.com/document/d/1pMJGdRH4Kmc4J3rYzgnpGlR5AnSeoC4QL9gMX9tUhYs/edit?usp=sharing -- 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
Re: [Dev] Error - Running Integration test for connector with ESB-4.9.0.ALPHA
for project org.wso2.carbon.connector:org.wso2.carbon.connector.proworkflow:jar:1.0.0: The following artifacts could not be resolved: org.wso2.carbon:org.wso2.carbon.mediation.library.stub:jar:4.4.1, org.wso2.carbon.automation:org.wso2.carbon.automation.api:jar:4.4.1, org.wso2.carbon.automation:org.wso2.carbon.automation.core:jar:4.4.1, org.wso2.carbon.automation:org.wso2.carbon.automation.utils:jar:4.4.1, org.wso2.carbon:SecVerifier:aar:4.4.1: Failure to find org.wso2.carbon:org.wso2.carbon.mediation.library.stub:jar:4.4.1 in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the local repository, resolution will not be reattempted until the update interval of wso2-nexus has elapsed or updates are forced - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException esb:org.wso2.carbon.connector elilmatha$ Can any one suggest me with the proper versions to be changed in the pom [1] -- *S.Elilmatha* Associate Software Engineer, WSO2 Inc.; http://wso2.com lean.enterprise.middleware Mobile 0779842221. [1] -- *S.Elilmatha* Associate Software Engineer, WSO2 Inc.; http://wso2.com lean.enterprise.middleware Mobile 0779842221. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *S.Elilmatha* Associate Software Engineer, WSO2 Inc.; http://wso2.com lean.enterprise.middleware Mobile 0779842221. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Code coverage percentage
Hi Gihan, I think you are writing integration test to cover the case. If it is the case, generating coverage for empty private method is not possible. There is a bug reported in Emma to skip the empty private constructors [1]. If it is a unit test, you can use java reflection to call private method [2]. However it is arguable to invoke private constructor which should never be called. My recommendation is not to cover the private constructor, in coverage POV it doesn't add much value to numbers as the method contain only 2 lines. Thanks, Krishantha. [1]http://sourceforge.net/p/emma/bugs/66/ [2] http://stackoverflow.com/questions/19699634/coverage-for-private-constructor-junit-emma On Wed, Jun 3, 2015 at 12:01 PM, Gihan Anuruddha gi...@wso2.com wrote: Hi Saneth, No. We are only using static methods in that class. So there is no need to call that private method. That was only added as suggest by sonar. Regards, Gihan On Wed, Jun 3, 2015 at 11:58 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi Gihan, Isn't that private constructor is get called by anywhere inside that class?. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Jun 3, 2015 at 11:47 AM, Gihan Anuruddha gi...@wso2.com wrote: Hi Automation team, What we are actually looking as a code coverage stat? In my ServiceHolder class, I added private constructor based on sonar suggestion. Now, due to that I can't make my class, 100% code coverage in term of line, block and method. How do I overcome this problem and increase my code coverage percentage? COVERAGE SUMMARY FOR SOURCE FILE [ServiceHolder.java]nameline, %block, % method, %class, %ServiceHolder.java82% (9/11)83% (15/18)86% (6/7) 100% (1/1)COVERAGE BREAKDOWN BY CLASS AND METHODnameline, %block, % method, %class, % class ServiceHolder82% (9/11)83% (15/18) 86% (6/7)100% (1/1)getAnalyticsDataService (): AnalyticsDataService 100% (1/1)100% (2/2)100% (1/1) getAnalyticsEventSinkService (): AnalyticsEventSinkService100% (1/1) 100% (2/2)100% (1/1) getEventStreamService (): EventStreamService 100% (1/1)100% (2/2)100% (1/1) setAnalyticsDataService (AnalyticsDataService): void100% (2/2)100% (3/3) 100% (1/1) setAnalyticsEventSinkService (AnalyticsEventSinkService): void100% (2/2) 100% (3/3)100% (1/1) setEventStreamService (EventStreamService): void 100% (2/2)100% (3/3)100% (1/1) ServiceHolder (): void0% (0/2) 0% (0/3)0% (0/1) ​Regards, Gihan​ -- W.G. Gihan Anuruddha Senior Software Engineer | WSO2, Inc. M: +94772272595 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- W.G. Gihan Anuruddha Senior Software Engineer | WSO2, Inc. M: +94772272595 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Code coverage percentage
Its because your class contain only 11 lines :) Thanks, Krishantha. On Wed, Jun 3, 2015 at 12:25 PM, Gihan Anuruddha gi...@wso2.com wrote: Hi Krishantha, I covered the areas that I need to test in that class. But due to that private constructor, code coverage percentage affects drastically :( Regards, Gihan On Wed, Jun 3, 2015 at 12:16 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Gihan, I think you are writing integration test to cover the case. If it is the case, generating coverage for empty private method is not possible. There is a bug reported in Emma to skip the empty private constructors [1]. If it is a unit test, you can use java reflection to call private method [2]. However it is arguable to invoke private constructor which should never be called. My recommendation is not to cover the private constructor, in coverage POV it doesn't add much value to numbers as the method contain only 2 lines. Thanks, Krishantha. [1]http://sourceforge.net/p/emma/bugs/66/ [2] http://stackoverflow.com/questions/19699634/coverage-for-private-constructor-junit-emma On Wed, Jun 3, 2015 at 12:01 PM, Gihan Anuruddha gi...@wso2.com wrote: Hi Saneth, No. We are only using static methods in that class. So there is no need to call that private method. That was only added as suggest by sonar. Regards, Gihan On Wed, Jun 3, 2015 at 11:58 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi Gihan, Isn't that private constructor is get called by anywhere inside that class?. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Jun 3, 2015 at 11:47 AM, Gihan Anuruddha gi...@wso2.com wrote: Hi Automation team, What we are actually looking as a code coverage stat? In my ServiceHolder class, I added private constructor based on sonar suggestion. Now, due to that I can't make my class, 100% code coverage in term of line, block and method. How do I overcome this problem and increase my code coverage percentage? COVERAGE SUMMARY FOR SOURCE FILE [ServiceHolder.java]nameline, % block, %method, %class, %ServiceHolder.java82% (9/11)83% (15/18) 86% (6/7)100% (1/1)COVERAGE BREAKDOWN BY CLASS AND METHODnameline, % block, %method, %class, % class ServiceHolder82% (9/11) 83% (15/18)86% (6/7)100% (1/1) getAnalyticsDataService (): AnalyticsDataService100% (1/1)100% (2/2) 100% (1/1) getAnalyticsEventSinkService (): AnalyticsEventSinkService 100% (1/1)100% (2/2)100% (1/1) getEventStreamService (): EventStreamService100% (1/1)100% (2/2) 100% (1/1) setAnalyticsDataService (AnalyticsDataService): void 100% (2/2)100% (3/3)100% (1/1) setAnalyticsEventSinkService (AnalyticsEventSinkService): void 100% (2/2)100% (3/3)100% (1/1) setEventStreamService (EventStreamService): void100% (2/2)100% (3/3) 100% (1/1) ServiceHolder (): void0% (0/2)0% (0/3)0% (0/1) ​Regards, Gihan​ -- W.G. Gihan Anuruddha Senior Software Engineer | WSO2, Inc. M: +94772272595 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- W.G. Gihan Anuruddha Senior Software Engineer | WSO2, Inc. M: +94772272595 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- W.G. Gihan Anuruddha Senior Software Engineer | WSO2, Inc. M: +94772272595 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Updating APIM integration test cases for test with multiple tenants
Hi Irham, Can you send a pull request for already completed tests. Note that you don't need to migrate Jmeter tests to run on tenant mode. If test case cannot be executed on tenant mode, please mention the reason under Remarks column. Thanks, Krishantha. On Fri, May 22, 2015 at 11:44 AM, Irham Iqbal iq...@wso2.com wrote: Hi All, I have been updating the APIM integration test cases as below. Please find the process document[1] 1. Adding tenant mode test for tests which are currently running by super tenant mode only. 2. Adding super tenant mode for tests which are currently running by a tenant and not by super tenant. [1] https://docs.google.com/spreadsheets/d/1dCeFHhzyWxrS9HvSPj2SQq6ahh4cO8Hx41TrfWTTyoM/edit#gid=0 -- Irham Iqbal Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 777888452 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Writing automation tests to check cache timeouts
Hi Pulasthi, Any default debug logs available in cache implementation. Using debug logs we can verify whether the resource is really cached or not. Other option would be to check DB calls.. which is bit hard to use as automation verification step. Thanks, Krishantha. On Wed, May 20, 2015 at 1:18 PM, Gayashan Amarasinghe gayas...@wso2.com wrote: Hi Pulasthi, Apologies, didn't understand that your query is regarding resource caching in the registry. Perhaps, you can use a cache listener for this task [1] if it is possible to engage listeners to the resource cache? [1] https://github.com/wso2/carbon4-kernel/blob/master/core/javax.cache/src/test/java/org/wso2/carbon/caching/impl/CacheListenerTestCase.java Thank you. /Gayashan On Wed, May 20, 2015 at 1:09 PM, Pulasthi Supun pulas...@wso2.com wrote: Hi Krishantha, The manual process that i used to test the changes was to add several conditional logs to check if a specific resource was taken from the database or of the cache hit was successful. And test which log was hit after 15mints ( the timeout period ). @Gayashan What you are explaining can be used to test the caching implementation it self, not if the changes done to make the registry resource cache works properly. Best Regards, Pulasthi On Wed, May 20, 2015 at 1:04 PM, Gayashan Amarasinghe gayas...@wso2.com wrote: Hi Pulasthi, You can initiate a new cache manager and a cache with a proper cache expiry time. CacheManager cacheManager = Caching.getCacheManagerFactory().getCacheManager( cacheManagerName); CacheString, String cache = cacheManager.String, String createCacheBuilder(cacheName). setExpiry(CacheConfiguration.ExpiryType.MODIFIED, new CacheConfiguration.Duration(TimeUnit.SECONDS, 10)). setStoreByValue(false).build(); and put items in to that cache and sleep the thread until the cache expiry time. After waking up you can assert whether the inserted item is null. If null, the cache has expired. There are some existing test cases [1] in the kernel. [1] https://github.com/wso2/carbon4-kernel/blob/master/core/javax.cache/src/test/java/org/wso2/carbon/caching/impl/CachingTestCase.java#L246 Thank you. /Gayashan On Wed, May 20, 2015 at 12:26 PM, Pulasthi Supun pulas...@wso2.com wrote: Hi All, Is there a way to write automation tests to tests the timeout configurations of the cache. The test needs to be able to test if the cache values were invalidated after the given timeout. Best Regards, Pulasthi -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Gayashan Amarasinghe* Software Engineer | Platform TG WSO2, Inc. | http://wso2.com lean. enterprise. middleware Mobile : +94718314517 Blog : gayashan-a.blogspot.com -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi -- *Gayashan Amarasinghe* Software Engineer | Platform TG WSO2, Inc. | http://wso2.com lean. enterprise. middleware Mobile : +94718314517 Blog : gayashan-a.blogspot.com -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB] Error while starting MB 3.0.0 cluster setup
) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1279) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1192) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5210) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5493) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: org.wso2.andes.kernel.AndesException: Error occurred while retrieving all queue information. at org.wso2.andes.store.rdbms.RDBMSAndesContextStoreImpl.getAllQueuesStored(RDBMSAndesContextStoreImpl.java:697) at org.wso2.andes.kernel.AndesKernelBoot.recoverMapsForEachQueue(AndesKernelBoot.java:133) at org.wso2.andes.kernel.AndesKernelBoot.recoverDistributedSlotMap(AndesKernelBoot.java:116) at org.wso2.andes.server.virtualhost.VirtualHostImpl.init(VirtualHostImpl.java:210) at org.wso2.andes.server.virtualhost.VirtualHostImpl.init(VirtualHostImpl.java:155) at org.wso2.andes.server.registry.ApplicationRegistry.createVirtualHost(ApplicationRegistry.java:568) at org.wso2.andes.server.registry.ApplicationRegistry.initialiseVirtualHosts(ApplicationRegistry.java:327) at org.wso2.andes.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:261) ... 105 more Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'wso2_mb.MB_QUEUE' doesn't exist at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) at com.mysql.jdbc.Util.getInstance(Util.java:386) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1054) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2825) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2156) at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2323) at org.wso2.andes.store.rdbms.RDBMSAndesContextStoreImpl.getAllQueuesStored(RDBMSAndesContextStoreImpl.java:684) ... 112 more Thanks Amalka -- Indika Sampath Senior Software Engineer WSO2 Inc. http://wso2.com Phone: +94 716 424 744 Blog: http://indikasampath.blogspot.com/ -- Amalka Subasinghe Senior Software Engineer WSO2 Inc. Mobile: +94 77 9401267 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Amalka Subasinghe Senior Software Engineer WSO2 Inc. Mobile: +94 77 9401267 -- Indika Sampath Senior Software Engineer WSO2 Inc. http://wso2.com Phone: +94 716 424 744 Blog: http://indikasampath.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Hasitha Abeykoon* Senior Software Engineer; WSO2, Inc.; http://wso2.com *cell:* *+94 719363063* *blog: **abeykoon.blogspot.com* http://abeykoon.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ramith Jayasinghe Technical Lead WSO2 Inc., http://wso2.com lean.enterprise.middleware E: ram...@wso2.com P: +94 777542851 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Asitha Nanayakkara* Software Engineer WSO2, Inc. http://wso2.com/ Mob: + 94 77 85 30 682 -- *Asitha Nanayakkara* Software Engineer WSO2, Inc. http://wso2.com/ Mob: + 94 77 85 30 682 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean
Re: [Dev] Writing automation tests to check cache timeouts
Hi Pulasthi et all, What is the manual procedure to test resource cashing ? Thanks, Krishantha. On Wed, May 20, 2015 at 12:26 PM, Pulasthi Supun pulas...@wso2.com wrote: Hi All, Is there a way to write automation tests to tests the timeout configurations of the cache. The test needs to be able to test if the cache values were invalidated after the given timeout. Best Regards, Pulasthi -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Enterprise Store - UI test failures
Ping ! Thanks, Krishantha On Tue, May 19, 2015 at 7:37 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi all, Have we fixed all failures ? or introduce new tests ? Thanks, Krishantha. On Wed, Apr 29, 2015 at 8:58 AM, Ayesha Dissanayaka aye...@wso2.com wrote: Hi all, I was able to fix one test class[1] in this[2] commit. Hope this would be helpful in order to fix other test failures. Best approach would be to debug test classes one at a time to locate the UI element mismatches. [1] https://github.com/wso2/product-es/blob/e6a6a2b2891f0d436294320436caa09ed9ffae23/modules/integration/tests-ui-integration/tests-ui/src/test/java/org/wso2/es/ui/integration/test/publisher/ESPublisherAddEditAssetTestCase.java [2] https://github.com/wso2/product-es/commit/e6a6a2b2891f0d436294320436caa09ed9ffae23 Thanks! -Ayesha On Tue, Apr 28, 2015 at 12:46 AM, Rajeenthini Satkunam rajeenth...@wso2.com wrote: Hi, Noted,I will look into this links and I will discuss with team if I need further helps on this. On Tue, Apr 28, 2015 at 7:52 AM, Ayesha Dissanayaka aye...@wso2.com wrote: Hi all, I think the reason for this test failures should be the recent UI changes in ES. The mentioned UI tests were written on top of previous ES UIs and I don't think we have re-written them on top of new UI. Hope the team has already started working on this. Almost all the tests are failing due to unavailability of UI elements, which is expected due to the change in UI. So, I think the best way to fix this would be to re-generate the tests using selenium record and playback, rather than someone going through line by line to map previous UI elements to new ones. We already have the templates for ES publisher and Store UI test generation. And the initial idea of having Selenium UI Test Generation for ES is exactly to address this kind of scenarios without much of a trouble. @Rajeenthini, since you are working on this, below e-mail threads and links would be helpful for you. Let me know if you need further help on this. [1] [Dev][ES] Selenium UI Integration Test Generation [2] [ES- Integration Test] Custom WebDriver Class for UI test Automation [3] http://techspace-ps.blogspot.com/2015/01/selenium-ide-template-for-testng.html [4] http://asadistechspace.blogspot.com/2014/12/customize-selenium-code-jeneration.html#.VT7oGzlO0c0 Thanks! -Ayesha On Tue, Apr 21, 2015 at 6:01 AM, Udara Rathnayake uda...@wso2.com wrote: Hi Krishantha, We are looking into this. Regards, UdaraR On Mon, Apr 20, 2015 at 5:12 PM, Krishantha Samaraweera krishan...@wso2.com wrote: More test failures in tests-ui module. Failed tests: testESPublishToStore(org.wso2.es.ui.integration.test.common.ESPublishToStore): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) setUp(org.wso2.es.ui.integration.test.notifications.ESPublisherNotificationTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) tearDown(org.wso2.es.ui.integration.test.notifications.ESPublisherNotificationTestCase) testAddAsset(org.wso2.es.ui.integration.test.publisher.ESPublisherTenantAddEditAssetTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) testAddAsset(org.wso2.es.ui.integration.test.publisher.ESPublisherTenantAddEditAssetTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) testSubscriptionCreation(org.wso2.es.ui.integration.test.notifications.ESPublisherSubscriptionTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) testSubscriptionCreation(org.wso2.es.ui.integration.test.notifications.ESPublisherSubscriptionTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) setUp(org.wso2.es.ui.integration.test.notifications.ESPublisherTenantNotificationTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) setUp(org.wso2.es.ui.integration.test.store.ESStoreAnonCategorySortingTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) tearDown(org.wso2.es.ui.integration.test.notifications.ESPublisherTenantNotificationTestCase) testAnonHomePage(org.wso2.es.ui.integration.test.store.ESStoreAnonHomePageTestCase): Timed out after 30 seconds waiting for presence of element located by: By.selector: div.span3.store-right div.row div.span3(..) testAnonNavigationLinks(org.wso2.es.ui.integration.test.store.ESStoreAnonHomePageTestCase): Recent Gadgets link not working expected [Stacked Line Chart] but found [Line Chart] testSubscriptionCreation(org.wso2.es.ui.integration.test.notifications.ESPublisherTenantSubscriptionTestCase): Timed out after 30 seconds waiting
Re: [Dev] Test Automation Framework Support for MQTT Server
Hi Mohan, On Tue, May 19, 2015 at 10:49 AM, Mohanadarshan Vivekanandalingam mo...@wso2.com wrote: On Thu, May 14, 2015 at 12:18 PM, Nuwan Wimalasekara nuw...@wso2.com wrote: Hi Mohan, We are planning to release the test-automation-framework 4.3.2 by end of tomorrow(Friday). @ Nuwan, Whether above is released ? This is not yet released publicly, but in staging - http://maven.wso2.org/nexus/content/repositories/orgwso2carbonautomation-010/org/wso2/carbon/automation/ Version - 4.4.0 Thanks, Krishantha. Thanks, Nuwanw On Thu, May 14, 2015 at 12:04 PM, Mohanadarshan Vivekanandalingam mo...@wso2.com wrote: By the Nuwan, when you guys planning to release the 4.3.2 automation framework ? Thanks, Mohan On Wed, May 13, 2015 at 5:44 PM, Mohanadarshan Vivekanandalingam mo...@wso2.com wrote: Thanks Nuwan, I'll check that... Regards, Mohan On Wed, May 13, 2015 at 4:54 PM, Nuwan Wimalasekara nuw...@wso2.com wrote: Hi Mohan, We have enabled the MQTT transport in Embedded ActiveMQ server started by Test Framework. Now you can use mqtt transport in integration test. This feature is available in test-automation-framework 4.3.2-SNAPSHOT. Transport is enabled on mqtt://localhost:1883 Use below code to start the server with MQTT transport and TCP transport JMSBrokerController activeMqBroker = new JMSBrokerController(localhost, JMSBrokerConfigurationProvider.getInstance().getTransportConnectors()); activeMqBroker.start() Thanks, Nuwanw On Mon, May 11, 2015 at 5:51 PM, Mohanadarshan Vivekanandalingam mo...@wso2.com wrote: On Mon, May 11, 2015 at 3:38 PM, Nuwan Wimalasekara nuw...@wso2.com wrote: Hi Mohan, Embedded broker only enable the tcp connector currently. We have to add the mqtt connector when the server is started. I am working on enabling the mqtt for embedded activeMQ server started by test framework. I will update the thread once implementation is done. Great.. Thanks Nuwan for looking into this.. Thanks, Nuwanw On Thu, May 7, 2015 at 10:15 PM, Mohanadarshan Vivekanandalingam mo...@wso2.com wrote: Thanks Krishantha... @Waruna, please let us know if you found any option.. Thanks, Mohan On Thu, May 7, 2015 at 11:57 AM, Waruna Perera waru...@wso2.com wrote: HI Krishantha, Will check on that. Thanks, On Thu, May 7, 2015 at 11:54 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Waruna, I don't think we have enabled ActiveMQ broker for MQTT. Can you check whether MQTT endpoint is exposed. And any workaround to get it started. The version we used is 5.9.1 and it should support for MQTT. Thanks, Krishantha. On Tue, May 5, 2015 at 6:29 PM, Mohanadarshan Vivekanandalingam mo...@wso2.com wrote: Hi All, We are planning to ship MQTT event adapter support with CEP 4.0.0. We are done with the implementation but facing some issues in writing integration tests.. To test this functionality, we have used the ActiveMQ as the MQTT server. ActiveMQ version 5.9.0 and upwards contains a mqtt endpoint. Based on [1], Automation framework has activemq 5.9.1 support. But when I am trying-out, I haven't seen a mqtt endpoint. It only has below endpoint, INFO [org.apache.activemq.transport.TransportServerThreadSupport] - Listening for connections at: tcp://localhost:61616 INFO [org.apache.activemq.broker.TransportConnector] - Connector tcp://127.0.0.1:61616 started INFO [org.apache.activemq.broker.BrokerService] - Apache ActiveMQ 5.9.1 (testBroker, ID:mohan-ThinkPad-T530-35747-1430828992894-0:1) started INFO [org.apache.activemq.broker.BrokerService] - For help or more information please see: http://activemq.apache.org By default, ActiveMQ has mqtt endpoint in port 1883.. Can someone from Automation team help on this.. This is a blocker to consider the feature as done-done .. [1] https://wso2.org/jira/browse/TA-901 Thanks, Mohan -- *V. Mohanadarshan* *Software Engineer,* *Data Technologies Team,* *WSO2, Inc. http://wso2.com http://wso2.com * *lean.enterprise.middleware.* email: mo...@wso2.com phone:(+94) 771117673 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- *V. Mohanadarshan* *Software Engineer,* *Data Technologies Team,* *WSO2, Inc. http://wso2.com http://wso2.com * *lean.enterprise.middleware.* email: mo...@wso2.com phone:(+94) 771117673 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620 -- *V. Mohanadarshan* *Senior Software
Re: [Dev] Enterprise Store - UI test failures
Hi all, Have we fixed all failures ? or introduce new tests ? Thanks, Krishantha. On Wed, Apr 29, 2015 at 8:58 AM, Ayesha Dissanayaka aye...@wso2.com wrote: Hi all, I was able to fix one test class[1] in this[2] commit. Hope this would be helpful in order to fix other test failures. Best approach would be to debug test classes one at a time to locate the UI element mismatches. [1] https://github.com/wso2/product-es/blob/e6a6a2b2891f0d436294320436caa09ed9ffae23/modules/integration/tests-ui-integration/tests-ui/src/test/java/org/wso2/es/ui/integration/test/publisher/ESPublisherAddEditAssetTestCase.java [2] https://github.com/wso2/product-es/commit/e6a6a2b2891f0d436294320436caa09ed9ffae23 Thanks! -Ayesha On Tue, Apr 28, 2015 at 12:46 AM, Rajeenthini Satkunam rajeenth...@wso2.com wrote: Hi, Noted,I will look into this links and I will discuss with team if I need further helps on this. On Tue, Apr 28, 2015 at 7:52 AM, Ayesha Dissanayaka aye...@wso2.com wrote: Hi all, I think the reason for this test failures should be the recent UI changes in ES. The mentioned UI tests were written on top of previous ES UIs and I don't think we have re-written them on top of new UI. Hope the team has already started working on this. Almost all the tests are failing due to unavailability of UI elements, which is expected due to the change in UI. So, I think the best way to fix this would be to re-generate the tests using selenium record and playback, rather than someone going through line by line to map previous UI elements to new ones. We already have the templates for ES publisher and Store UI test generation. And the initial idea of having Selenium UI Test Generation for ES is exactly to address this kind of scenarios without much of a trouble. @Rajeenthini, since you are working on this, below e-mail threads and links would be helpful for you. Let me know if you need further help on this. [1] [Dev][ES] Selenium UI Integration Test Generation [2] [ES- Integration Test] Custom WebDriver Class for UI test Automation [3] http://techspace-ps.blogspot.com/2015/01/selenium-ide-template-for-testng.html [4] http://asadistechspace.blogspot.com/2014/12/customize-selenium-code-jeneration.html#.VT7oGzlO0c0 Thanks! -Ayesha On Tue, Apr 21, 2015 at 6:01 AM, Udara Rathnayake uda...@wso2.com wrote: Hi Krishantha, We are looking into this. Regards, UdaraR On Mon, Apr 20, 2015 at 5:12 PM, Krishantha Samaraweera krishan...@wso2.com wrote: More test failures in tests-ui module. Failed tests: testESPublishToStore(org.wso2.es.ui.integration.test.common.ESPublishToStore): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) setUp(org.wso2.es.ui.integration.test.notifications.ESPublisherNotificationTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) tearDown(org.wso2.es.ui.integration.test.notifications.ESPublisherNotificationTestCase) testAddAsset(org.wso2.es.ui.integration.test.publisher.ESPublisherTenantAddEditAssetTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) testAddAsset(org.wso2.es.ui.integration.test.publisher.ESPublisherTenantAddEditAssetTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) testSubscriptionCreation(org.wso2.es.ui.integration.test.notifications.ESPublisherSubscriptionTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) testSubscriptionCreation(org.wso2.es.ui.integration.test.notifications.ESPublisherSubscriptionTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) setUp(org.wso2.es.ui.integration.test.notifications.ESPublisherTenantNotificationTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) setUp(org.wso2.es.ui.integration.test.store.ESStoreAnonCategorySortingTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) tearDown(org.wso2.es.ui.integration.test.notifications.ESPublisherTenantNotificationTestCase) testAnonHomePage(org.wso2.es.ui.integration.test.store.ESStoreAnonHomePageTestCase): Timed out after 30 seconds waiting for presence of element located by: By.selector: div.span3.store-right div.row div.span3(..) testAnonNavigationLinks(org.wso2.es.ui.integration.test.store.ESStoreAnonHomePageTestCase): Recent Gadgets link not working expected [Stacked Line Chart] but found [Line Chart] testSubscriptionCreation(org.wso2.es.ui.integration.test.notifications.ESPublisherTenantSubscriptionTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) testSubscriptionCreation(org.wso2
Re: [Dev] APIM ui integration tests
Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Irham Iqbal Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 777888452 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Testing Jacoco based code coverage genration
Hi all, I have redesign Jacoco coverage generation a bit to support for coverage merging functionality. Now coverage data dump into $basedir/target/jacoco/coverage directory at the time of report generation, jacoco coverage data files are merged back to a single file (jacoco-data-merge.exec) and report will be generated using this merged data file. To merge multiple module test coverage data files. You can use pom file with exec-maven-plugin to execute org.wso2.carbon.automation.engine.frameworkutils.TestCoverageGenerator class. This will generate merged report at $basedir/target/jacoco/coverage/index.html. I will write a comprehensive document on applying Jacoco coverage to products. Thanks, Krishantha. On Wed, May 6, 2015 at 10:46 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Nuwan, You can't use TestCoverageGenerator anymore (We need to remove this class as well) . The merged report should be generated at the last test module with got executed as we merge all coverage data to common file. May be we can think of introducing pom file to do merging. If this option is not user friendly. Thanks, Krishantha. On Wed, May 6, 2015 at 10:24 AM, Nuwan Wimalasekara nuw...@wso2.com wrote: Hi Krishantha, I am getting below error when merging the coverage reports. generateReports implementation is missing in CodeCoverageUtils. report module use the org.wso2.carbon.integration.common.utils.coverage.TestCoverageGenerator to aggregate results. Exception in thread main java.lang.NoSuchMethodError: org.wso2.carbon.automation.engine.frameworkutils.CodeCoverageUtils.generateReports(Ljava/util/List;)V at org.wso2.carbon.integration.common.utils.coverage.TestCoverageGenerator.main(TestCoverageGenerator.java:36) Thanks, Nuwanw On Tue, May 5, 2015 at 9:47 PM, Nuwan Wimalasekara nuw...@wso2.com wrote: Yes. The correct implementation is org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension. We will remove the CarbonServerExtension from utils to get rid of conflicts. Thanks, Nuwanw On Tue, May 5, 2015 at 9:27 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Nuwan, You should remove org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerExtension not the org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension. Thanks, Krishantha. On Wed, May 6, 2015 at 9:47 AM, Nuwan Wimalasekara nuw...@wso2.com wrote: Hi We should remove org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension from extensions. Then all the tests module should refer the correct class. Thanks, Nuwanw On Tue, May 5, 2015 at 8:49 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Waruna, On Wed, May 6, 2015 at 9:12 AM, Waruna Perera waru...@wso2.com wrote: Hi Krishantha, And we need to update Automation.xml to use following class instead of one from utils. Please remove the CarbonServerExtension class at utils. Its was deprecated in last release and moved to test extensions to support for carbon kernel startup. Need to completely get rid of this extension class and its dependencies. Thanks, Krishantha. org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension Thanks On Tue, May 5, 2015 at 6:29 PM, Nuwan Wimalasekara nuw...@wso2.com wrote: Hi Krishantha, I tried generating coverage in ESB. It is working fine and Coverage reports generated. However the coverage report aggregation seems not working when there are multiple tests modules. We need to fix the issue. test-automation-framework - 4.3.2-SNAPSHOT carbon-platform-integration-utils - 4.3.1-SNAPSHOT Thanks, Nuwanw On Wed, Apr 29, 2015 at 10:41 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Correction : Step #1 configuration should be as follows. execution idcopy-jacoco-dependencies/id phasecompile/phase goals goalcopy-dependencies/goal /goals configuration outputDirectory${project.build.directory}/jacoco/outputDirectory includeTypesjar/includeTypes includeArtifactIdsorg.jacoco.agent/includeArtifactIds /configuration /execution Thanks, Krishantha. On Thu, Apr 30, 2015 at 2:50 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi all, New coverage implementation using Jacoco has been committed to master branch of carbon-platform-integration. I tried my best to adhere to existing Emma based design and reuse same instrumentation and filters text files. Note that this new coverage implementation was done to support for JDK 1.7 and 1.8. We need to test the new implementation thoroughly before the release. I've done initial testing with AS and everything seems to work. Automation team will start verifying coverage with products already migrated JDK 1.7. Specially products with multiple test modules (ESB, G-Reg BPS) Lets focus on testing following
Re: [Dev] Test Automation Framework Support for MQTT Server
Hi Waruna, I don't think we have enabled ActiveMQ broker for MQTT. Can you check whether MQTT endpoint is exposed. And any workaround to get it started. The version we used is 5.9.1 and it should support for MQTT. Thanks, Krishantha. On Tue, May 5, 2015 at 6:29 PM, Mohanadarshan Vivekanandalingam mo...@wso2.com wrote: Hi All, We are planning to ship MQTT event adapter support with CEP 4.0.0. We are done with the implementation but facing some issues in writing integration tests.. To test this functionality, we have used the ActiveMQ as the MQTT server. ActiveMQ version 5.9.0 and upwards contains a mqtt endpoint. Based on [1], Automation framework has activemq 5.9.1 support. But when I am trying-out, I haven't seen a mqtt endpoint. It only has below endpoint, INFO [org.apache.activemq.transport.TransportServerThreadSupport] - Listening for connections at: tcp://localhost:61616 INFO [org.apache.activemq.broker.TransportConnector] - Connector tcp:// 127.0.0.1:61616 started INFO [org.apache.activemq.broker.BrokerService] - Apache ActiveMQ 5.9.1 (testBroker, ID:mohan-ThinkPad-T530-35747-1430828992894-0:1) started INFO [org.apache.activemq.broker.BrokerService] - For help or more information please see: http://activemq.apache.org By default, ActiveMQ has mqtt endpoint in port 1883.. Can someone from Automation team help on this.. This is a blocker to consider the feature as done-done .. [1] https://wso2.org/jira/browse/TA-901 Thanks, Mohan -- *V. Mohanadarshan* *Software Engineer,* *Data Technologies Team,* *WSO2, Inc. http://wso2.com http://wso2.com * *lean.enterprise.middleware.* email: mo...@wso2.com phone:(+94) 771117673 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Testing Jacoco based code coverage genration
Hi Waruna, On Wed, May 6, 2015 at 9:12 AM, Waruna Perera waru...@wso2.com wrote: Hi Krishantha, And we need to update Automation.xml to use following class instead of one from utils. Please remove the CarbonServerExtension class at utils. Its was deprecated in last release and moved to test extensions to support for carbon kernel startup. Need to completely get rid of this extension class and its dependencies. Thanks, Krishantha. org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension Thanks On Tue, May 5, 2015 at 6:29 PM, Nuwan Wimalasekara nuw...@wso2.com wrote: Hi Krishantha, I tried generating coverage in ESB. It is working fine and Coverage reports generated. However the coverage report aggregation seems not working when there are multiple tests modules. We need to fix the issue. test-automation-framework - 4.3.2-SNAPSHOT carbon-platform-integration-utils - 4.3.1-SNAPSHOT Thanks, Nuwanw On Wed, Apr 29, 2015 at 10:41 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Correction : Step #1 configuration should be as follows. execution idcopy-jacoco-dependencies/id phasecompile/phase goals goalcopy-dependencies/goal /goals configuration outputDirectory${project.build.directory}/jacoco/outputDirectory includeTypesjar/includeTypes includeArtifactIdsorg.jacoco.agent/includeArtifactIds /configuration /execution Thanks, Krishantha. On Thu, Apr 30, 2015 at 2:50 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi all, New coverage implementation using Jacoco has been committed to master branch of carbon-platform-integration. I tried my best to adhere to existing Emma based design and reuse same instrumentation and filters text files. Note that this new coverage implementation was done to support for JDK 1.7 and 1.8. We need to test the new implementation thoroughly before the release. I've done initial testing with AS and everything seems to work. Automation team will start verifying coverage with products already migrated JDK 1.7. Specially products with multiple test modules (ESB, G-Reg BPS) Lets focus on testing following scenarios before the release. Test Scenarios for coverage : 1. Coverage generation with patches applied. 2. Merge coverage reports in multiple test modules. 3. WebApp class coverage. 4. Coverage generation after restart and impact to coverage numbers. To get started with Jacoco coverage : 1. Edit your test module pom and replace emma copy dependency execution configuration with below. execution idcopy-emma-dependencies/id phasecompile/phase goals goalcopy-dependencies/goal /goals configuration outputDirectory${project.build.directory}/emma/outputDirectory includeTypesjar/includeTypes includeArtifactIdsemma /includeArtifactIds /configuration /execution 2. Include jacoco argent as a dependency to root pom. dependency groupIdorg.jacoco/groupId artifactIdorg.jacoco.agent/artifactId version${jacoco.agent.version}/version /dependency jacoco.agent.version0.7.4.201502262128/jacoco.agent.version 3. Remove following system properties from surefire plugin. emma.home${basedir}/target/emma/emma.home emma.output${basedir}/target/emma/emma.output You will find following log entries in console with required details to view the report once coverage generation completed. Available report formats are XML, HTML and CSV INFO [org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager] - Jacoco coverage dump file path : /Users/krishantha/git/wso2/product-as/modules/integration/tests-integration/tests/target/jacoco.exec INFO [org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager] - Jacoco class file path : /Users/xxx/product-as/modules/integration/tests-integration/tests/target/wso2as-6.0.0-NAPSHOT/repository/components/plugins INFO [org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager] - Jacoco coverage report path : /Users/krishantha/git/wso2/product-as/modules/integration/tests-integration/tests/target/jacoco/coverage Thanks, Krishantha. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620 -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Krishantha Samaraweera Senior Technical Lead - Test Automation
Re: [Dev] Testing Jacoco based code coverage genration
Hi Nuwan, You can't use TestCoverageGenerator anymore (We need to remove this class as well) . The merged report should be generated at the last test module with got executed as we merge all coverage data to common file. May be we can think of introducing pom file to do merging. If this option is not user friendly. Thanks, Krishantha. On Wed, May 6, 2015 at 10:24 AM, Nuwan Wimalasekara nuw...@wso2.com wrote: Hi Krishantha, I am getting below error when merging the coverage reports. generateReports implementation is missing in CodeCoverageUtils. report module use the org.wso2.carbon.integration.common.utils.coverage.TestCoverageGenerator to aggregate results. Exception in thread main java.lang.NoSuchMethodError: org.wso2.carbon.automation.engine.frameworkutils.CodeCoverageUtils.generateReports(Ljava/util/List;)V at org.wso2.carbon.integration.common.utils.coverage.TestCoverageGenerator.main(TestCoverageGenerator.java:36) Thanks, Nuwanw On Tue, May 5, 2015 at 9:47 PM, Nuwan Wimalasekara nuw...@wso2.com wrote: Yes. The correct implementation is org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension. We will remove the CarbonServerExtension from utils to get rid of conflicts. Thanks, Nuwanw On Tue, May 5, 2015 at 9:27 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Nuwan, You should remove org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerExtension not the org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension. Thanks, Krishantha. On Wed, May 6, 2015 at 9:47 AM, Nuwan Wimalasekara nuw...@wso2.com wrote: Hi We should remove org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension from extensions. Then all the tests module should refer the correct class. Thanks, Nuwanw On Tue, May 5, 2015 at 8:49 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Waruna, On Wed, May 6, 2015 at 9:12 AM, Waruna Perera waru...@wso2.com wrote: Hi Krishantha, And we need to update Automation.xml to use following class instead of one from utils. Please remove the CarbonServerExtension class at utils. Its was deprecated in last release and moved to test extensions to support for carbon kernel startup. Need to completely get rid of this extension class and its dependencies. Thanks, Krishantha. org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension Thanks On Tue, May 5, 2015 at 6:29 PM, Nuwan Wimalasekara nuw...@wso2.com wrote: Hi Krishantha, I tried generating coverage in ESB. It is working fine and Coverage reports generated. However the coverage report aggregation seems not working when there are multiple tests modules. We need to fix the issue. test-automation-framework - 4.3.2-SNAPSHOT carbon-platform-integration-utils - 4.3.1-SNAPSHOT Thanks, Nuwanw On Wed, Apr 29, 2015 at 10:41 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Correction : Step #1 configuration should be as follows. execution idcopy-jacoco-dependencies/id phasecompile/phase goals goalcopy-dependencies/goal /goals configuration outputDirectory${project.build.directory}/jacoco/outputDirectory includeTypesjar/includeTypes includeArtifactIdsorg.jacoco.agent/includeArtifactIds /configuration /execution Thanks, Krishantha. On Thu, Apr 30, 2015 at 2:50 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi all, New coverage implementation using Jacoco has been committed to master branch of carbon-platform-integration. I tried my best to adhere to existing Emma based design and reuse same instrumentation and filters text files. Note that this new coverage implementation was done to support for JDK 1.7 and 1.8. We need to test the new implementation thoroughly before the release. I've done initial testing with AS and everything seems to work. Automation team will start verifying coverage with products already migrated JDK 1.7. Specially products with multiple test modules (ESB, G-Reg BPS) Lets focus on testing following scenarios before the release. Test Scenarios for coverage : 1. Coverage generation with patches applied. 2. Merge coverage reports in multiple test modules. 3. WebApp class coverage. 4. Coverage generation after restart and impact to coverage numbers. To get started with Jacoco coverage : 1. Edit your test module pom and replace emma copy dependency execution configuration with below. execution idcopy-emma-dependencies/id phasecompile/phase goals goalcopy-dependencies/goal /goals configuration outputDirectory${project.build.directory}/emma/outputDirectory includeTypesjar/includeTypes includeArtifactIdsemma /includeArtifactIds /configuration /execution 2. Include jacoco argent as a dependency to root pom. dependency
Re: [Dev] Testing Jacoco based code coverage genration
Hi Nuwan, You should remove org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerExtension not the org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension. Thanks, Krishantha. On Wed, May 6, 2015 at 9:47 AM, Nuwan Wimalasekara nuw...@wso2.com wrote: Hi We should remove org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension from extensions. Then all the tests module should refer the correct class. Thanks, Nuwanw On Tue, May 5, 2015 at 8:49 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Waruna, On Wed, May 6, 2015 at 9:12 AM, Waruna Perera waru...@wso2.com wrote: Hi Krishantha, And we need to update Automation.xml to use following class instead of one from utils. Please remove the CarbonServerExtension class at utils. Its was deprecated in last release and moved to test extensions to support for carbon kernel startup. Need to completely get rid of this extension class and its dependencies. Thanks, Krishantha. org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension Thanks On Tue, May 5, 2015 at 6:29 PM, Nuwan Wimalasekara nuw...@wso2.com wrote: Hi Krishantha, I tried generating coverage in ESB. It is working fine and Coverage reports generated. However the coverage report aggregation seems not working when there are multiple tests modules. We need to fix the issue. test-automation-framework - 4.3.2-SNAPSHOT carbon-platform-integration-utils - 4.3.1-SNAPSHOT Thanks, Nuwanw On Wed, Apr 29, 2015 at 10:41 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Correction : Step #1 configuration should be as follows. execution idcopy-jacoco-dependencies/id phasecompile/phase goals goalcopy-dependencies/goal /goals configuration outputDirectory${project.build.directory}/jacoco/outputDirectory includeTypesjar/includeTypes includeArtifactIdsorg.jacoco.agent/includeArtifactIds /configuration /execution Thanks, Krishantha. On Thu, Apr 30, 2015 at 2:50 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi all, New coverage implementation using Jacoco has been committed to master branch of carbon-platform-integration. I tried my best to adhere to existing Emma based design and reuse same instrumentation and filters text files. Note that this new coverage implementation was done to support for JDK 1.7 and 1.8. We need to test the new implementation thoroughly before the release. I've done initial testing with AS and everything seems to work. Automation team will start verifying coverage with products already migrated JDK 1.7. Specially products with multiple test modules (ESB, G-Reg BPS) Lets focus on testing following scenarios before the release. Test Scenarios for coverage : 1. Coverage generation with patches applied. 2. Merge coverage reports in multiple test modules. 3. WebApp class coverage. 4. Coverage generation after restart and impact to coverage numbers. To get started with Jacoco coverage : 1. Edit your test module pom and replace emma copy dependency execution configuration with below. execution idcopy-emma-dependencies/id phasecompile/phase goals goalcopy-dependencies/goal /goals configuration outputDirectory${project.build.directory}/emma/outputDirectory includeTypesjar/includeTypes includeArtifactIdsemma /includeArtifactIds /configuration /execution 2. Include jacoco argent as a dependency to root pom. dependency groupIdorg.jacoco/groupId artifactIdorg.jacoco.agent/artifactId version${jacoco.agent.version}/version /dependency jacoco.agent.version0.7.4.201502262128/jacoco.agent.version 3. Remove following system properties from surefire plugin. emma.home${basedir}/target/emma/emma.home emma.output${basedir}/target/emma/emma.output You will find following log entries in console with required details to view the report once coverage generation completed. Available report formats are XML, HTML and CSV INFO [org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager] - Jacoco coverage dump file path : /Users/krishantha/git/wso2/product-as/modules/integration/tests-integration/tests/target/jacoco.exec INFO [org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager] - Jacoco class file path : /Users/xxx/product-as/modules/integration/tests-integration/tests/target/wso2as-6.0.0-NAPSHOT/repository/components/plugins INFO [org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager] - Jacoco coverage report path : /Users/krishantha/git/wso2/product-as/modules/integration/tests-integration/tests/target/jacoco/coverage Thanks, Krishantha. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc
Re: [Dev] Testing Jacoco based code coverage genration
Hi Nuwan, What is the exact issue ? Please check whether java.io.tmpdir directory is set to another in test module pom files. Normally coverage data should be appended to jacoco.exec file at tmp dir when running each test module. Thanks, Krishantha. On Tue, May 5, 2015 at 6:29 PM, Nuwan Wimalasekara nuw...@wso2.com wrote: Hi Krishantha, I tried generating coverage in ESB. It is working fine and Coverage reports generated. However the coverage report aggregation seems not working when there are multiple tests modules. We need to fix the issue. test-automation-framework - 4.3.2-SNAPSHOT carbon-platform-integration-utils - 4.3.1-SNAPSHOT Thanks, Nuwanw On Wed, Apr 29, 2015 at 10:41 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Correction : Step #1 configuration should be as follows. execution idcopy-jacoco-dependencies/id phasecompile/phase goals goalcopy-dependencies/goal /goals configuration outputDirectory${project.build.directory}/jacoco/outputDirectory includeTypesjar/includeTypes includeArtifactIdsorg.jacoco.agent/includeArtifactIds /configuration /execution Thanks, Krishantha. On Thu, Apr 30, 2015 at 2:50 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi all, New coverage implementation using Jacoco has been committed to master branch of carbon-platform-integration. I tried my best to adhere to existing Emma based design and reuse same instrumentation and filters text files. Note that this new coverage implementation was done to support for JDK 1.7 and 1.8. We need to test the new implementation thoroughly before the release. I've done initial testing with AS and everything seems to work. Automation team will start verifying coverage with products already migrated JDK 1.7. Specially products with multiple test modules (ESB, G-Reg BPS) Lets focus on testing following scenarios before the release. Test Scenarios for coverage : 1. Coverage generation with patches applied. 2. Merge coverage reports in multiple test modules. 3. WebApp class coverage. 4. Coverage generation after restart and impact to coverage numbers. To get started with Jacoco coverage : 1. Edit your test module pom and replace emma copy dependency execution configuration with below. execution idcopy-emma-dependencies/id phasecompile/phase goals goalcopy-dependencies/goal /goals configuration outputDirectory${project.build.directory}/emma/outputDirectory includeTypesjar/includeTypes includeArtifactIdsemma /includeArtifactIds /configuration /execution 2. Include jacoco argent as a dependency to root pom. dependency groupIdorg.jacoco/groupId artifactIdorg.jacoco.agent/artifactId version${jacoco.agent.version}/version /dependency jacoco.agent.version0.7.4.201502262128/jacoco.agent.version 3. Remove following system properties from surefire plugin. emma.home${basedir}/target/emma/emma.home emma.output${basedir}/target/emma/emma.output You will find following log entries in console with required details to view the report once coverage generation completed. Available report formats are XML, HTML and CSV INFO [org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager] - Jacoco coverage dump file path : /Users/krishantha/git/wso2/product-as/modules/integration/tests-integration/tests/target/jacoco.exec INFO [org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager] - Jacoco class file path : /Users/xxx/product-as/modules/integration/tests-integration/tests/target/wso2as-6.0.0-NAPSHOT/repository/components/plugins INFO [org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager] - Jacoco coverage report path : /Users/krishantha/git/wso2/product-as/modules/integration/tests-integration/tests/target/jacoco/coverage Thanks, Krishantha. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] How to assign java agent to carbon servers
Hi Nuwan, Nope.. I had to edit wso2server.sh to attach java agent. The code is committed to master branch. Thanks, Krishantha. On Tue, May 5, 2015 at 4:22 PM, Nuwan Wimalasekara nuw...@wso2.com wrote: Hi Krishantha, Did you find a solution to set the agent without editing the wso2server.sh Thanks, Nuwanw On Wed, Apr 29, 2015 at 1:04 PM, Krishantha Samaraweera krishan...@wso2.com wrote: On Thu, Apr 30, 2015 at 1:31 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi all, I'm trying to assign Jacoco (code coverage) java agent to our products and found it's not OOB supported though command line. So I had to edit the wso2server.sh and set it as JAVA_OPTS argument. sh wso2server.sh -javaagent:/Users/krishantha/xxx/agent/jacocoagent.jar=destfile=/Users/krishantha/xxx/target/jacoco.exec,append=true -* Not working* export JAVA_OPTS=-javaagent:/Users/krishantha/xxx/agent/jacocoagent.jar=destfile=/Users/krishantha/xxx/target/jacoco.exec,append=true sh wso2sever.sh - *Works* Is there any other way to achieve this without editing the shell script or exporting JAVA_OPTS. Since this a VM argument doesn't it need to be supported though command line ? Thanks, Krishantha. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] How to assign java agent to carbon servers
On Thu, Apr 30, 2015 at 1:31 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi all, I'm trying to assign Jacoco (code coverage) java agent to our products and found it's not OOB supported though command line. So I had to edit the wso2server.sh and set it as JAVA_OPTS argument. sh wso2server.sh -javaagent:/Users/krishantha/xxx/agent/jacocoagent.jar=destfile=/Users/krishantha/xxx/target/jacoco.exec,append=true -* Not working* export JAVA_OPTS=-javaagent:/Users/krishantha/xxx/agent/jacocoagent.jar=destfile=/Users/krishantha/xxx/target/jacoco.exec,append=true sh wso2sever.sh - *Works* Is there any other way to achieve this without editing the shell script or exporting JAVA_OPTS. Since this a VM argument doesn't it need to be supported though command line ? Thanks, Krishantha. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Testing Jacoco based code coverage genration
Hi all, New coverage implementation using Jacoco has been committed to master branch of carbon-platform-integration. I tried my best to adhere to existing Emma based design and reuse same instrumentation and filters text files. Note that this new coverage implementation was done to support for JDK 1.7 and 1.8. We need to test the new implementation thoroughly before the release. I've done initial testing with AS and everything seems to work. Automation team will start verifying coverage with products already migrated JDK 1.7. Specially products with multiple test modules (ESB, G-Reg BPS) Lets focus on testing following scenarios before the release. Test Scenarios for coverage : 1. Coverage generation with patches applied. 2. Merge coverage reports in multiple test modules. 3. WebApp class coverage. 4. Coverage generation after restart and impact to coverage numbers. To get started with Jacoco coverage : 1. Edit your test module pom and replace emma copy dependency execution configuration with below. execution idcopy-emma-dependencies/id phasecompile/phase goals goalcopy-dependencies/goal /goals configuration outputDirectory${project.build.directory}/emma/outputDirectory includeTypesjar/includeTypes includeArtifactIdsemma /includeArtifactIds /configuration /execution 2. Include jacoco argent as a dependency to root pom. dependency groupIdorg.jacoco/groupId artifactIdorg.jacoco.agent/artifactId version${jacoco.agent.version}/version /dependency jacoco.agent.version0.7.4.201502262128/jacoco.agent.version 3. Remove following system properties from surefire plugin. emma.home${basedir}/target/emma/emma.home emma.output${basedir}/target/emma/emma.output You will find following log entries in console with required details to view the report once coverage generation completed. Available report formats are XML, HTML and CSV INFO [org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager] - Jacoco coverage dump file path : /Users/krishantha/git/wso2/product-as/modules/integration/tests-integration/tests/target/jacoco.exec INFO [org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager] - Jacoco class file path : /Users/xxx/product-as/modules/integration/tests-integration/tests/target/wso2as-6.0.0-NAPSHOT/repository/components/plugins INFO [org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager] - Jacoco coverage report path : /Users/krishantha/git/wso2/product-as/modules/integration/tests-integration/tests/target/jacoco/coverage Thanks, Krishantha. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Testing Jacoco based code coverage genration
Correction : Step #1 configuration should be as follows. execution idcopy-jacoco-dependencies/id phasecompile/phase goals goalcopy-dependencies/goal /goals configuration outputDirectory${project.build.directory}/jacoco/outputDirectory includeTypesjar/includeTypes includeArtifactIdsorg.jacoco.agent/includeArtifactIds /configuration /execution Thanks, Krishantha. On Thu, Apr 30, 2015 at 2:50 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi all, New coverage implementation using Jacoco has been committed to master branch of carbon-platform-integration. I tried my best to adhere to existing Emma based design and reuse same instrumentation and filters text files. Note that this new coverage implementation was done to support for JDK 1.7 and 1.8. We need to test the new implementation thoroughly before the release. I've done initial testing with AS and everything seems to work. Automation team will start verifying coverage with products already migrated JDK 1.7. Specially products with multiple test modules (ESB, G-Reg BPS) Lets focus on testing following scenarios before the release. Test Scenarios for coverage : 1. Coverage generation with patches applied. 2. Merge coverage reports in multiple test modules. 3. WebApp class coverage. 4. Coverage generation after restart and impact to coverage numbers. To get started with Jacoco coverage : 1. Edit your test module pom and replace emma copy dependency execution configuration with below. execution idcopy-emma-dependencies/id phasecompile/phase goals goalcopy-dependencies/goal /goals configuration outputDirectory${project.build.directory}/emma/outputDirectory includeTypesjar/includeTypes includeArtifactIdsemma /includeArtifactIds /configuration /execution 2. Include jacoco argent as a dependency to root pom. dependency groupIdorg.jacoco/groupId artifactIdorg.jacoco.agent/artifactId version${jacoco.agent.version}/version /dependency jacoco.agent.version0.7.4.201502262128/jacoco.agent.version 3. Remove following system properties from surefire plugin. emma.home${basedir}/target/emma/emma.home emma.output${basedir}/target/emma/emma.output You will find following log entries in console with required details to view the report once coverage generation completed. Available report formats are XML, HTML and CSV INFO [org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager] - Jacoco coverage dump file path : /Users/krishantha/git/wso2/product-as/modules/integration/tests-integration/tests/target/jacoco.exec INFO [org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager] - Jacoco class file path : /Users/xxx/product-as/modules/integration/tests-integration/tests/target/wso2as-6.0.0-NAPSHOT/repository/components/plugins INFO [org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager] - Jacoco coverage report path : /Users/krishantha/git/wso2/product-as/modules/integration/tests-integration/tests/target/jacoco/coverage Thanks, Krishantha. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Connection refused error on AM UI Integration Tests
On Sat, Apr 25, 2015 at 10:11 AM, Krishantha Samaraweera krishan...@wso2.com wrote: On Sat, Apr 25, 2015 at 9:09 AM, Rasika Perera rasi...@wso2.com wrote: According to the offline discussion I had with Krishantha, I was able to run the test case correctly. Followings are the concerns; mvn test -Dtest=TestCaseClassName is not running the test case with expected environment configurations. Hence you need to comment out other test cases in testng.xml or tesng-server-mgt.xml and execute mvn test. mvn test -Dtest=TestCaseClassName works only if you use include and exclude test case name pattern in surefire plugin. All integration tests are configured and managed though testng.xml as below in surefire. suiteXmlFiles suiteXmlFilesrc/test/resources/testng1.xml/suiteXmlFile suiteXmlFilesrc/test/resources/testng2.xml/suiteXmlFile /suiteXmlFiles The command you have tried will never execute any tests. Note that this is the default behaviour of TestNG and Surefire. Thanks, Krishantha. Thanks, Krishantha. Further I downgraded into FF v.24. Thank you, Rasika On Mon, Apr 20, 2015 at 8:08 PM, Krishantha Samaraweera krishan...@wso2.com wrote: This seems to be firefox and selenium incompatibility issue. Can you try out with Firefox 21 You can set the -Dwebdriver.firefox.bin=/path/to/firefox/binary property in order to set the selenium to use a different version of Firefox in your machine. e.g. mvn clean install -Dwebdriver.firefox.bin=/home/host/software/firefox/firefox-bin Thanks, Krishantha. On Mon, Apr 20, 2015 at 8:00 PM, Rasika Perera rasi...@wso2.com wrote: Hi Krishantha, Herewith attached the `automation.log`. I ran surefire plugin with debug mode. Complete terminal output is also attached. [2015-04-20 19:00:48,001] INFO {org.wso2.carbon.automation.api.clients.authenticators.AuthenticatorClient} - Login Successful [2015-04-20 19:00:48,007] INFO {org.wso2.carbon.automation.core.BrowserManager} - Test runs on firefoxbrowser org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. I am using firefox 36. When checking on Preferences-AddOns-Extensions-FireFox WebDriver v2.31 it was disabled mentioning This is incompatible with Firefox 36. Then I looked into selenium version on test automation pom.xml, and it was 2.37. Recommended FF version for this was FF v.24[1]. Then downloaded FF v.24. Still couldn't get into it. It is redirecting to the correct publisher url but prompting security certificate exception infinitely(adding exception doesn't work). [1]. https://code.google.com/p/selenium/issues/detail?id=6780 On Mon, Apr 20, 2015 at 11:43 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Rasika, Can you send the full automation log which is at /target/log/automation.log Did you debug the test case ? its seems admin user cannot login to the server, please check whether your server is started properly. Thanks, Krishantha. On Mon, Apr 20, 2015 at 11:29 AM, Rasika Perera rasi...@wso2.com wrote: ​Hi all, I am writing a test ​case[1] for ui integration in APIM. When running the test case, I am getting a connection refused error[2]. Any idea what could possibly go wrong? [1] TestCase.java public class ​TestCase extends AMIntegrationUiTestBase{ private WebDriver driver; private String baseUrl; private boolean acceptNextAlert = true; private StringBuffer verificationErrors = new StringBuffer(); private WebDriverWait wait; @BeforeClass(alwaysRun = true) public void init() throws Exception { super.init(0); driver = BrowserManager.getWebDriver(); wait = new WebDriverWait(driver, 60); } @Test(groups = wso2.am, description = ​Check for functionality A) public void test​FunctionalityA() throws Exception { ​ ​ ​// } @AfterClass(alwaysRun = true) public void tearDown() throws Exception { if (driver != null) { driver.quit(); } super.cleanup(); } ​[2] Error Log org.apache.axis2.AxisFault: Connection refused at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:197) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:450) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:277) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) at org.wso2
Re: [Dev] Connection refused error on AM UI Integration Tests
On Sat, Apr 25, 2015 at 9:09 AM, Rasika Perera rasi...@wso2.com wrote: According to the offline discussion I had with Krishantha, I was able to run the test case correctly. Followings are the concerns; mvn test -Dtest=TestCaseClassName is not running the test case with expected environment configurations. Hence you need to comment out other test cases in testng.xml or tesng-server-mgt.xml and execute mvn test. mvn test -Dtest=TestCaseClassName works only if you use include and exclude test case name pattern in surefire plugin. All integration tests are configured and managed though testng.xml as below in surefire. suiteXmlFiles suiteXmlFilesrc/test/resources/testng1.xml/suiteXmlFile suiteXmlFilesrc/test/resources/testng2.xml/suiteXmlFile /suiteXmlFiles The command you have tried will never execute any tests. Thanks, Krishantha. Further I downgraded into FF v.24. Thank you, Rasika On Mon, Apr 20, 2015 at 8:08 PM, Krishantha Samaraweera krishan...@wso2.com wrote: This seems to be firefox and selenium incompatibility issue. Can you try out with Firefox 21 You can set the -Dwebdriver.firefox.bin=/path/to/firefox/binary property in order to set the selenium to use a different version of Firefox in your machine. e.g. mvn clean install -Dwebdriver.firefox.bin=/home/host/software/firefox/firefox-bin Thanks, Krishantha. On Mon, Apr 20, 2015 at 8:00 PM, Rasika Perera rasi...@wso2.com wrote: Hi Krishantha, Herewith attached the `automation.log`. I ran surefire plugin with debug mode. Complete terminal output is also attached. [2015-04-20 19:00:48,001] INFO {org.wso2.carbon.automation.api.clients.authenticators.AuthenticatorClient} - Login Successful [2015-04-20 19:00:48,007] INFO {org.wso2.carbon.automation.core.BrowserManager} - Test runs on firefoxbrowser org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. I am using firefox 36. When checking on Preferences-AddOns-Extensions-FireFox WebDriver v2.31 it was disabled mentioning This is incompatible with Firefox 36. Then I looked into selenium version on test automation pom.xml, and it was 2.37. Recommended FF version for this was FF v.24[1]. Then downloaded FF v.24. Still couldn't get into it. It is redirecting to the correct publisher url but prompting security certificate exception infinitely(adding exception doesn't work). [1]. https://code.google.com/p/selenium/issues/detail?id=6780 On Mon, Apr 20, 2015 at 11:43 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Rasika, Can you send the full automation log which is at /target/log/automation.log Did you debug the test case ? its seems admin user cannot login to the server, please check whether your server is started properly. Thanks, Krishantha. On Mon, Apr 20, 2015 at 11:29 AM, Rasika Perera rasi...@wso2.com wrote: ​Hi all, I am writing a test ​case[1] for ui integration in APIM. When running the test case, I am getting a connection refused error[2]. Any idea what could possibly go wrong? [1] TestCase.java public class ​TestCase extends AMIntegrationUiTestBase{ private WebDriver driver; private String baseUrl; private boolean acceptNextAlert = true; private StringBuffer verificationErrors = new StringBuffer(); private WebDriverWait wait; @BeforeClass(alwaysRun = true) public void init() throws Exception { super.init(0); driver = BrowserManager.getWebDriver(); wait = new WebDriverWait(driver, 60); } @Test(groups = wso2.am, description = ​Check for functionality A) public void test​FunctionalityA() throws Exception { ​ ​ ​// } @AfterClass(alwaysRun = true) public void tearDown() throws Exception { if (driver != null) { driver.quit(); } super.cleanup(); } ​[2] Error Log org.apache.axis2.AxisFault: Connection refused at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:197) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:450) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:277) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) at org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.login(AuthenticationAdminStub.java:659) at org.wso2.carbon.automation.api.clients.authenticators.AuthenticatorClient.login(AuthenticatorClient.java:59
Re: [Dev] How to change configuration file and run the integration tests?
Oder of method execution as follows. Running TestSuite BeforeMethod G1 test1() test2() AfterMethod G1 BeforeMethod G2 test1() test2() BeforeMethod G2 Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.593 sec On Thu, Apr 23, 2015 at 11:38 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Sinthuja, As mentioned by Saneth you can use ServerConfigurationManager class to configure server. To execute same set of tests with different configuration you can use TestNG groups. Please see the example code below. You need to define two test blocks in testng.xml and execute each group separately. public class MainGroupClass { @BeforeTest(groups = {g1}, alwaysRun = false) public void setUpG1() { //configuration goes here sleep(); System.out.println(BeforeMethod G1); } @AfterTest(groups = {g1}, alwaysRun = false) public void tearDownG1() { //revert configuration sleep(); System.out.println(AfterMethod G1); } @BeforeTest(groups = {g2}, alwaysRun = false) public void setUpG2() { //configuration goes here sleep(); System.out.println(BeforeMethod G2); } @AfterTest(groups = {g2}, alwaysRun = false) public void tearDownG2() { //revert Configuration sleep(); System.out.println(BeforeMethod G2); } private void sleep() { try { Thread.sleep(500); } catch (InterruptedException e) { e.printStackTrace(); } } } public class BeforeTestGroups { @Test(groups = {g1, g2}) public void test1(){ sleep(); System.out.println(test1()); } @Test(groups = {g1, g2}) public void test2(){ sleep(); System.out.println(test2()); } private void sleep(){ try { Thread.sleep(500); } catch (InterruptedException ignored) { } } } === suite name=Suite1 verbose=1 test name=TestG1 groups run include name=g1/ /run /groups classes class name=org.wso2.carbon.tests.BeforeTestGroups/ class name=org.wso2.carbon.tests.MainGroupClass/ /classes /test test name=TestG2 groups run include name=g2/ /run /groups classes class name=org.wso2.carbon.tests.BeforeTestGroups/ class name=org.wso2.carbon.tests.MainGroupClass/ /classes /test /suite === Thanks, Krishantha. On Thu, Apr 23, 2015 at 8:03 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi Sinthuja, a)You can change the configuration by using applyConfigurationWithoutRestart() methods in org.wso2.carbon.integration.common.utils.mgt.ServerConfigurationManager.java. For sample usage of ServerConfigurationManager [1] . You have to restart the server like in the sample [1] to get the configaration to apply. b) I am not clear about your 2nd requirement, Do you want to run the same test case with 2 different configarations? [1] https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/api/lifecycle/APIManagerConfigurationChangeTest.java Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Apr 22, 2015 at 7:32 PM, Sinthuja Ragendran sinth...@wso2.com wrote: Hi QAA team, I have a requirement in DAS integration test to change a configuration file and run the whole integration tests again. Basically in DAS we have a core API which can run in LOCAL mode by using osgi services, and REMOTE mode by connecting to a remote services in a distributed setup. By default this configuration is LOCAL, and hence it just uses the osgi services. But I need to tests the REMOTE functionality as well by changing the configuration to REMOTE and point to localhost. And currently the file is loaded only in the server start up, therefore configuration fi. And I would prefer all the tests to be executed in both modes to make sure functionality. How can I achieve my requirement? Please advice. Thanks, Sinthuja. -- *Sinthuja Rajendran* Senior Software Engineer http://wso2.com/ WSO2, Inc.:http://wso2.com Blog: http://sinthu-rajan.blogspot.com/ Mobile: +94774273955 ___ Dev mailing list Dev@wso2.org 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. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise
Re: [Dev] How to change configuration file and run the integration tests?
Hi Sinthuja, As mentioned by Saneth you can use ServerConfigurationManager class to configure server. To execute same set of tests with different configuration you can use TestNG groups. Please see the example code below. You need to define two test blocks in testng.xml and execute each group separately. public class MainGroupClass { @BeforeTest(groups = {g1}, alwaysRun = false) public void setUpG1() { //configuration goes here sleep(); System.out.println(BeforeMethod G1); } @AfterTest(groups = {g1}, alwaysRun = false) public void tearDownG1() { //revert configuration sleep(); System.out.println(AfterMethod G1); } @BeforeTest(groups = {g2}, alwaysRun = false) public void setUpG2() { //configuration goes here sleep(); System.out.println(BeforeMethod G2); } @AfterTest(groups = {g2}, alwaysRun = false) public void tearDownG2() { //revert Configuration sleep(); System.out.println(BeforeMethod G2); } private void sleep() { try { Thread.sleep(500); } catch (InterruptedException e) { e.printStackTrace(); } } } public class BeforeTestGroups { @Test(groups = {g1, g2}) public void test1(){ sleep(); System.out.println(test1()); } @Test(groups = {g1, g2}) public void test2(){ sleep(); System.out.println(test2()); } private void sleep(){ try { Thread.sleep(500); } catch (InterruptedException ignored) { } } } === suite name=Suite1 verbose=1 test name=TestG1 groups run include name=g1/ /run /groups classes class name=org.wso2.carbon.tests.BeforeTestGroups/ class name=org.wso2.carbon.tests.MainGroupClass/ /classes /test test name=TestG2 groups run include name=g2/ /run /groups classes class name=org.wso2.carbon.tests.BeforeTestGroups/ class name=org.wso2.carbon.tests.MainGroupClass/ /classes /test /suite === Thanks, Krishantha. On Thu, Apr 23, 2015 at 8:03 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi Sinthuja, a)You can change the configuration by using applyConfigurationWithoutRestart() methods in org.wso2.carbon.integration.common.utils.mgt.ServerConfigurationManager.java. For sample usage of ServerConfigurationManager [1] . You have to restart the server like in the sample [1] to get the configaration to apply. b) I am not clear about your 2nd requirement, Do you want to run the same test case with 2 different configarations? [1] https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/api/lifecycle/APIManagerConfigurationChangeTest.java Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Apr 22, 2015 at 7:32 PM, Sinthuja Ragendran sinth...@wso2.com wrote: Hi QAA team, I have a requirement in DAS integration test to change a configuration file and run the whole integration tests again. Basically in DAS we have a core API which can run in LOCAL mode by using osgi services, and REMOTE mode by connecting to a remote services in a distributed setup. By default this configuration is LOCAL, and hence it just uses the osgi services. But I need to tests the REMOTE functionality as well by changing the configuration to REMOTE and point to localhost. And currently the file is loaded only in the server start up, therefore configuration fi. And I would prefer all the tests to be executed in both modes to make sure functionality. How can I achieve my requirement? Please advice. Thanks, Sinthuja. -- *Sinthuja Rajendran* Senior Software Engineer http://wso2.com/ WSO2, Inc.:http://wso2.com Blog: http://sinthu-rajan.blogspot.com/ Mobile: +94774273955 ___ Dev mailing list Dev@wso2.org 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. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] APIM ui integration tests
On Thu, Apr 23, 2015 at 11:39 AM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Krishantha, How we can give a custom page in there. could you point me to an example? Don't have example bit of RD but should be able to achieve. One option to host webapp on tomcat server. Thanks, Krishantha. Thanks On Wed, Apr 22, 2015 at 4:32 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Lakshman, On Wed, Apr 22, 2015 at 4:11 PM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Irham, in APIMANAGER3272ExternalLogoutPageTestCase, We have to give a custom logout page url. I put it in the comment. How can we ensure test case runs OOB without any human interaction. Need to provide logout URL properly and update the test. Thanks, Krishantha. Thanks On Wed, Apr 22, 2015 at 1:16 PM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi Irham, About YouTubeUIPagesTestCase failure, Check whether *apiAccessInfo.getAccessToken() *passing the correct access token. If the access token is different or empty, check the logic inside doSubscribe() method in org.wso2.am.integration.ui.tests.pages.store.StoreHomePage.java class. testAPIPage.testAPI(apiAccessInfo.getAccessURL() + API_METHOD, *apiAccessInfo.getAccessToken()*); //Test response body assertTrue(testAPIPage.getTestResponseBody().contains(RESPONSE_BODY_TEST_STRING), RESPONSE_BODY_TEST_STRING + should be in the respond body); Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Apr 22, 2015 at 12:39 PM, Irham Iqbal iq...@wso2.com wrote: Hi, Currently I am fixing the following APIM UI integration tests failures. Results : Tests run: 26, Failures: 9, Errors: 0, Skipped: 1 When i go through the code i found the following lines which may causing the test failures. APIMANAGER3272ExternalLogoutPageTestCase - Getting an 404 when try to access https://localhost:9443/store/site/pages/login.jag. - In the code variable externalLogoutPage has assigned custom logout page url. APIMANAGER3344ScopeSpecificTokenTestCase - Searching Select Scopes link inside My Subscriptions page in the store but i don't see any select scope link in that page. APIMANAGER3363StoreAPIConsoleWithReverseProxy - When click on API Console tag getting an exception in log and also bellowing exception under that tag - 500 : undefined https://localhost:9443/store/api-docs/admin%40apimanager3363.com/APIMANAGER3363/1.0.0 . APIMANAGER3366MultipleGatewayPublishTestCase - In the publisher when adding the API in the manage state it's expecting input.env css selector but it's not in that page. APIMANAGER3371BusinessInformationClearedWhenAPISavedButton - In the publisher when adding the API in the manage state it's try to click on xpath //form[@id='manage_form']/fieldset[3]/legend but it's not in that page. APIMANAGER3412DifferentRegistryContextPath - In the publisher when adding the API in the design state it's try to find a element by id jsonform-0-elt-production_endpoints but it's not in that page. APIVersoinStatTestCase - In the publisher in the all API page when it's empty it's trying to find versionTxt by id but it's not in that page. TestNameLengthTestCase - When running this test alone it's working. Some other test/tests might be the reason of failure of this test case. YouTubeUIPagesTestCase - testAPIPage.getTestResponseBody() gives ams:fault xmlns:ams= http://wso2.org/apimanager/security;ams:code900902/ams:codeams:messageMissing Credentials/ams:messageams:descriptionRequired OAuth credentials not provided. Make sure your API invocation call has a header: Authorization: Bearer ACCESS_TOKEN/ams:description/ams:fault Thanks, Iqbal -- Irham Iqbal Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 777888452 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005 0711241005* ___ Dev mailing list Dev@wso2.org 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. -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005 0711241005* -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear
Re: [Dev] Test case failure in AS
Please make sure to enable integration module which is commented ATM in java8support branch. Thanks, Krishantha. On Thu, Apr 23, 2015 at 11:54 AM, Waruna Perera waru...@wso2.com wrote: Hi Supun, Can you look at following which I came across running AS test cases for coverage stats. java.lang.AssertionError: Unsatisfied components detected in server startup. [org.wso2.carbon.deployment.synchronizer.XXX] expected:0 but was:1 at org.wso2.carbon.integration.common.tests.OSGIServerBundleStatusTest.testOSGIUnsatisfiedComponents(OSGIServerBundleStatusTest.java:80) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:295) at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84) at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:90) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) ... Removed 26 stack frames org.wso2.carbon.deployment.synchronizer is in a unsatisfied state. Thanks, Waruna ___ Dev mailing list Dev@wso2.org 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. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] APIM ui integration tests
Hi Lakshman, On Wed, Apr 22, 2015 at 4:11 PM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Irham, in APIMANAGER3272ExternalLogoutPageTestCase, We have to give a custom logout page url. I put it in the comment. How can we ensure test case runs OOB without any human interaction. Need to provide logout URL properly and update the test. Thanks, Krishantha. Thanks On Wed, Apr 22, 2015 at 1:16 PM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi Irham, About YouTubeUIPagesTestCase failure, Check whether *apiAccessInfo.getAccessToken() *passing the correct access token. If the access token is different or empty, check the logic inside doSubscribe() method in org.wso2.am.integration.ui.tests.pages.store.StoreHomePage.java class. testAPIPage.testAPI(apiAccessInfo.getAccessURL() + API_METHOD, *apiAccessInfo.getAccessToken()*); //Test response body assertTrue(testAPIPage.getTestResponseBody().contains(RESPONSE_BODY_TEST_STRING), RESPONSE_BODY_TEST_STRING + should be in the respond body); Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Apr 22, 2015 at 12:39 PM, Irham Iqbal iq...@wso2.com wrote: Hi, Currently I am fixing the following APIM UI integration tests failures. Results : Tests run: 26, Failures: 9, Errors: 0, Skipped: 1 When i go through the code i found the following lines which may causing the test failures. APIMANAGER3272ExternalLogoutPageTestCase - Getting an 404 when try to access https://localhost:9443/store/site/pages/login.jag. - In the code variable externalLogoutPage has assigned custom logout page url. APIMANAGER3344ScopeSpecificTokenTestCase - Searching Select Scopes link inside My Subscriptions page in the store but i don't see any select scope link in that page. APIMANAGER3363StoreAPIConsoleWithReverseProxy - When click on API Console tag getting an exception in log and also bellowing exception under that tag - 500 : undefined https://localhost:9443/store/api-docs/admin%40apimanager3363.com/APIMANAGER3363/1.0.0 . APIMANAGER3366MultipleGatewayPublishTestCase - In the publisher when adding the API in the manage state it's expecting input.env css selector but it's not in that page. APIMANAGER3371BusinessInformationClearedWhenAPISavedButton - In the publisher when adding the API in the manage state it's try to click on xpath //form[@id='manage_form']/fieldset[3]/legend but it's not in that page. APIMANAGER3412DifferentRegistryContextPath - In the publisher when adding the API in the design state it's try to find a element by id jsonform-0-elt-production_endpoints but it's not in that page. APIVersoinStatTestCase - In the publisher in the all API page when it's empty it's trying to find versionTxt by id but it's not in that page. TestNameLengthTestCase - When running this test alone it's working. Some other test/tests might be the reason of failure of this test case. YouTubeUIPagesTestCase - testAPIPage.getTestResponseBody() gives ams:fault xmlns:ams= http://wso2.org/apimanager/security;ams:code900902/ams:codeams:messageMissing Credentials/ams:messageams:descriptionRequired OAuth credentials not provided. Make sure your API invocation call has a header: Authorization: Bearer ACCESS_TOKEN/ams:description/ams:fault Thanks, Iqbal -- Irham Iqbal Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 777888452 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005 0711241005* ___ Dev mailing list Dev@wso2.org 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. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] App Manager Integration tests are broken
Hi App Manager team, Ui integration tests are broken heavily. When running the UI tests more than 15 firefox instances get created. This directly affect to test performance. Can you arrange a review with Automation team after fixing failures. Also backend test module is excluded from build [1]. Aren't you guys add test cases for new features ? Failed tests: init(org.wso2.carbon.appmanager.integration.ui.TestCases.SAMLtoBackendTestCase): Change state failed destroy(org.wso2.carbon.appmanager.integration.ui.TestCases.SAMLtoBackendTestCase) init(org.wso2.carbon.appmanager.integration.ui.TestCases.JWTGenerationTestCase): Change state failed destroy(org.wso2.carbon.appmanager.integration.ui.TestCases.JWTGenerationTestCase) init(org.wso2.carbon.appmanager.integration.ui.TestCases.ResourceAuthXCMLTestCase): Change state failed destroy(org.wso2.carbon.appmanager.integration.ui.TestCases.ResourceAuthXCMLTestCase) init(org.wso2.carbon.appmanager.integration.ui.TestCases.ThrottlingTestCase): Change state failed destroy(org.wso2.carbon.appmanager.integration.ui.TestCases.ThrottlingTestCase) init(org.wso2.carbon.appmanager.integration.ui.TestCases.TagsTestCase): Change state failed init(org.wso2.carbon.appmanager.integration.ui.TestCases.ResourceAuthRolesTestCase): Change state failed destroy(org.wso2.carbon.appmanager.integration.ui.TestCases.ResourceAuthRolesTestCase) init(org.wso2.carbon.appmanager.integration.ui.TestCases.LifeCycleTestCase): Change state failed destroy(org.wso2.carbon.appmanager.integration.ui.TestCases.LifeCycleTestCase) testApplicationDeletion(org.wso2.carbon.appmanager.integration.ui.TestCases.AppDeleteTestCase): App deletion failed testSelfSignUp(org.wso2.carbon.appmanager.integration.ui.TestCases.SelfSignUpTestCase): Timed out after 30 seconds waiting for visibility of element located by By.id: inp-username(..) init(org.wso2.carbon.appmanager.integration.ui.TestCases.DocumentTestCase): Change state failed init(org.wso2.carbon.appmanager.integration.ui.TestCases.GoogleAnalyticsTestCase): Change state failed init(org.wso2.carbon.appmanager.integration.ui.TestCases.RatingTestCase): Change state failed *Tests run: 36, Failures: 18, Errors: 0, Skipped: 16* [1] https://github.com/wso2/product-app-manager/blob/master/modules/integration/tests/pom.xml Thanks, Krishantha. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Enterprise Store - UI test failures
More test failures in tests-ui module. Failed tests: testESPublishToStore(org.wso2.es.ui.integration.test.common.ESPublishToStore): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) setUp(org.wso2.es.ui.integration.test.notifications.ESPublisherNotificationTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) tearDown(org.wso2.es.ui.integration.test.notifications.ESPublisherNotificationTestCase) testAddAsset(org.wso2.es.ui.integration.test.publisher.ESPublisherTenantAddEditAssetTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) testAddAsset(org.wso2.es.ui.integration.test.publisher.ESPublisherTenantAddEditAssetTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) testSubscriptionCreation(org.wso2.es.ui.integration.test.notifications.ESPublisherSubscriptionTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) testSubscriptionCreation(org.wso2.es.ui.integration.test.notifications.ESPublisherSubscriptionTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) setUp(org.wso2.es.ui.integration.test.notifications.ESPublisherTenantNotificationTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) setUp(org.wso2.es.ui.integration.test.store.ESStoreAnonCategorySortingTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) tearDown(org.wso2.es.ui.integration.test.notifications.ESPublisherTenantNotificationTestCase) testAnonHomePage(org.wso2.es.ui.integration.test.store.ESStoreAnonHomePageTestCase): Timed out after 30 seconds waiting for presence of element located by: By.selector: div.span3.store-right div.row div.span3(..) testAnonNavigationLinks(org.wso2.es.ui.integration.test.store.ESStoreAnonHomePageTestCase): Recent Gadgets link not working expected [Stacked Line Chart] but found [Line Chart] testSubscriptionCreation(org.wso2.es.ui.integration.test.notifications.ESPublisherTenantSubscriptionTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) testSubscriptionCreation(org.wso2.es.ui.integration.test.notifications.ESPublisherTenantSubscriptionTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) testAnonHomePage(org.wso2.es.ui.integration.test.store.ESStoreAnonSuperTenantHomePageTestCase): Timed out after 30 seconds waiting for presence of element located by: By.selector: div.span3.store-right div.row div.span3(..) testAnonNavigationLinks(org.wso2.es.ui.integration.test.store.ESStoreAnonSuperTenantHomePageTestCase): Recent Gadgets link not working expected [Stacked Line Chart] but found [Line Chart] testAddAsset(org.wso2.es.ui.integration.test.publisher.ESPublisherAddEditAssetTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) testAddAsset(org.wso2.es.ui.integration.test.publisher.ESPublisherAddEditAssetTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) testESStoreBookmarkTestCase(org.wso2.es.ui.integration.test.store.ESStoreBookmarkTestCase): Timed out after 30 seconds waiting for text ('Bookmarked') to be present in element found by By.id: btn-add-gadget(..) setUp(org.wso2.es.ui.integration.test.publisher.ESPublisherLCTransitionTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) tearDown(org.wso2.es.ui.integration.test.publisher.ESPublisherLCTransitionTestCase) testLoggedInHomePage(org.wso2.es.ui.integration.test.store.ESStoreCarbonSuperUserTUHomePageTestCase): Timed out after 30 seconds waiting for presence of element located by: By.selector: div.span3.store-right div.row div.span3(..) testLoggedInNavigationLinks(org.wso2.es.ui.integration.test.store.ESStoreCarbonSuperUserTUHomePageTestCase): Recent Gadgets link not working expected [Stacked Line Chart] but found [Line Chart] testGadgetPage(org.wso2.es.ui.integration.test.store.ESStoreGadgetPageTestCase): Timed out after 30 seconds waiting for presence of element located by: By.xpath: //a[contains(text(),'Line Plus Bar Chart')](..) testAddAsset(org.wso2.es.ui.integration.test.store.ESStoreSearchGadgetListTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add gadget(..) Tests run: 88, Failures: 25, Errors: 0, Skipped: 31 Thanks, Krishantha. On Mon, Apr 20, 2015 at 3:29 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi all, I see following UI failures in master branch. Please have a look. Failed tests: testESPublisherAddedAssetTestCase(org.wso2
[Dev] Enterprise Store - UI test failures
Hi all, I see following UI failures in master branch. Please have a look. Failed tests: testESPublisherAddedAssetTestCase(org.wso2.es.ui.integration.extension.test.publisher.ESPublisherAddedAssetTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Services(..) testESPublisherAssetCaramelPageTestCase(org.wso2.es.ui.integration.extension.test.publisher.ESPublisherAssetCaramelPageTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Overview(..) setUp(org.wso2.es.ui.integration.extension.test.publisher.ESPublisherAssetOverridePartialTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add servicex(..) setUp(org.wso2.es.ui.integration.extension.test.publisher.ESPublisherAssetOverrideRendererTestCase): Timed out after 30 seconds waiting for presence of element located by: By.linkText: Add servicex(..) *Tests run: 15, Failures: 4, Errors: 0, Skipped: 2* Thanks, Krishantha. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Connection refused error on AM UI Integration Tests
This seems to be firefox and selenium incompatibility issue. Can you try out with Firefox 21 You can set the -Dwebdriver.firefox.bin=/path/to/firefox/binary property in order to set the selenium to use a different version of Firefox in your machine. e.g. mvn clean install -Dwebdriver.firefox.bin=/home/host/software/firefox/firefox-bin Thanks, Krishantha. On Mon, Apr 20, 2015 at 8:00 PM, Rasika Perera rasi...@wso2.com wrote: Hi Krishantha, Herewith attached the `automation.log`. I ran surefire plugin with debug mode. Complete terminal output is also attached. [2015-04-20 19:00:48,001] INFO {org.wso2.carbon.automation.api.clients.authenticators.AuthenticatorClient} - Login Successful [2015-04-20 19:00:48,007] INFO {org.wso2.carbon.automation.core.BrowserManager} - Test runs on firefoxbrowser org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. I am using firefox 36. When checking on Preferences-AddOns-Extensions-FireFox WebDriver v2.31 it was disabled mentioning This is incompatible with Firefox 36. Then I looked into selenium version on test automation pom.xml, and it was 2.37. Recommended FF version for this was FF v.24[1]. Then downloaded FF v.24. Still couldn't get into it. It is redirecting to the correct publisher url but prompting security certificate exception infinitely(adding exception doesn't work). [1]. https://code.google.com/p/selenium/issues/detail?id=6780 On Mon, Apr 20, 2015 at 11:43 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Rasika, Can you send the full automation log which is at /target/log/automation.log Did you debug the test case ? its seems admin user cannot login to the server, please check whether your server is started properly. Thanks, Krishantha. On Mon, Apr 20, 2015 at 11:29 AM, Rasika Perera rasi...@wso2.com wrote: ​Hi all, I am writing a test ​case[1] for ui integration in APIM. When running the test case, I am getting a connection refused error[2]. Any idea what could possibly go wrong? [1] TestCase.java public class ​TestCase extends AMIntegrationUiTestBase{ private WebDriver driver; private String baseUrl; private boolean acceptNextAlert = true; private StringBuffer verificationErrors = new StringBuffer(); private WebDriverWait wait; @BeforeClass(alwaysRun = true) public void init() throws Exception { super.init(0); driver = BrowserManager.getWebDriver(); wait = new WebDriverWait(driver, 60); } @Test(groups = wso2.am, description = ​Check for functionality A) public void test​FunctionalityA() throws Exception { ​ ​ ​// } @AfterClass(alwaysRun = true) public void tearDown() throws Exception { if (driver != null) { driver.quit(); } super.cleanup(); } ​[2] Error Log org.apache.axis2.AxisFault: Connection refused at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:197) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:450) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:277) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) at org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.login(AuthenticationAdminStub.java:659) at org.wso2.carbon.automation.api.clients.authenticators.AuthenticatorClient.login(AuthenticatorClient.java:59) at org.wso2.carbon.automation.core.utils.environmentutils.EnvironmentBuilder.loginSetup(EnvironmentBuilder.java:520) at org.wso2.carbon.automation.core.utils.environmentutils.EnvironmentBuilder.am (EnvironmentBuilder.java:453) at org.wso2.carbon.am.integration.ui.AMIntegrationUiTestBase.init(AMIntegrationUiTestBase.java:44) at org.wso2.carbon.am.integration.ui.APIMANAGER3452IncorrectMethodInfoThrottlingTab.init( ​ TestCase .java:47) Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) --​ With Regards, *Rasika Perera* Software Engineer M: +94 71 680 9060 E: rasi...@wso2.com LinkedIn: http://lk.linkedin.com/in/rasika90 WSO2 Inc. www.wso2.com lean.enterprise.middleware -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- With Regards, *Rasika Perera* Software Engineer M: +94 71 680 9060 E: rasi...@wso2.com LinkedIn: http
Re: [Dev] Connection refused error on AM UI Integration Tests
Hi Rasika, Can you send the full automation log which is at /target/log/automation.log Did you debug the test case ? its seems admin user cannot login to the server, please check whether your server is started properly. Thanks, Krishantha. On Mon, Apr 20, 2015 at 11:29 AM, Rasika Perera rasi...@wso2.com wrote: ​Hi all, I am writing a test ​case[1] for ui integration in APIM. When running the test case, I am getting a connection refused error[2]. Any idea what could possibly go wrong? [1] TestCase.java public class ​TestCase extends AMIntegrationUiTestBase{ private WebDriver driver; private String baseUrl; private boolean acceptNextAlert = true; private StringBuffer verificationErrors = new StringBuffer(); private WebDriverWait wait; @BeforeClass(alwaysRun = true) public void init() throws Exception { super.init(0); driver = BrowserManager.getWebDriver(); wait = new WebDriverWait(driver, 60); } @Test(groups = wso2.am, description = ​Check for functionality A) public void test​FunctionalityA() throws Exception { ​ ​ ​// } @AfterClass(alwaysRun = true) public void tearDown() throws Exception { if (driver != null) { driver.quit(); } super.cleanup(); } ​[2] Error Log org.apache.axis2.AxisFault: Connection refused at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:197) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:450) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:277) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) at org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.login(AuthenticationAdminStub.java:659) at org.wso2.carbon.automation.api.clients.authenticators.AuthenticatorClient.login(AuthenticatorClient.java:59) at org.wso2.carbon.automation.core.utils.environmentutils.EnvironmentBuilder.loginSetup(EnvironmentBuilder.java:520) at org.wso2.carbon.automation.core.utils.environmentutils.EnvironmentBuilder.am (EnvironmentBuilder.java:453) at org.wso2.carbon.am.integration.ui.AMIntegrationUiTestBase.init(AMIntegrationUiTestBase.java:44) at org.wso2.carbon.am.integration.ui.APIMANAGER3452IncorrectMethodInfoThrottlingTab.init( ​ TestCase .java:47) Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) --​ With Regards, *Rasika Perera* Software Engineer M: +94 71 680 9060 E: rasi...@wso2.com LinkedIn: http://lk.linkedin.com/in/rasika90 WSO2 Inc. www.wso2.com lean.enterprise.middleware -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] ML Integration Test Automation - Status Update
| middleware Mobile : +94 716546324 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Integration test coverage with JDK 1.7 and 1.8
Hi all, As you might know test coverage generation is not compatible with JDK 1.7 and 1.8 versions. You can disable coverage temporary for builds running on above JDKs. However you can add following property into sever startup file (wso2server.sh) manually to generate coverage with JDK 1.7 -XX:-UseSplitVerifier Note that this workaround doesn't compatible with JDK 1.8 and no alternative until coverage generation is fixed with JDK 1.8 Thanks, Krishantha. Reference - http://stackoverflow.com/questions/7010665/testng-emma-cobertura-coverage-and-jdk-7-result-in-classformaterror-and-verif -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Problem when Executing test cases
Did you try to start the server manually ? Thanks, Krishantha. On Tue, Mar 24, 2015 at 10:05 AM, Sriashalya Srivathsan asha...@wso2.com wrote: Hi I have encountered a problem when I executed the esb 4.9.0-M4-SNAPSHOT in my test cases as follows , [2015-03-24 09:08:12,838] INFO {org.wso2.carbon.automation.core.PlatformExecutionManager} - ---Test Execution Started -- [2015-03-24 09:08:12,848] INFO {org.wso2.carbon.automation.core.ServerGroupManager} - Carbon zip file - /Users/sriashalyasrivathsan/Desktop/mandrill/esb-connectors/mandrill/mandrill-connector/mandrill-connector-1.0.0/org.wso2.carbon.connector/repository/wso2esb-4.9.0.zip [2015-03-24 09:08:17,738] ERROR {org.wso2.carbon.automation.core.PlatformExecutionManager} - Unable to start servers java.io.IOException: Error while creating the deployment folder : /Users/sriashalyasrivathsan/Desktop/mandrill/esb-connectors/mandrill/mandrill-connector/mandrill-connector-1.0.0/org.wso2.carbon.connector/target/carbontmp1427168292859/wso2esb-4.9.0/repository/deployment/server/axis2services at org.wso2.carbon.automation.core.ServerGroupManager.copySecurityVerificationService(ServerGroupManager.java:330) at org.wso2.carbon.automation.core.ServerGroupManager.startServer(ServerGroupManager.java:85) at org.wso2.carbon.automation.core.ServerGroupManager.startServersForBuilder(ServerGroupManager.java:98) at org.wso2.carbon.automation.core.PlatformExecutionManager.startSevers(PlatformExecutionManager.java:187) at org.wso2.carbon.automation.core.PlatformExecutionManager.onExecutionStart(PlatformExecutionManager.java:76) 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:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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) What I'm missing? -- S.Sriashalya, Associate Software Engineer, WSO2. ___ Dev mailing list Dev@wso2.org 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. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] IS sever start up issue in TAF 4.3.1
Hi Thanuja, In your second instance https port is set to 9443 and http port 9764. Is this correct ? instance name=identity002 type=standalone nonBlockingTransportEnabled=false hosts host type=defaultlocalhost/host /hosts ports port type=http9764/port port type=https9443/port /ports properties /properties /instance Thanks, Krishantha. On Tue, Mar 17, 2015 at 2:05 PM, Thanuja Jayasinghe than...@wso2.com wrote: 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 krishan...@wso2.com 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 than...@wso2.com 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 krishan...@wso2.com 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 sane...@wso2.com 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 darsha...@wso2.com 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 than...@wso2.com 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=defaultlocalhost/host /hosts ports port type=http*9764*/port port type=https9444/port /ports properties /properties /instance Code - MapString, String startupParameterMap = new HashMapString, 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
Re: [Dev] IS sever start up issue in TAF 4.3.1
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 than...@wso2.com 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 krishan...@wso2.com 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 sane...@wso2.com 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 darsha...@wso2.com 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 than...@wso2.com 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=defaultlocalhost/host /hosts ports port type=http*9764*/port port type=https9444/port /ports properties /properties /instance Code - MapString, String startupParameterMap = new HashMapString, 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 Dev@wso2.org http://wso2.org/cgi-bin
Re: [Dev] Tenant creation fails during server startup in Integration Tests
)* * at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)* *ERROR [org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener] - Execution error occurred in TestExecutionListener:-[Ljava.lang.StackTraceElement;@37b82d69* *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:39)* * at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)* * at java.lang.reflect.Method.invoke(Method.java:597)* * 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:1094)* * at org.testng.TestNG.run(TestNG.java:1041)* * 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:39)* * at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)* * at java.lang.reflect.Method.invoke(Method.java:597)* * 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.rmi.RemoteException: RemoteException thrown while adding user/tenants : ; nested exception is: * * org.apache.axis2.AxisFault: org/wso2/carbon/tenant/mgt/message/TenantDeleteClusterMessage* * at org.wso2.carbon.integration.common.admin.client.TenantManagementServiceClient.addTenant(TenantManagementServiceClient.java:84)* * at org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator.populateUsers(UserPopulator.java:89)* * at org.wso2.carbon.integration.common.extensions.usermgt.UserPopulateExtension.onExecutionStart(UserPopulateExtension.java:59)* * ... 20 more* *Caused by: org.apache.axis2.AxisFault: org/wso2/carbon/tenant/mgt/message/TenantDeleteClusterMessage* * at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)* * at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:367)* * at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:413)* * at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)* * at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)* * at org.wso2.carbon.tenant.mgt.stub.TenantMgtAdminServiceStub.getTenant(TenantMgtAdminServiceStub.java:1612)* * at org.wso2.carbon.integration.common.admin.client.TenantManagementServiceClient.addTenant(TenantManagementServiceClient.java:71)* * ... 22 more* Regards, Supun -- *Supun Sethunga* Software Engineer WSO2, Inc. http://wso2.com/ lean | enterprise | middleware Mobile : +94 716546324 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] @BeforeTest and @AfterTest runs for each test instantiated with @Factory in TAF 4.3.1
Hi Malithi, On Mon, Mar 16, 2015 at 6:44 PM, Malithi Edirisinghe malit...@wso2.com wrote: Hi All, I'm using Factories in TestNG to instantiate tests dynamically for different parameter sets. And I have configured the test class inside a test block in the testng.xml as below. test name=Test - IS - OpenID preserve-order=true parallel=false classes class name=org.wso2.identity.integration.test.openid.OpenIDSSOTestCase / /classes /test When running this test on the TAF 4.3.1 I found that the methods annotated with 'BeforeTest' and 'AfterTest' runs for each test instance instantiated with the factory. But when running the same test on an earlier version of TAF, methods annotated with 'BeforeTest' and 'AfterTest' are executed only once, which is the expected behavior [1]. I found that TAF 4.3.1 is using TestNG 6.1.1 where as earlier versions of TAF use TestNG 6.8. Seems this issue is with TestNG 6.1.1 version. This is also reported in [2]. Is there a specific reason to downgrade the TestNG version in TAF 4.3.1 ? Nope we haven't downgraded testNG in TAF 4.3.1. in your old tests modules, 6.8 version might be explicitly specified. We only recommend to go with testNG 6.1.1 as 6.8 is not much stable. Some other products like AS also use @Factory with @BeforeTest and @AfterTest annotations with 6.1.1. Need to figure out what is really happening here. Thanks, Krishantha. In that case, what would be the way to achieve the expected behavior ? [1] http://testng.org/doc/documentation-main.html#annotations [2] http://osdir.com/ml/java-testng-user/2011-07/msg00166.html Thanks, Malithi. -- *Malithi Edirisinghe* Senior Software Engineer WSO2 Inc. Mobile : +94 (0) 718176807 malit...@wso2.com -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] IS sever start up issue in TAF 4.3.1
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 sane...@wso2.com 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 darsha...@wso2.com 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 than...@wso2.com 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=defaultlocalhost/host /hosts ports port type=http*9764*/port port type=https9444/port /ports properties /properties /instance Code - MapString, String startupParameterMap = new HashMapString, 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 Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Darshana Akalanka Pagoda Arachchi,* *Software Engineer* *078-4721791 078-4721791* ___ Dev mailing list Dev@wso2.org 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. ___ Dev mailing list Dev@wso2.org http://wso2
Re: [Dev] Don't commit to APIM old test modules
Following modules have been removed from product build. There are 19 test cases running and last Jenkins build was successful [1]. We will keep on migrating/adding new test cases to the APIM. 1. tests-new 2. tests-ui 3. tests. [1] https://wso2.org/jenkins/job/product-apim/157/testReport/ Thanks, Krishantha. On Fri, Mar 13, 2015 at 6:36 PM, Krishantha Samaraweera krishan...@wso2.com wrote: I will remove old test modules within another few hours. Please shout if you are middle of writing a test. Anyway you can move the tests into *tests-integration/tests-backend* module which is already committed. Thanks, Krishantha. On Fri, Mar 13, 2015 at 12:58 PM, Uvindra Dias Jayasinha uvin...@wso2.com wrote: If anyone is in the middle of writing a test in the module please reply to this thread. We need to ensure that we have stable pack with all tests in newly created modules passing before we can remove the old test modules. Lets try and get this done ASAP. I think there are a few new team members missing on this mail, can someone please add them?(Im not sure who they are :) ) On 13 March 2015 at 12:19, Krishantha Samaraweera krishan...@wso2.com wrote: Hi APIM Team, Automation team is migrating test suites from old test framework to new one. I've already removed old test modules from integration module POM and applied the pull request four days ago, updated mail thread can be found at [APIM] Please merge pull request Note that only following modules are enabled now. modulesmoduletests-common/modulemoduletests-integration/module !--moduletests-ui-integration/module-- !--moduletests-platform/module-- /modules Can you please refine from committing to old test modules. We kept those old modules until test migration is over. Now I think its not a good idea to keep those modules and will remove them soon. Let me know if you have any concern with removing old test modules. Following test modules will be removed shortly. And we will take care of migrating tests in those modules to our new modules properly. 1. tests-new 2. tests-ui 3. tests. Thanks, Krishatnha. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Regards, Uvindra Mobile: 33962 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Don't commit to APIM old test modules
Hi APIM Team, Automation team is migrating test suites from old test framework to new one. I've already removed old test modules from integration module POM and applied the pull request four days ago, updated mail thread can be found at [APIM] Please merge pull request Note that only following modules are enabled now. modulesmoduletests-common/modulemoduletests-integration/module !--moduletests-ui-integration/module-- !--moduletests-platform/module-- /modules Can you please refine from committing to old test modules. We kept those old modules until test migration is over. Now I think its not a good idea to keep those modules and will remove them soon. Let me know if you have any concern with removing old test modules. Following test modules will be removed shortly. And we will take care of migrating tests in those modules to our new modules properly. 1. tests-new 2. tests-ui 3. tests. Thanks, Krishatnha. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Don't commit to APIM old test modules
I will remove old test modules within another few hours. Please shout if you are middle of writing a test. Anyway you can move the tests into *tests-integration/tests-backend* module which is already committed. Thanks, Krishantha. On Fri, Mar 13, 2015 at 12:58 PM, Uvindra Dias Jayasinha uvin...@wso2.com wrote: If anyone is in the middle of writing a test in the module please reply to this thread. We need to ensure that we have stable pack with all tests in newly created modules passing before we can remove the old test modules. Lets try and get this done ASAP. I think there are a few new team members missing on this mail, can someone please add them?(Im not sure who they are :) ) On 13 March 2015 at 12:19, Krishantha Samaraweera krishan...@wso2.com wrote: Hi APIM Team, Automation team is migrating test suites from old test framework to new one. I've already removed old test modules from integration module POM and applied the pull request four days ago, updated mail thread can be found at [APIM] Please merge pull request Note that only following modules are enabled now. modulesmoduletests-common/modulemoduletests-integration/module !--moduletests-ui-integration/module-- !--moduletests-platform/module-- /modules Can you please refine from committing to old test modules. We kept those old modules until test migration is over. Now I think its not a good idea to keep those modules and will remove them soon. Let me know if you have any concern with removing old test modules. Following test modules will be removed shortly. And we will take care of migrating tests in those modules to our new modules properly. 1. tests-new 2. tests-ui 3. tests. Thanks, Krishatnha. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Regards, Uvindra Mobile: 33962 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Java 8] [AS Integration Tests] AS distribution fails to start after instrumenting using EMMA 2.1.5320
http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Kishanthan Thangarajah* Senior Software Engineer, Platform Technologies Team, WSO2, Inc. lean.enterprise.middleware Mobile - +94773426635 Blog - *http://kishanthan.wordpress.com http://kishanthan.wordpress.com* Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan* -- Dharshana Warusavitharana Senior Software Engineer , Test Automation WSO2 Inc. http://wso2.com email : dharsha...@wso2.com dharsha...@wso2.com Tel : +94 11 214 5345 Fax :+94 11 2145300 cell : +94770342233 blog : http://dharshanaw.blogspot.com lean . enterprise . middleware -- *Kishanthan Thangarajah* Senior Software Engineer, Platform Technologies Team, WSO2, Inc. lean.enterprise.middleware Mobile - +94773426635 Blog - *http://kishanthan.wordpress.com http://kishanthan.wordpress.com* Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan* -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Implementation of API Manager-API Life Cycle Integration Test Cases
Hi Saneth, Can you update the QA test case document with correct mapping for test classes. Thanks, Krishantha. On Thu, Mar 12, 2015 at 7:51 PM, Saneth Dharmakeerthi sane...@wso2.com wrote: Please find the progress update of phase2, Pull request : https://github.com/wso2/product-apim/pull/49 This pull request contains, - Migration of test method to test classes that were developed in phase1. - New scenarios covered in Phase 2. - New base class was introduced to lifecycle test cases. - @BeforeTest and @AftterTest methods was introduced to do the configurations and restore those changes at the end of the lifecycle tests. - Add cleanup methods to remove the created/publish and subscribed APIs at the end of each test. - Completed test classes as follow (11 Classes and 44 test methods ). - AccessibilityOfBlockAPITestCase - AccessibilityOfDeprecatedOldAPIAndPublishedCopyAPITestCase - AccessibilityOfOldAPIAndCopyAPIWithOutReSubscriptionTestCase - AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase - AccessibilityOfRetireAPITestCase - APIAccessibilityOfPublishedOldAPIAndPublishedCopyAPITestCase - APIPublishingAndVisibilityInStoreTestCase - ChangeAPIBackendURLTestCase - ChangeAPITagsTestCase - EditAPIAndCheckUpdatedInformationTestCase - EditAPIContextAndCheckAccessibilityTestCase Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Fri, Mar 6, 2015 at 8:00 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi, Please find the progress update, I have finished following test cases. - testAPIPublishingAndVisibilityInStore - testAccessibilityOfPublishedOldAPIAndPublishedCopyAPI - testAccessibilityOfDeprecatedOldAPIAndPublishedCopyAPI - testAccessibilityOfOldAPIAndCopyAPIWithReSubscription - testAccessibilityOfOldAPIAndCopyAPIWithOutReSubscription - testAccessibilityOfBlockAPI - testAccessibilityOfRetireAPI Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Mon, Mar 2, 2015 at 5:53 PM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi, I am working on $subject, test scenarios will be based on [1] API-M 1.9.0 Test Plan document (under API Life Cycle Tab). [1]API-M 1.9.0 Test Plan https://docs.google.com/a/wso2.com/spreadsheets/d/1SiktQWh463KZzr86ADqBnsyyHa2Tre-fIlGYvYRQfTQ/edit#gid=78 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [ESB] [Automation] Error at TestSuite - On Finish - Deployment Synchronizer Error
.carbon.integration.common.extensions.utils.ServerLogReader] - [2015-03-12 16:35:20,458] INFO - PassThroughListeningIOReactorManager Shutting down IO Reactor bind for port 8243 INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] - [2015-03-12 16:35:20,462] INFO - PassThroughListeningIOReactorManager HTTPS-Listener I/O dispatcher Listener shutdown. INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] - [2015-03-12 16:35:20,462] INFO - PassThroughHttpListener Stopping Pass-through HTTP Listener.. INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] - [2015-03-12 16:35:20,463] INFO - PassThroughListeningIOReactorManager Shutting down IO Reactor bind for port 8280 INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] - [2015-03-12 16:35:20,463] INFO - PassThroughListeningIOReactorManager HTTP-Listener I/O dispatcher Listener shutdown. INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] - [2015-03-12 16:35:20,464] INFO - PassThroughHttpSSLSender HTTPS Sender shutdown INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] - [2015-03-12 16:35:20,464] INFO - PassThroughHttpSender HTTP Sender shutdown INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] - [2015-03-12 16:35:20,464] INFO - PassThroughHttpSSLListener Destroying PassThroughHttpListener INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] - [2015-03-12 16:35:20,465] INFO - PassThroughHttpListener Destroying PassThroughHttpListener INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] - [2015-03-12 16:35:20,720] INFO - CarbonTomcatServiceComponent Stopping the carbon web-app registered under : / INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] - [2015-03-12 16:35:21,418] INFO - CarbonServerManager Shutdown complete INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] - [2015-03-12 16:35:21,419] INFO - CarbonServerManager Halting JVM Thanks, Maheeka Maheeka Jayasuriya Software Engineer Mobile : +9450661 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com ___ Dev mailing list Dev@wso2.org 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. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DEV][APIM] starting multiple APIM server instances
Hi Tharindu, On Tue, Mar 10, 2015 at 2:50 PM, Tharindu Dharmarathna tharin...@wso2.com wrote: Hi Dimuthu,Iqbal, I tried this two codes given by both of you . But that codes does not consist giving seperate configurations to the individual servers. *Test Case Scenario To do* 1. Run 4 servers with different api-manager configurations and different port offsets. 2. During the test cases have to stop servers individually. and do the tests. Do you want to setup distributed APIM setup with four nodes ? we don't recommend to start four server in the same host. In Jenkins build environment this would cases intermittent problems due to resource consumption. Can you elaborate more about the scenario you are going to test. If it is fail over scenario, then you can use ServerAdmin API to shut down the instances ( Not applicable to workers) but stating the same instance again would not be possible (if it is remote) Correct way to achieve this is using a configuration management tool (such as puppet) to setup the nodes and then execute tests. We have done a project on deployment automation which is currently on hold. Since This have to do as a UI test Is there any workaround to do this ? You can combine backend and UI tests together. Thanks, Krishantha. Thanks and Regards Tharindu On Wed, Feb 4, 2015 at 5:12 PM, Tharindu Dharmarathna tharin...@wso2.com wrote: Hi dimuthu,iqbal, Thanks for examples I'll look into this. Regards On Feb 4, 2015 4:20 PM, Irham Iqbal iq...@wso2.com wrote: Hi Tharindu, You can use MultipleServersManager to start multiple servers and ServerConfigurationManager to load configurations using test framework as shown in example[1] [1] https://github.com/wso2/product-as/blob/master/modules/integration/tests-integration/tests/src/test/java/org/wso2/appserver/integration/tests/ciphertool/H2DBPasswordEncryptionTestCase.java Thanks, Iqbal On Wed, Feb 4, 2015 at 3:54 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: Hi Tharindu, You can follow [1] as a guide. [1] https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-scenario/src/test/java/org/wso2/carbon/am/tests/sample/RefreshTokenTestCase.java Regards On Wed, Feb 4, 2015 at 12:30 PM, Tharindu Dharmarathna tharin...@wso2.com wrote: Hi all, I have to do $subject with different port-offsets and different api-manager configurations. I have read [1] to get reference . Is there any way to load api-manager.xml file into servers except port offseting ? . [1]. https://docs.wso2.com/display/TA430/Starting+Multiple+Servers *Thanks and Regards* *Tharindu Dharmarathna*Associate Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94779109091 %2B94779109091* -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Irham Iqbal Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 777888452 -- *Tharindu Dharmarathna*Associate Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94779109091 %2B94779109091* ___ Dev mailing list Dev@wso2.org 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. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] WSO2 Committers += Irham Iqbal
Hi all, It's my pleasure to welcome Irham Iqbal as a WSO2 Committer. Irham, welcome aboard and keep up the good work! Thanks, Krishantha. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APIM] Please merge pull request
Hi APIM Team, I've merged the pull request to master branch after building on clean repo with tests. New test module structure has been introduced with this. We will keep on migrating existing tests to the new module. Note that integration test pull requests sent prior to pull/42 https://github.com/wso2/product-apim/pull/42 need to modify and resolve any conflict. Thanks, Krishantha. On Sun, Mar 8, 2015 at 11:50 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi, I create a pull request, which my changers are also added to the Dimuthus' pull request [1]. My commits are under[2]. [1] https://github.com/wso2/product-apim/pull/42 [2] https://github.com/dimuthud/product-apim/commit/bf8f22d640ac91db65d0e83f8d650633e38e95ec Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Sat, Mar 7, 2015 at 12:36 PM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi Dimuthu / Krishantha, I added my test cases and utility methods and tested in fresh repo without error.. I will commit /push and create a pull request once the Dumuthus' pull request is added(still the Dimuthus' pull is in Open stage.). Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Fri, Mar 6, 2015 at 9:13 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: Hi Krishantha/ Saneth, I have updated the PR with removal of duplicated classes and build in clean repo. Regards On Fri, Mar 6, 2015 at 6:56 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi NuwanD, Can you get someone to apply Dimuthu's pull request. This will migrate old test modules to new test framework since existing modules were referring to old test framework. I have verified the pull by building locally and all test passed. At the moment backend tests are migrated and will do the same for UI tests in next week. Our plan is to get all test to refer common module structure. We will try to enable commented tests in old test modules and fix them as well. Thanks, Krishantha. On Fri, Mar 6, 2015 at 6:23 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: Looping NuwanD ... On Fri, Mar 6, 2015 at 6:08 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: Hi Krishantha, Please merge the pull request [1] which contains migrated integration tests which are compatible with TAF 4.3.1. [1] https://github.com/wso2/product-apim/pull/42 Regards -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB] Adding users in a clustered test case
Hi Hemika, On Fri, Mar 6, 2015 at 5:21 PM, Hemika Kodikara hem...@wso2.com wrote: Hi All, I am working on a writing a test case for a clustered environment. I have a need to add users to write up the test case. I have hosted 2 nodes of MB a cluster externally. Correct me if I am wrong, currently the UserPopulationExtension does not work in adding up the users when it comes to clustered scenario. Therefore I am adding the users by code with the following implementation. We assume user store is shared between nodes In a clustered environment, and populate users to single node and done with it. Let us know if your cluster is not sharing common user store. MapString, String userNameAndPasswords = new HashMapString, String(); userNameAndPasswords.put(authUser1, authUser1); userNameAndPasswords.put(authUser2, authUser2); userNameAndPasswords.put(authUser3, authUser3); userNameAndPasswords.put(authUser4, authUser4); userNameAndPasswords.put(authUser5, authUser5); // Gets an MB instance randomly AutomationContext randomMBInstanceAutomationContext = getAutomationContextWithKey(getRandomMBInstance()); // Logging into user management as admin UserManagementClient userManagementClient = new UserManagementClient(randomMBInstanceAutomationContext.getContextUrls().getBackEndUrl(), admin, admin); for (Map.EntryString, String userEntry : userNameAndPasswords.entrySet()) { userManagementClient.addUser(userEntry.getKey(), userEntry.getValue(), new String[]{}, null); } But I am getting the following error . initializeTestScenarios(org.wso2.mb.platform.tests.clustering.QueueUserAuthorizationTestCase) Time elapsed: 2.373 sec FAILURE! org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException: UserAdminUserAdminException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:357) at java.lang.Class.newInstance(Class.java:310) at org.wso2.carbon.user.mgt.stub.UserAdminStub.addUser(UserAdminStub.java:1575) at org.wso2.carbon.integration.common.admin.client.UserManagementClient.addUser(UserManagementClient.java:88) at org.wso2.mb.platform.tests.clustering.QueueUserAuthorizationTestCase.initializeTestScenarios(QueueUserAuthorizationTestCase.java:132) Any idea of what I am doing ? Also the 4th argument passed to userManagementClient.addUser(userEntry.getKey(), userEntry.getValue(), new String[]{}, null); is named as profile. May I know what is meant by profile[1] ? Please refer - https://docs.wso2.com/display/IS500/Managing+User+Attributes Thanks, Krishantha. [1] - https://github.com/wso2/platform/blob/master/components/user-stores/org.wso2.carbon.user.store/src/main/java/org/wso2/carbon/user/store/UserStoreManager.java Regards, Hemika. Hemika Kodikara Software Engineer WSO2 Inc. lean . enterprise . middleware http://wso2.com Mobile : +9477762 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APIM] Please merge pull request
Hi NuwanD, Can you get someone to apply Dimuthu's pull request. This will migrate old test modules to new test framework since existing modules were referring to old test framework. I have verified the pull by building locally and all test passed. At the moment backend tests are migrated and will do the same for UI tests in next week. Our plan is to get all test to refer common module structure. We will try to enable commented tests in old test modules and fix them as well. Thanks, Krishantha. On Fri, Mar 6, 2015 at 6:23 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: Looping NuwanD ... On Fri, Mar 6, 2015 at 6:08 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: Hi Krishantha, Please merge the pull request [1] which contains migrated integration tests which are compatible with TAF 4.3.1. [1] https://github.com/wso2/product-apim/pull/42 Regards -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] APIM Git duplicate classes
Hi Dimuthu, We need to get rid of these duplicate classes and stick to correct module structure. Please refactor the code and fix all tests. Thanks, Krishantha. On Fri, Mar 6, 2015 at 3:08 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: Hi NuwanD/ Krishantha, While migrating git's APIM integration tests (to be compatible with TAF 4.3.1) to tests-integration module , I noticed that several utility and admin client classes are duplicated in the APIM git (Some of these are identical and some are not, however they serve same purposes) . Can we remove these unwanted classes by keeping a one copy only since I noticed that tests are written using all over these duplicate classes and these might cause some dependency problems. eg: [1] https://github.com/wso2/product-apim/blob/master/modules/integration/tests-common/admin-clients/src/main/java/org/wso2/am/integration/admin/clients/logging/LoggingAdminClient.java https://github.com/wso2/product-apim/tree/master/modules/integration/tests-common/admin-clients/src/main/java/org/wso2/am/admin/clients/logging/LoggingAdminClient.java [2] https://github.com/wso2/product-apim/blob/master/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/utils/publisher/utils/APIPublisherRestClient.java https://github.com/wso2/product-apim/blob/master/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/utils/clients/APIPublisherRestClient.java Regards -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [G-Reg 4.6.0] Issue in creating an endpoint
Hi Sithumini, You are invoking governance API though the tests cases, can you do the same though external class (not going thought test test framework) and check the behaviour. Please check whether you are missing any steps while adding endpoint. Thanks, Krishantha. On Wed, Mar 4, 2015 at 9:28 PM, Sithumini Senevirathne sithumi...@wso2.com wrote: Hi, Currently I am working on writing a test case. The problem context is when login to the registry through a tenant user and when we create an endpoint then SOF errors are thrown. Errors can be found in carbon.log file. So in test case I followed below steps. - Created an tenant. - Logged in to the registry through the tenant. - Added an endpoint using registry GenericArtifactManager. - Read the log file to find the error. But here SOF error is not thrown. Then I manually add an endpoint and found the SOF error was thrown. Even the endpoint added through the code was not listed in the registry management console metadata list. But both endpoints have been created at the correct path. location of endpoint add in test case code level : /_system/governance/mediation/mediationdata/endpoint/endpoint1/1.0.0/endpoint location of manually added endpoint : /_system/governance/mediation/mediationdata/endpoint/TestEndpoint1/2.0.0/endpoint This behaviour has become a blocker for this test. Can someone explain me the reason for this behaviour? Is there other way to overcome this? Thank you, Sithumini -- -- Sithumini Senevirathne Software Engineer WSO2 Inc. - lean . enterprise . middleware | wso2.com email: sithumi...@wso2.com, mobile: +94 756977999 ___ Dev mailing list Dev@wso2.org 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. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Obtain JMX Mbean statistics using test automation framework
Hi Vijitha, You can refer the test case at https://github.com/wso2/product-dss/blob/master/modules/integration/tests/src/test/java/org/wso2/carbon/dss/jmx/statistics/test/JMXStatisticsTestCase.java JMXClient is also available in the same package. Thanks, Krishantha. On Sun, Mar 1, 2015 at 5:45 PM, Vijitha Ekanayake vijit...@wso2.com wrote: Hi all, After creating an endpoint in the ESB, We should be able to view it's statistics via JMX using a JMX client like JConsole. I'm trying to write a test case for the above scenario. For that, Is the away to $Subject? If so, are there any sample test cases which i can refer to? Thank you. -- Vijitha Ekanayake Software Engineer*, *WSO2, Inc.; http://wso2.com/ Mobile : +94 777 24 73 39 | +94 718 74 44 08 lean.enterprise.middleware -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] SurefireExecutionException error in unit tests for axis2 transports
Hi Kalpa, What is your surefire version. Can you use surefire 2.12 and check again. Thanks, Krishantha. On Sun, Mar 1, 2015 at 11:06 AM, Kalpa Welivitigoda kal...@wso2.com wrote: Hi, I am writing a unit test for the jms module of wso2 axis2 transports [1]. I followed [2] and added the testng dependency (version 6.1.1) to jms module. When I run the test I get the following error. What could have gone wrong here? --- T E S T S --- org.apache.maven.surefire.booter.SurefireExecutionException: org.testng.xml.XmlSuite.setParallel(Z)V; nested exception is java.lang.NoSuchMethodError: org.testng.xml.XmlSuite.setParallel(Z)V java.lang.NoSuchMethodError: org.testng.xml.XmlSuite.setParallel(Z)V at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:123) at org.apache.maven.surefire.Surefire.run(Surefire.java:132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818) [INFO] [INFO] BUILD FAILURE [INFO] [1] https://github.com/wso2/wso2-axis2-transports [2] https://docs.wso2.com/display/TA430/Unit+Testing -- Best Regards, Kalpa Welivitigoda Software Engineer, WSO2 Inc. http://wso2.com Email: kal...@wso2.com Mobile: +94776509215 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Integration New Test Module - BUILD FAILURE
On Mon, Feb 23, 2015 at 3:33 PM, Chanuka Dissanayake chan...@wso2.com wrote: Hi Nisala, You get this error because it cannot find the wso2 AM 1.9.0 product zip file in the particular relative path. in parallel to your integration folder, create another folder with the name distribution. Inside that, create a folder with the name target and add the WSO2 AM 1.9.0 zip file to that. You need to fix the relative path, rather creating the distribution file patch manually. BTW, if your build was successful, pack should be available in m2 repo and particular relative path. Thanks, Krishantha. In tree view, it's like following. integration distribution |target |wso2am-1.9.0.zip Regards, Chanuka. On Mon, Feb 23, 2015 at 3:25 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Did APIM distribution created successfully ? can you check whether the distribution is there in the local .m2 repo. Thanks, Krishantha. On Mon, Feb 23, 2015 at 2:51 PM, Nisala Nanayakkara nis...@wso2.com wrote: When I tried to build the POM file in the directory turing/apimgt/1.9.0/modules/integration, It gives the following error message, *Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.1:unpack (unpack-mar-jks) on project org.wso2.carbon.am.backend.integration.test: Unable to find artifact. Failure to find org.wso2.am:wso2am:zip:1.9.0 in http://maven.wso2.org/nexus/content/repositories/releases/ http://maven.wso2.org/nexus/content/repositories/releases/ was cached in the local repository, resolution will not be reattempted until the update interval of wso2.releases has elapsed or updates are forced* Did anybody get the same error ?? Thanks, Nisala -- *Best Regards,Nisala Niroshana Nanayakkara,* *Bsc. Eng Undergraduate | Department of Computer Science Engineering | University of Moratuwa | Sri Lanka* *Intern Software Engineer | WSO2 Lanka(pvt) Ltd * *Director | Leo Club of University of Moratuwa.* *Mobile | +94717600022* ___ Dev mailing list Dev@wso2.org 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. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Chanuka Dissanayake *Software Engineer | **WSO2 Inc.*; http://wso2.com Mobile: +94 71 33 63 596 Email: chan...@wso2.com -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Integration New Test Module - BUILD FAILURE
Did APIM distribution created successfully ? can you check whether the distribution is there in the local .m2 repo. Thanks, Krishantha. On Mon, Feb 23, 2015 at 2:51 PM, Nisala Nanayakkara nis...@wso2.com wrote: When I tried to build the POM file in the directory turing/apimgt/1.9.0/modules/integration, It gives the following error message, *Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.1:unpack (unpack-mar-jks) on project org.wso2.carbon.am.backend.integration.test: Unable to find artifact. Failure to find org.wso2.am:wso2am:zip:1.9.0 in http://maven.wso2.org/nexus/content/repositories/releases/ http://maven.wso2.org/nexus/content/repositories/releases/ was cached in the local repository, resolution will not be reattempted until the update interval of wso2.releases has elapsed or updates are forced* Did anybody get the same error ?? Thanks, Nisala -- *Best Regards,Nisala Niroshana Nanayakkara,* *Bsc. Eng Undergraduate | Department of Computer Science Engineering | University of Moratuwa | Sri Lanka* *Intern Software Engineer | WSO2 Lanka(pvt) Ltd * *Director | Leo Club of University of Moratuwa.* *Mobile | +94717600022* ___ Dev mailing list Dev@wso2.org 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. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Status update] Platform automation test - Cross products Single Sign-on with SAML 2.0 Auto test
On Fri, Feb 20, 2015 at 12:03 PM, Dharshana Warusavitharana dharsha...@wso2.com wrote: I think its not practical to get code coverage in platform tests. Since there is always be an option to be all servers remote. We can do this, If proper deployment automation in place. Its a matter of instrumenting all packs and collecting coverage dump files back after test execution. Thanks, Krishantha. Thank you, Dharshana. On Fri, Feb 20, 2015 at 1:21 AM, Nuwan Wimalasekara nuw...@wso2.com wrote: Yes. We can aggregate multiple coverage reports and create a one report. But the problem is that We have to instrument the JAR file before starting the Distributed setup. I guess, Since this is platform test, Platform is already up and running. if so We have to instrument the JAR inside the server first before starting the servers. Thanks, Nuwanw On Wed, Feb 18, 2015 at 4:37 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Nuwan, On Wed, Feb 18, 2015 at 5:49 PM, Nuwan Dias nuw...@wso2.com wrote: Nice work. @Krishantha I have a question regarding getting code coverage for these. Since these are platform scenarios and don't execute at build time, is there a way we can find out the exact code coverage of all the test scenarios? We can merge the two reports and generate aggregated coverage report. This was already done for products like ESB with multiple test modules. However, in a distributed APIM setup merging reports will be bit difficult which we need to improve in future. For the time being we can merge the reports and generate coverage manually. Thanks, Krishantha. Currently the only comprehensive coverage comes from the tests that run at build time and we don't actually know the coverage as a whole (which includes the UI and platform scenarios). Thanks, NuwanD. On Wed, Feb 18, 2015 at 5:20 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: We have completed writing the above cross products (APIM IS) test case scenario and the test case covers the following sequence. 1. Publisher SSO login verifications 2. Creating a sample API 3. Change API state from created to published verify the API details 4. Verify avoidance of repeat authentication for APIM /store related verifications Regards On Tue, Feb 17, 2015 at 11:27 PM, Krishantha Samaraweera krishan...@wso2.com wrote: [adding dev] Thanks, Krishantha. On Tue, Feb 17, 2015 at 11:11 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: Hi Krishantha, test scenario for [1] APIM wso2is-5.0.0 IS wso2am-1.9.0 [1] https://docs.wso2.com/display/AM180/Configuring+Single+Sign-on Basic cross products test scenario contains the following steps. 1. Invoke a http client call to publisher login. 2. Verify http response status codes and whether the SAML based SSO authentication was successful / unsuccessful ( Verify Login page / API Index page details.) 3. Verify avoidance of repeat authentication for APIM /store. Following steps were automated to-date. 1. HTTP call for /publisher 2. Invocation calls for samlsso endpoint 3. calls on commonauth endpoints 4. jaggery_acs jag related re-directions 5. /publisher login index page verifications I am currently working on automating the APIM .. /store related steps. Regards -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dharshana Warusavitharana Senior Software Engineer , Test Automation WSO2 Inc. http://wso2.com email : dharsha...@wso2.com dharsha...@wso2.com Tel : +94 11 214 5345 Fax :+94 11 2145300 cell : +94770342233 blog : http://dharshanaw.blogspot.com lean . enterprise . middleware -- Krishantha Samaraweera
Re: [Dev] Create data service inside ESB integration test
=full separator=, property name=message expression=get-property('ERROR_MESSAGE')/ property name=code expression=get-property('ERROR_CODE')/ property name=detail expression=get-property('ERROR_DETAIL')/ property name=exception expression=get-property('ERROR_EXCEPTION')/ /log respond/ /faultSequence /resource /api Thank you! On Wed, Feb 18, 2015 at 5:33 PM, Krishantha Samaraweera krishan...@wso2.com wrote: On Thu, Feb 12, 2015 at 2:58 PM, Vijitha Ekanayake vijit...@wso2.com wrote: Hi all, Is there a way to do the $subject? If so, can someone point me out some references or any sample test-case may helpful. Can you list manual steps involve with this use case ? based on the steps we might be able to propose you a solution. Thanks, Krishantha. Thanks ! -- Vijitha Ekanayake Software Engineer*, *WSO2, Inc.; http://wso2.com/ Mobile : +94 777 24 73 39 | +94 718 74 44 08 lean.enterprise.middleware ___ Dev mailing list Dev@wso2.org 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. -- Vijitha Ekanayake Software Engineer*, *WSO2, Inc.; http://wso2.com/ Mobile : +94 777 24 73 39 | +94 718 74 44 08 lean.enterprise.middleware -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Status update] Platform automation test - Cross products Single Sign-on with SAML 2.0 Auto test
Hi DimuthuD, On Wed, Feb 18, 2015 at 5:20 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: We have completed writing the above cross products (APIM IS) test case scenario and the test case covers the following sequence. 1. Publisher SSO login verifications 2. Creating a sample API 3. Change API state from created to published verify the API details 4. Verify avoidance of repeat authentication for APIM /store related verifications Did you cover the same scenario for tenant mode ? Thanks, Krishantha. Regards On Tue, Feb 17, 2015 at 11:27 PM, Krishantha Samaraweera krishan...@wso2.com wrote: [adding dev] Thanks, Krishantha. On Tue, Feb 17, 2015 at 11:11 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: Hi Krishantha, test scenario for [1] APIM wso2is-5.0.0 IS wso2am-1.9.0 [1] https://docs.wso2.com/display/AM180/Configuring+Single+Sign-on Basic cross products test scenario contains the following steps. 1. Invoke a http client call to publisher login. 2. Verify http response status codes and whether the SAML based SSO authentication was successful / unsuccessful ( Verify Login page / API Index page details.) 3. Verify avoidance of repeat authentication for APIM /store. Following steps were automated to-date. 1. HTTP call for /publisher 2. Invocation calls for samlsso endpoint 3. calls on commonauth endpoints 4. jaggery_acs jag related re-directions 5. /publisher login index page verifications I am currently working on automating the APIM .. /store related steps. Regards -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Status update] Platform automation test - Cross products Single Sign-on with SAML 2.0 Auto test
Hi Nuwan, On Wed, Feb 18, 2015 at 5:49 PM, Nuwan Dias nuw...@wso2.com wrote: Nice work. @Krishantha I have a question regarding getting code coverage for these. Since these are platform scenarios and don't execute at build time, is there a way we can find out the exact code coverage of all the test scenarios? We can merge the two reports and generate aggregated coverage report. This was already done for products like ESB with multiple test modules. However, in a distributed APIM setup merging reports will be bit difficult which we need to improve in future. For the time being we can merge the reports and generate coverage manually. Thanks, Krishantha. Currently the only comprehensive coverage comes from the tests that run at build time and we don't actually know the coverage as a whole (which includes the UI and platform scenarios). Thanks, NuwanD. On Wed, Feb 18, 2015 at 5:20 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: We have completed writing the above cross products (APIM IS) test case scenario and the test case covers the following sequence. 1. Publisher SSO login verifications 2. Creating a sample API 3. Change API state from created to published verify the API details 4. Verify avoidance of repeat authentication for APIM /store related verifications Regards On Tue, Feb 17, 2015 at 11:27 PM, Krishantha Samaraweera krishan...@wso2.com wrote: [adding dev] Thanks, Krishantha. On Tue, Feb 17, 2015 at 11:11 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: Hi Krishantha, test scenario for [1] APIM wso2is-5.0.0 IS wso2am-1.9.0 [1] https://docs.wso2.com/display/AM180/Configuring+Single+Sign-on Basic cross products test scenario contains the following steps. 1. Invoke a http client call to publisher login. 2. Verify http response status codes and whether the SAML based SSO authentication was successful / unsuccessful ( Verify Login page / API Index page details.) 3. Verify avoidance of repeat authentication for APIM /store. Following steps were automated to-date. 1. HTTP call for /publisher 2. Invocation calls for samlsso endpoint 3. calls on commonauth endpoints 4. jaggery_acs jag related re-directions 5. /publisher login index page verifications I am currently working on automating the APIM .. /store related steps. Regards -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Create data service inside ESB integration test
On Thu, Feb 12, 2015 at 2:58 PM, Vijitha Ekanayake vijit...@wso2.com wrote: Hi all, Is there a way to do the $subject? If so, can someone point me out some references or any sample test-case may helpful. Can you list manual steps involve with this use case ? based on the steps we might be able to propose you a solution. Thanks, Krishantha. Thanks ! -- Vijitha Ekanayake Software Engineer*, *WSO2, Inc.; http://wso2.com/ Mobile : +94 777 24 73 39 | +94 718 74 44 08 lean.enterprise.middleware ___ Dev mailing list Dev@wso2.org 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. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DEV][APIM] Integration test build Failure
Hi Tharindu, Can you check the file permission of APIM pack at your local m2 repo. Hope you are using maven 3.0.x version ? Thanks, Krishantha. On Tue, Feb 17, 2015 at 2:05 PM, Tharindu Dharmarathna tharin...@wso2.com wrote: Hi all, I have try to build integration test module in product -apim, I got build failure as follows. Is there any workaround I can try ? I try this by giving all permissions but it didn't work. Error [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.9:unpack (unpack-mar-jks) on project org.wso2.carbon.am.integration.test: Execution unpack-mar-jks of goal org.apache.maven.plugins:maven-dependency-plugin:2.9:unpack failed: file mode must be 3 or 4 characters - [Help 1] -- *Tharindu Dharmarathna*Associate Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94779109091 %2B94779109091* ___ Dev mailing list Dev@wso2.org 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. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Exception occurred inside cleanup method of ESB Integration test
) 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) Did anyone experienced similar issue before? Appreciate any help on this. Thanks, Chanaka -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620 -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] carbon4-kernel tests migration - to be compatible with TAF 4.3.1
Hi Dimuthu, Can you fix all the problems and send a pull again. Thanks, Krishantha. On Tue, Feb 10, 2015 at 10:18 PM, Kishanthan Thangarajah kishant...@wso2.com wrote: Hi DimuthuD, While trying to merge this, I found some pom level issues with the integration module that should be fixed. 1. We need to remove the dependencyManagement section in distribution/integration/pom.xml and move all those dependencies to the root pom at carbon4-kernel/parent/pom.xml 2. Submodule pom's should not have versions defined/hard-coded for any dependencies, instead they should be defined at root parent pom. The same applied for maven build plugins sections as-well. So shall we also fix the above with this effort? On Fri, Jan 23, 2015 at 7:39 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: Hi Kishanthan, Yes, we have the updated PR [1] which is compatible with the master branch to-date. Pls merge. [1] https://github.com/wso2/carbon4-kernel/pull/132 Regards On Thu, Jan 22, 2015 at 11:09 PM, Kishanthan Thangarajah kishant...@wso2.com wrote: Great. Thanks Dimuthu and Krishantha. So we just have to remove the old framework from code base right? Also can we get the updated PR on this migration sent to master branch, if not already done? On Wed, Jan 21, 2015 at 11:57 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Dimuthu, Thanks for attending to this. We need to remove the old test framework in kernel and test suite. Thanks, Krishantha. On Wed, Jan 21, 2015 at 8:24 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: This is completed. Please find the test result for carbon-kernel4 tests-integration module. Test results SuitePassedFailedSkippedtestng.xml*Total**24**0**0* carbon-server-startup http://carbon-server-startup/index.html2400 Link http://carbon-server-startup/testng.xml.html Regards On Tue, Jan 20, 2015 at 3:07 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: I have started migrating carbon4-kernel tests inside [1] tests module to tests-integration module which is going to be compatible with new TAF 4.3.1 framework. Will update progress soon. [1] https://github.com/buddhics/carbon4-kernel/tree/master/distribution/integration Regards -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- *Kishanthan Thangarajah* Senior Software Engineer, Platform Technologies Team, WSO2, Inc. lean.enterprise.middleware Mobile - +94773426635 Blog - *http://kishanthan.wordpress.com http://kishanthan.wordpress.com* Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan* -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com -- *Kishanthan Thangarajah* Senior Software Engineer, Platform Technologies Team, WSO2, Inc. lean.enterprise.middleware Mobile - +94773426635 Blog - *http://kishanthan.wordpress.com http://kishanthan.wordpress.com* Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan* -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] APIM test stabilisation {was :Re: APIM git stabilization}
Hi APIM Team, I'm getting following build failure when building GIT mater repo in clean repo. [ERROR] Failed to execute goal on project org.wso2.stratos.apimgt.styles: Could not resolve dependencies for project org.wso2.am:org.wso2.stratos.apimgt.styles:bundle:2.2.0: Failure to find org.wso2.carbon:org.wso2.carbon.ui:jar:4.3.0-SNAPSHOT in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the local repository, resolution will not be reattempted until the update interval of wso2-nexus has elapsed or updates are forced - [Help 1] Can you please looking to it. Thanks, Krishantha. On Wed, Feb 11, 2015 at 12:47 PM, Krishantha Samaraweera krishan...@wso2.com wrote: [adding dev] On Wed, Feb 11, 2015 at 11:47 AM, Dimuthu De Lanerolle dimut...@wso2.com wrote: Hi Krishantha, Following are the issues related to APIM git stabilization. 1. There are some changes needs to be done. Ex: These tests [1] are using old structure. [1] https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-scenario/src/test/java/org/wso2/carbon/am/tests/header/ContentLengthHeaderTestCase.java (If going ahead with this structure needs to change -) integration-test-utils/src/main/java/org/wso2/am/integration/test/utils/APIManagerIntegrationTest.java import org.wso2.carbon.integration.common.admin.client.SecurityAdminServiceClient; import org.wso2.carbon.integration.common.utils.LoginLogoutClient; import org.wso2.am.integration.test.utils.publisher.utils.APIPublisherRestClient; import org.wso2.am.integration.test.utils.user.mgt.LoginLogoutClient; 2. At the root level project version is defined as ${apimserver.version} . However since after building wso2/carbon-apimgt still there were some build failures when building the wso2/product-apim which prohibits ${apimserver.version} to derive correctly for sub modules causing problems for building sub modules separately. ( we can overcome this issue by hard coding project version 1.9.0 as the version for integration and sub modules below integration. 3. Some of the tests needs to be migrated to public branch (svn) and git. 4. Introducing new structure to avoid code duplication and unnecessary codes. Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] APIM test stabilisation {was :Re: APIM git stabilization}
[adding dev] On Wed, Feb 11, 2015 at 11:47 AM, Dimuthu De Lanerolle dimut...@wso2.com wrote: Hi Krishantha, Following are the issues related to APIM git stabilization. 1. There are some changes needs to be done. Ex: These tests [1] are using old structure. [1] https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-scenario/src/test/java/org/wso2/carbon/am/tests/header/ContentLengthHeaderTestCase.java (If going ahead with this structure needs to change -) integration-test-utils/src/main/java/org/wso2/am/integration/test/utils/APIManagerIntegrationTest.java import org.wso2.carbon.integration.common.admin.client.SecurityAdminServiceClient; import org.wso2.carbon.integration.common.utils.LoginLogoutClient; import org.wso2.am.integration.test.utils.publisher.utils.APIPublisherRestClient; import org.wso2.am.integration.test.utils.user.mgt.LoginLogoutClient; 2. At the root level project version is defined as ${apimserver.version} . However since after building wso2/carbon-apimgt still there were some build failures when building the wso2/product-apim which prohibits ${apimserver.version} to derive correctly for sub modules causing problems for building sub modules separately. ( we can overcome this issue by hard coding project version 1.9.0 as the version for integration and sub modules below integration. 3. Some of the tests needs to be migrated to public branch (svn) and git. 4. Introducing new structure to avoid code duplication and unnecessary codes. Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Many pending integration test pull requests in wso2-dev/product-esb
Please check - https://github.com/wso2-dev/product-esb/pulls What is our plan on merging these pull requests to master branch ? Thanks, Krishantha. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB][Configuration error when running the AutoAcknowledgementsTestCase from the intellij
To run individual test case though intellij you need set all system properties referred though tests module pom file as test runner options in IDE. You can refer test automation wiki FAQ on running single test case [1]. Our recommendation is to use maven for running single test cases. Note that you don't required to start the server manually. Thanks, Krishantha. https://docs.wso2.com/display/TA430/FAQ#FAQ-HowcanIrunsingletestsoratestpackage ? On Thu, Feb 5, 2015 at 4:37 PM, Megala Uthayakumar meg...@wso2.com wrote: Hi, I tried to run the single test class AutoAcknowledegementsTestCase using the intellij. It gave the following error *ERROR [org.wso2.carbon.automation.engine.configurations.AutomationConfiguration] - Error While reading configurations[Ljava.lang.StackTraceElement;@24177336java.lang.ExceptionInInitializerError at org.wso2.carbon.automation.engine.context.AutomationContext.assignParameters(AutomationContext.java:166) at org.wso2.carbon.automation.engine.context.AutomationContext.init(AutomationContext.java:129) at org.wso2.mb.integration.common.utils.backend.MBIntegrationBaseTest.init(MBIntegrationBaseTest.java:53) at org.wso2.mb.integration.tests.amqp.functional.AutoAcknowledgementsTestCase.prepare(AutoAcknowledgementsTestCase.java:40) 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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84) at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:175) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:107) at org.testng.TestRunner.privateRun(TestRunner.java:767)at org.testng.TestRunner.run(TestRunner.java:617)at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)at org.testng.SuiteRunner.run(SuiteRunner.java:240)at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)at org.testng.TestNG.run(TestNG.java:1057)at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:125)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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)Caused by: java.lang.IllegalArgumentException: Error While reading configurations[Ljava.lang.StackTraceElement;@2eedd06aat org.wso2.carbon.automation.engine.configurations.AutomationConfiguration.clinit(AutomationConfiguration.java:26) ... 34 more* But I was able to run this test case when building the product-mb. What may be the possible reason for this? Thanks -- Megala Uthayakumar *Software Engineering Intern *| *WSO2 Lanka* Mobile : +94 779 967 122 Tel : +94 112 733 667 E-mail : meg...@wso2.com ___ Dev mailing list Dev@wso2.org 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. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev