本文整理汇总了Java中org.testng.IConfigurationListener类的典型用法代码示例。如果您正苦于以下问题:Java IConfigurationListener类的具体用法?Java IConfigurationListener怎么用?Java IConfigurationListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IConfigurationListener类属于org.testng包,在下文中一共展示了IConfigurationListener类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: buildTestRunnerFactory
import org.testng.IConfigurationListener; //导入依赖的package包/类
@Override
protected ITestRunnerFactory buildTestRunnerFactory() {
if(null == m_customTestRunnerFactory) {
m_customTestRunnerFactory= new ITestRunnerFactory() {
@Override
public TestRunner newTestRunner(ISuite suite, XmlTest xmlTest,
List<IInvokedMethodListener> listeners) {
TestRunner runner =
new TestRunner(getConfiguration(), suite, xmlTest,
false /*skipFailedInvocationCounts */,
listeners);
if (m_useDefaultListeners) {
runner.addListener(new TestHTMLReporter());
runner.addListener(new JUnitXMLReporter());
}
for (IConfigurationListener cl : getConfiguration().getConfigurationListeners()) {
runner.addListener(cl);
}
return runner;
}
};
}
return m_customTestRunnerFactory;
}
示例2: buildTestRunnerFactory
import org.testng.IConfigurationListener; //导入依赖的package包/类
@Override
protected ITestRunnerFactory buildTestRunnerFactory() {
if(null == m_customTestRunnerFactory) {
m_customTestRunnerFactory= new ITestRunnerFactory() {
@Override
public TestRunner newTestRunner(ISuite suite, XmlTest xmlTest,
Collection<IInvokedMethodListener> listeners) {
TestRunner runner =
new TestRunner(getConfiguration(), suite, xmlTest,
false /*skipFailedInvocationCounts */,
listeners);
if (m_useDefaultListeners) {
runner.addListener(new TestHTMLReporter());
runner.addListener(new JUnitXMLReporter());
}
for (IConfigurationListener cl : getConfiguration().getConfigurationListeners()) {
runner.addListener(cl);
}
return runner;
}
};
}
return m_customTestRunnerFactory;
}
示例3: buildTestRunnerFactory
import org.testng.IConfigurationListener; //导入依赖的package包/类
@Override
protected ITestRunnerFactory buildTestRunnerFactory() {
if(null == m_customTestRunnerFactory) {
m_customTestRunnerFactory= new ITestRunnerFactory() {
@Override
public TestRunner newTestRunner(ISuite suite, XmlTest xmlTest,
Collection<IInvokedMethodListener> listeners, List<IClassListener> classListeners) {
TestRunner runner =
new TestRunner(getConfiguration(), suite, xmlTest,
false /*skipFailedInvocationCounts */,
listeners, classListeners);
if (m_useDefaultListeners) {
runner.addListener(new TestHTMLReporter());
runner.addListener(new JUnitXMLReporter());
}
for (IConfigurationListener cl : getConfiguration().getConfigurationListeners()) {
runner.addListener(cl);
}
return runner;
}
};
}
return m_customTestRunnerFactory;
}