Re: [Dev] [Test-Automation] Error After Updating Selenium version
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 Wimalasekarawrote: > 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 > 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 >> org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.getDefaultHttpClientFactory(ApacheHttpClient.java:251) >> at >> org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.(ApacheHttpClient.java:228) >> at >> org.openqa.selenium.remote.HttpCommandExecutor.getDefaultClientFactory(HttpCommandExecutor.java:96) >> at >> org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:70) >> at >> org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:58) >> at >> org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:97) >> at >> org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271) >> at >> org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:119) >> at >> org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:216) >> at >> org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:211) >> at >> org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:207) >> at >> org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:120) >> 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.identity.ui.integration.test.login.ISLoginTestCase.setUp(ISLoginTestCase.java:37) >> >> Following is the dependency tree created from mvn dependency:tree to the >> integration tests module. >> >> +- commons-codec.wso2:commons-codec:jar:1.4.0.wso2v1:compile >> [INFO] | \- commons-codec:commons-codec:jar:1.4:compile >> [INFO] +- emma:emma:jar:2.1.5320:compile >> [INFO] +- org.wso2.carbon:SecVerifier:aar:4.4.3:compile >> [INFO] | \- org.wso2.carbon:org.wso2.carbon.core:jar:4.4.3:compile >> [INFO] | +- >> org.wso2.orbit.com.hazelcast:hazelcast:jar:3.5.2.wso2v1:compile >> [INFO] | | \- com.hazelcast:hazelcast-all:jar:3.5.2:compile >> [INFO] | +- >> org.eclipse.osgi:org.eclipse.osgi:jar:3.9.1.v20130814-1242:compile >> [INFO] | +- >> org.eclipse.osgi:org.eclipse.osgi.services:jar:3.3.100.v20130513-1956:compile >> [INFO] | +- >> org.eclipse.equinox:org.eclipse.equinox.http.helper:jar:1.0.0:compile >> [INFO] | +- >> org.bouncycastle.wso2:bcprov-jdk15on:jar:1.49.0.wso2v2:compile >> [INFO] | | \- org.bouncycastle:bcprov-jdk15on:jar:1.49:compile >> [INFO] | +- >> org.wso2.carbon:org.wso2.carbon.registry.core:jar:4.4.3:compile >> [INFO] | | +-
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 Wijayarathnawrote: > 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" > 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 >> 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 >>> 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 org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.getDefaultHttpClientFactory(ApacheHttpClient.java:251) at org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.(ApacheHttpClient.java:228) at org.openqa.selenium.remote.HttpCommandExecutor.getDefaultClientFactory(HttpCommandExecutor.java:96) at org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:70) at org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:58) at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:97) at
Re: [Dev] [Test-Automation] Error After Updating Selenium version
Hi Krishantha, Thanks for the information. After following the steps you mentioned I could successfully run IS ui tests without downgrading my Firefox version. Sorry for the misunderstanding, I was not aware about this before. Thanks. On Fri, Feb 5, 2016 at 8:39 AM, Krishantha Samaraweerawrote: > 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 > 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" >> 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 >>> 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 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 > org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.getDefaultHttpClientFactory(ApacheHttpClient.java:251) > at > org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.(ApacheHttpClient.java:228) > at >
Re: [Dev] [Test-Automation] Error After Updating Selenium version
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"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 > 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 >> 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 >>> org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.getDefaultHttpClientFactory(ApacheHttpClient.java:251) >>> at >>> org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.(ApacheHttpClient.java:228) >>> at >>> org.openqa.selenium.remote.HttpCommandExecutor.getDefaultClientFactory(HttpCommandExecutor.java:96) >>> at >>> org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:70) >>> at >>> org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:58) >>> at >>> org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:97) >>> at >>> org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271) >>> at >>> org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:119) >>> at >>> org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:216) >>> at >>> org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:211) >>> at >>> org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:207) >>> at >>> org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:120) >>> 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.identity.ui.integration.test.login.ISLoginTestCase.setUp(ISLoginTestCase.java:37) >>> >>> Following is the dependency tree created from mvn dependency:tree to the >>> integration tests module. >>> >>> +- commons-codec.wso2:commons-codec:jar:1.4.0.wso2v1:compile >>> [INFO] | \-
[Dev] [Test-Automation] Error After Updating Selenium version
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 org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.getDefaultHttpClientFactory(ApacheHttpClient.java:251) at org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.(ApacheHttpClient.java:228) at org.openqa.selenium.remote.HttpCommandExecutor.getDefaultClientFactory(HttpCommandExecutor.java:96) at org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:70) at org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:58) at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:97) at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271) at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:119) at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:216) at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:211) at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:207) at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:120) 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.identity.ui.integration.test.login.ISLoginTestCase.setUp(ISLoginTestCase.java:37) Following is the dependency tree created from mvn dependency:tree to the integration tests module. +- commons-codec.wso2:commons-codec:jar:1.4.0.wso2v1:compile [INFO] | \- commons-codec:commons-codec:jar:1.4:compile [INFO] +- emma:emma:jar:2.1.5320:compile [INFO] +- org.wso2.carbon:SecVerifier:aar:4.4.3:compile [INFO] | \- org.wso2.carbon:org.wso2.carbon.core:jar:4.4.3:compile [INFO] | +- org.wso2.orbit.com.hazelcast:hazelcast:jar:3.5.2.wso2v1:compile [INFO] | | \- com.hazelcast:hazelcast-all:jar:3.5.2:compile [INFO] | +- org.eclipse.osgi:org.eclipse.osgi:jar:3.9.1.v20130814-1242:compile [INFO] | +- org.eclipse.osgi:org.eclipse.osgi.services:jar:3.3.100.v20130513-1956:compile [INFO] | +- org.eclipse.equinox:org.eclipse.equinox.http.helper:jar:1.0.0:compile [INFO] | +- org.bouncycastle.wso2:bcprov-jdk15on:jar:1.49.0.wso2v2:compile [INFO] | | \- org.bouncycastle:bcprov-jdk15on:jar:1.49:compile [INFO] | +- org.wso2.carbon:org.wso2.carbon.registry.core:jar:4.4.3:compile [INFO] | | +- commons-io.wso2:commons-io:jar:2.0.0.wso2v2:compile [INFO] | | +- net.sourceforge.findbugs:annotations:jar:1.3.2:compile [INFO] | | +- org.wso2.carbon:org.wso2.carbon.registry.xboot:jar:4.4.3:compile [INFO] | | +- org.compass-project.wso2:compass:jar:2.0.1.wso2v2:compile [INFO] | | +- org.apache.abdera.wso2:abdera:jar:1.0.0.wso2v3:compile [INFO] | | +- org.apache.poi.wso2:poi-scratchpad:jar:3.9.0.wso2v1:compile [INFO] | | | \- org.apache.poi:poi-scratchpad:jar:3.9:compile [INFO] | | | \- org.apache.poi:poi:jar:3.9:compile [INFO] | | \- commons-pool.wso2:commons-pool:jar:1.5.6.wso2v1:compile [INFO] | +- org.wso2.orbit.org.apache.neethi:neethi:jar:2.0.4.wso2v5:compile [INFO] | +- org.apache.httpcomponents.wso2:httpcore:jar:4.3.3.wso2v1:compile [INFO] | \- wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4:compile [INFO] +- org.wso2.is: org.wso2.identity.integration.common.clients:jar:5.2.0-SNAPSHOT:compile [INFO] | +-
Re: [Dev] [Test-Automation] Error After Updating Selenium version
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 Wijayarathnawrote: > 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 > org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.getDefaultHttpClientFactory(ApacheHttpClient.java:251) > at > org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.(ApacheHttpClient.java:228) > at > org.openqa.selenium.remote.HttpCommandExecutor.getDefaultClientFactory(HttpCommandExecutor.java:96) > at > org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:70) > at > org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:58) > at > org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:97) > at > org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271) > at > org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:119) > at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:216) > at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:211) > at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:207) > at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:120) > 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.identity.ui.integration.test.login.ISLoginTestCase.setUp(ISLoginTestCase.java:37) > > Following is the dependency tree created from mvn dependency:tree to the > integration tests module. > > +- commons-codec.wso2:commons-codec:jar:1.4.0.wso2v1:compile > [INFO] | \- commons-codec:commons-codec:jar:1.4:compile > [INFO] +- emma:emma:jar:2.1.5320:compile > [INFO] +- org.wso2.carbon:SecVerifier:aar:4.4.3:compile > [INFO] | \- org.wso2.carbon:org.wso2.carbon.core:jar:4.4.3:compile > [INFO] | +- > org.wso2.orbit.com.hazelcast:hazelcast:jar:3.5.2.wso2v1:compile > [INFO] | | \- com.hazelcast:hazelcast-all:jar:3.5.2:compile > [INFO] | +- > org.eclipse.osgi:org.eclipse.osgi:jar:3.9.1.v20130814-1242:compile > [INFO] | +- > org.eclipse.osgi:org.eclipse.osgi.services:jar:3.3.100.v20130513-1956:compile > [INFO] | +- > org.eclipse.equinox:org.eclipse.equinox.http.helper:jar:1.0.0:compile > [INFO] | +- > org.bouncycastle.wso2:bcprov-jdk15on:jar:1.49.0.wso2v2:compile > [INFO] | | \- org.bouncycastle:bcprov-jdk15on:jar:1.49:compile > [INFO] | +- > org.wso2.carbon:org.wso2.carbon.registry.core:jar:4.4.3:compile > [INFO] | | +- commons-io.wso2:commons-io:jar:2.0.0.wso2v2:compile > [INFO] | | +- net.sourceforge.findbugs:annotations:jar:1.3.2:compile > [INFO] | | +- > org.wso2.carbon:org.wso2.carbon.registry.xboot:jar:4.4.3:compile > [INFO] | | +- > org.compass-project.wso2:compass:jar:2.0.1.wso2v2:compile > [INFO] | | +- org.apache.abdera.wso2:abdera:jar:1.0.0.wso2v3:compile > [INFO] | | +- > org.apache.poi.wso2:poi-scratchpad:jar:3.9.0.wso2v1:compile > [INFO] | | | \- org.apache.poi:poi-scratchpad:jar:3.9:compile > [INFO] | | | \-