​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: [email protected]
LinkedIn: http://lk.linkedin.com/in/rasika90

WSO2 Inc. www.wso2.com
lean.enterprise.middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to