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://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

Reply via email to