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


Java ITestNGMethod.isBeforeTestConfiguration方法代码示例

本文整理汇总了Java中org.testng.ITestNGMethod.isBeforeTestConfiguration方法的典型用法代码示例。如果您正苦于以下问题:Java ITestNGMethod.isBeforeTestConfiguration方法的具体用法?Java ITestNGMethod.isBeforeTestConfiguration怎么用?Java ITestNGMethod.isBeforeTestConfiguration使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.testng.ITestNGMethod的用法示例。


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

示例1: ifTestFixtureStarted

import org.testng.ITestNGMethod; //导入方法依赖的package包/类
private void ifTestFixtureStarted(final ITestContext context, final ITestNGMethod testMethod) {
    if (testMethod.isBeforeTestConfiguration()) {
        startBefore(getUniqueUuid(context), testMethod);
    }
    if (testMethod.isAfterTestConfiguration()) {
        startAfter(getUniqueUuid(context), testMethod);
    }
}
 
开发者ID:allure-framework,项目名称:allure-java,代码行数:9,代码来源:AllureTestNg.java

示例2: sortMethods

import org.testng.ITestNGMethod; //导入方法依赖的package包/类
private static List<ITestNGMethod> sortMethods(boolean forTests,
    List<ITestNGMethod> allMethods, IAnnotationFinder finder) {
  List<ITestNGMethod> sl = Lists.newArrayList();
  List<ITestNGMethod> pl = Lists.newArrayList();
  ITestNGMethod[] allMethodsArray = allMethods.toArray(new ITestNGMethod[allMethods.size()]);

  // Fix the method inheritance if these are @Configuration methods to make
  // sure base classes are invoked before child classes if 'before' and the
  // other way around if they are 'after'
  if (!forTests && allMethodsArray.length > 0) {
    ITestNGMethod m = allMethodsArray[0];
    boolean before = m.isBeforeClassConfiguration()
        || m.isBeforeMethodConfiguration() || m.isBeforeSuiteConfiguration()
        || m.isBeforeTestConfiguration();
    MethodInheritance.fixMethodInheritance(allMethodsArray, before);
  }

  topologicalSort(allMethodsArray, sl, pl);

  List<ITestNGMethod> result = Lists.newArrayList();
  result.addAll(sl);
  result.addAll(pl);
  return result;
}
 
开发者ID:qmetry,项目名称:qaf,代码行数:25,代码来源:MethodHelper.java

示例3: isSupportedConfigurationFixture

import org.testng.ITestNGMethod; //导入方法依赖的package包/类
@SuppressWarnings("BooleanExpressionComplexity")
private boolean isSupportedConfigurationFixture(final ITestNGMethod testMethod) {
    return testMethod.isBeforeMethodConfiguration() || testMethod.isAfterMethodConfiguration()
            || testMethod.isBeforeTestConfiguration() || testMethod.isAfterTestConfiguration()
            || testMethod.isBeforeClassConfiguration() || testMethod.isAfterClassConfiguration()
            || testMethod.isBeforeSuiteConfiguration() || testMethod.isAfterSuiteConfiguration();
}
 
开发者ID:allure-framework,项目名称:allure-java,代码行数:8,代码来源:AllureTestNg.java


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