当前位置: 首页>>代码示例>>Java>>正文


Java ReportContext类代码示例

本文整理汇总了Java中org.databene.contiperf.report.ReportContext的典型用法代码示例。如果您正苦于以下问题:Java ReportContext类的具体用法?Java ReportContext怎么用?Java ReportContext使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ReportContext类属于org.databene.contiperf.report包,在下文中一共展示了ReportContext类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ContiPerfRule

import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
protected ContiPerfRule(ReportContext context, Object suite) {
if (context == null) {
    this.context = JUnitReportContext.createInstance(suite);
} else {
    this.context = context;
}
if (suite != null) {
    Class<? extends Object> suiteClass = suite.getClass();
    this.defaultExecutionConfig = configurePerfTest(
	    ContiPerfUtil.annotationOfClass(suiteClass, PerfTest.class),
	    suiteClass.getName());
    this.defaultRequirements = ContiPerfUtil.mapRequired(ContiPerfUtil
	    .annotationOfClass(suiteClass, Required.class));
}
   }
 
开发者ID:lucaspouzac,项目名称:contiperf,代码行数:16,代码来源:ContiPerfRule.java

示例2: createVerboseRule

import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
public static ContiPerfRule createVerboseRule() {
ReportContext context = new JUnitReportContext();
context.addReportModule(new HtmlReportModule());
context.addReportModule(new LoggerModuleAdapter(
	new ConsoleExecutionLogger()));
return new ContiPerfRule(context);
   }
 
开发者ID:lucaspouzac,项目名称:contiperf,代码行数:8,代码来源:ContiPerfRule.java

示例3: createReportContext

import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
private static ReportContext createReportContext(ReportModule... modules) {
ReportContext context = new JUnitReportContext();
for (ReportModule module : modules) {
    context.addReportModule(module);
}
return context;
   }
 
开发者ID:lucaspouzac,项目名称:contiperf,代码行数:8,代码来源:ContiPerfRule.java

示例4: PerfTestStatement

import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
PerfTestStatement(Statement base, String id, ExecutionConfig config,
    PerformanceRequirement requirement, ReportContext context) {
this.base = base;
this.id = id;
this.config = config;
this.requirement = requirement;
this.context = context;
   }
 
开发者ID:lucaspouzac,项目名称:contiperf,代码行数:9,代码来源:PerfTestStatement.java

示例5: PerformanceTracker

import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
public PerformanceTracker(Invoker target, ExecutionConfig executionConfig,
    PerformanceRequirement requirement, ReportContext context,
    Clock[] clocks) {
super(target);
this.executionConfig = (executionConfig != null ? executionConfig
	: new ExecutionConfig(0));
this.requirement = requirement;
this.setContext(context);
this.clocks = clocks;
this.counters = null;
this.trackingStarted = false;
this.warmUpFinishedTime = -1;
   }
 
开发者ID:lucaspouzac,项目名称:contiperf,代码行数:14,代码来源:PerformanceTracker.java

示例6: createDefaultReportContext

import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
public ReportContext createDefaultReportContext(
    Class<? extends AssertionError> failureClass) {
File reportFolder = getReportFolder();
ReportContext context = new ReportContext(reportFolder, failureClass);
context.addReportModule(new HtmlReportModule());
return context;
   }
 
开发者ID:lucaspouzac,项目名称:contiperf,代码行数:8,代码来源:Config.java

示例7: ContiPerfRuleAdaptor

import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
protected ContiPerfRuleAdaptor(ReportContext context) {
    super(context);
}
 
开发者ID:Talend,项目名称:components,代码行数:4,代码来源:ContiPerfRuleAdaptor.java

示例8: createDefaultRule

import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
public static ContiPerfRule createDefaultRule() {
ReportContext context = new JUnitReportContext();
context.addReportModule(new HtmlReportModule());
return new ContiPerfRule(context);
   }
 
开发者ID:lucaspouzac,项目名称:contiperf,代码行数:6,代码来源:ContiPerfRule.java

示例9: getContext

import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
public ReportContext getContext() {
return context;
   }
 
开发者ID:lucaspouzac,项目名称:contiperf,代码行数:4,代码来源:ContiPerfRule.java

示例10: setContext

import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
void setContext(ReportContext context) {
this.context = context;
   }
 
开发者ID:lucaspouzac,项目名称:contiperf,代码行数:4,代码来源:ContiPerfRule.java

示例11: setContext

import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
public void setContext(ReportContext context) {
this.context = context;
   }
 
开发者ID:lucaspouzac,项目名称:contiperf,代码行数:4,代码来源:PerformanceTracker.java

示例12: setContext

import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
public void setContext(ReportContext context) {
	this.context = context;
}
 
开发者ID:raphaelfeng,项目名称:benerator,代码行数:4,代码来源:PerfTrackingWrapper.java


注:本文中的org.databene.contiperf.report.ReportContext类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。