holmos.webtest.junitextentions.parameters.HolmosFrameWorkMethod Maven / Gradle / Ivy
package holmos.webtest.junitextentions.parameters;
import holmos.webtest.basetools.HolmosAnnotationTool;
import holmos.webtest.exceptions.HolmosFailedError;
import holmos.webtest.junitextentions.HolmosRunner;
import holmos.webtest.junitextentions.annotations.MultiThread;
import holmos.webtest.junitextentions.annotations.Parameter;
import holmos.webtest.junitextentions.annotations.RunAfter;
import holmos.webtest.junitextentions.annotations.RunCount;
import holmos.webtest.junitextentions.excute.ExcuteRunnable;
import holmos.webtest.junitextentions.excute.ExcuteThread;
import holmos.webtest.log.MyLogger;
import java.util.ArrayList;
import org.junit.runner.notification.RunNotifier;
import org.junit.runners.model.FrameworkMethod;
/**
* 以{@link HolmosFrameWorkMethod}类为单位进行组织测试方法,用来代表是否有多线程,执行顺序,执行次数
*
* @author 吴银龙([email protected])
* */
public class HolmosFrameWorkMethod{
private static MyLogger logger=MyLogger.getLogger(HolmosFrameWorkMethod.class);
/**参数获取器*/
private ParameterDataInfo dataGetter;
/**是否需要多线程执行方法*/
private boolean isMultiThread=false;
public boolean isMultiThread() {
return isMultiThread;
}
/**表示执行的次数*/
private int runcount=1;
/**表示执行这么多次给出的线程池的大小*/
private int runcountThreadpoolSize=1;
/**用来指示此方法是否被执行过*/
private boolean isExecuted;
public int getRuncountThreadpoolSize() {
return runcountThreadpoolSize;
}
/**所有的参数组列表*/
private ArrayList