Package com.auto.framework
Class AbstractTestComponent
java.lang.Object
com.auto.framework.AbstractTestComponent
- All Implemented Interfaces:
ITestComponent
- Direct Known Subclasses:
AbstractAlwaysRunningTestComponent,MockServer
public abstract class AbstractTestComponent extends java.lang.Object implements ITestComponent
User: Priytam Jee Pandey
Date: 28/05/20
Time: 1:17 pm
email: mrpjpandey@gmail.com
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractTestComponent(TestComponentData data) -
Method Summary
Modifier and Type Method Description protected voidexecuteStartOperation()java.lang.IntegergetCleanOrder()java.lang.StringgetComponentName()java.lang.StringgetHost()java.lang.StringgetInstallationDir()java.lang.StringgetLogDir()intgetPort()java.lang.StringgetServer()protected abstract OperationgetStartOperation()protected abstract OperationgetStopOperation()OpResultperformFailedOperation(Operation oOperation)OpResultperformOperation(Operation oOperation)protected voidperformStopOperation()OpResultperformSuccessOperation(Operation oOperation)voidrestart()voidstart()voidstop()voidverifyProcessStopped()
-
Constructor Details
-
Method Details
-
start
public void start()- Specified by:
startin interfaceITestComponent
-
stop
public void stop()- Specified by:
stopin interfaceITestComponent
-
executeStartOperation
protected void executeStartOperation() -
performStopOperation
protected void performStopOperation() -
verifyProcessStopped
public void verifyProcessStopped() -
performOperation
-
performFailedOperation
-
performSuccessOperation
-
getStartOperation
-
getStopOperation
-
restart
public void restart()- Specified by:
restartin interfaceITestComponent
-
getHost
public java.lang.String getHost()- Specified by:
getHostin interfaceITestComponent
-
getLogDir
public java.lang.String getLogDir()- Specified by:
getLogDirin interfaceITestComponent
-
getServer
public java.lang.String getServer()- Specified by:
getServerin interfaceITestComponent
-
getComponentName
public java.lang.String getComponentName()- Specified by:
getComponentNamein interfaceITestComponent
-
getCleanOrder
public java.lang.Integer getCleanOrder()- Specified by:
getCleanOrderin interfaceITestComponent
-
getPort
public int getPort()- Specified by:
getPortin interfaceITestComponent
-
getInstallationDir
public java.lang.String getInstallationDir()- Specified by:
getInstallationDirin interfaceITestComponent
-