public class TestServerManager extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
carbonHome |
protected CarbonServerManager |
carbonServer |
protected String |
carbonZip |
protected Map<String,String> |
commandMap |
protected int |
portOffset |
protected String |
runtimePath |
| Constructor and Description |
|---|
TestServerManager(org.wso2.carbon.automation.engine.context.AutomationContext context) |
TestServerManager(org.wso2.carbon.automation.engine.context.AutomationContext context,
int portOffset) |
TestServerManager(org.wso2.carbon.automation.engine.context.AutomationContext context,
String carbonZip) |
TestServerManager(org.wso2.carbon.automation.engine.context.AutomationContext context,
String carbonZip,
Map<String,String> commandMap) |
| Modifier and Type | Method and Description |
|---|---|
void |
configureServer() |
String |
getCarbonHome() |
String |
getCarbonZip() |
Map<String,String> |
getCommands() |
int |
getPortOffset() |
String |
getRuntimePath() |
void |
restartGracefully()
Restarting server already started by the method startServer
|
String |
startServer()
This method is called for starting a Carbon server in preparation for execution of a
TestSuite
Add the @BeforeSuite TestNG annotation in the method overriding this method
|
void |
stopServer()
This method is called for stopping a Carbon server
Add the @AfterSuite annotation in the method overriding this method
|
protected CarbonServerManager carbonServer
protected String carbonZip
protected int portOffset
protected String carbonHome
protected String runtimePath
public TestServerManager(org.wso2.carbon.automation.engine.context.AutomationContext context)
public TestServerManager(org.wso2.carbon.automation.engine.context.AutomationContext context,
String carbonZip)
public TestServerManager(org.wso2.carbon.automation.engine.context.AutomationContext context,
int portOffset)
public String getCarbonZip()
public String getCarbonHome()
public int getPortOffset()
public String getRuntimePath()
public void configureServer()
throws org.wso2.carbon.automation.engine.exceptions.AutomationFrameworkException
org.wso2.carbon.automation.engine.exceptions.AutomationFrameworkExceptionpublic String startServer() throws org.wso2.carbon.automation.engine.exceptions.AutomationFrameworkException, IOException, XPathExpressionException
IOException - If an error occurs while copying the deployment artifacts into the
Carbon serverorg.wso2.carbon.automation.engine.exceptions.AutomationFrameworkExceptionXPathExpressionExceptionpublic void restartGracefully()
throws org.wso2.carbon.automation.engine.exceptions.AutomationFrameworkException
org.wso2.carbon.automation.engine.exceptions.AutomationFrameworkExceptionpublic void stopServer()
throws org.wso2.carbon.automation.engine.exceptions.AutomationFrameworkException
org.wso2.carbon.automation.engine.exceptions.AutomationFrameworkException - If an error occurs while shutting down the serverCopyright © 2018 WSO2. All rights reserved.