public class CarbonTestServerManager extends TestServerManager
carbonHome, carbonServer, carbonZip, commandMap, portOffset, runtimePath| Constructor and Description |
|---|
CarbonTestServerManager(org.wso2.carbon.automation.engine.context.AutomationContext autoCtx,
int portOffset) |
CarbonTestServerManager(org.wso2.carbon.automation.engine.context.AutomationContext autoCtx,
String carbonZip,
HashMap<String,String> startupParameterMap) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyArtifacts(String carbonHome) |
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
|
configureServer, getCarbonHome, getCarbonZip, getCommands, getPortOffset, getRuntimePath, restartGracefullypublic CarbonTestServerManager(org.wso2.carbon.automation.engine.context.AutomationContext autoCtx,
String carbonZip,
HashMap<String,String> startupParameterMap)
public CarbonTestServerManager(org.wso2.carbon.automation.engine.context.AutomationContext autoCtx,
int portOffset)
public String startServer() throws IOException, org.wso2.carbon.automation.engine.exceptions.AutomationFrameworkException, XPathExpressionException
TestServerManagerstartServer in class TestServerManagerIOException - If an error occurs while copying the deployment artifacts into the
Carbon serverorg.wso2.carbon.automation.engine.exceptions.AutomationFrameworkExceptionXPathExpressionExceptionpublic void stopServer()
throws org.wso2.carbon.automation.engine.exceptions.AutomationFrameworkException
TestServerManagerstopServer in class TestServerManagerorg.wso2.carbon.automation.engine.exceptions.AutomationFrameworkException - If an error occurs while shutting down the serverprotected void copyArtifacts(String carbonHome) throws IOException
IOExceptionCopyright © 2018 WSO2. All rights reserved.