本文整理了Java中org.testng.TestNG.runSuitesSequentially()
方法的一些代码示例,展示了TestNG.runSuitesSequentially()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TestNG.runSuitesSequentially()
方法的具体详情如下:
包路径:org.testng.TestNG
类名称:TestNG
方法名:runSuitesSequentially
[英]Recursively runs suites. Runs the children suites before running the parent suite. This is done so that the results for parent suite can reflect the combined results of the children suites.
[中]递归地运行suites。在运行父套件之前运行子套件。这样做是为了使父套件的结果能够反映子套件的组合结果。
代码示例来源:origin: org.testng/testng
/**
* Recursively runs suites. Runs the children suites before running the parent
* suite. This is done so that the results for parent suite can reflect the
* combined results of the children suites.
*
* @param xmlSuite XML Suite to be executed
* @param suiteRunnerMap Maps {@code XmlSuite}s to respective {@code ISuite}
* @param verbose verbose level
* @param defaultSuiteName default suite name
*/
private void runSuitesSequentially(XmlSuite xmlSuite,
SuiteRunnerMap suiteRunnerMap, int verbose, String defaultSuiteName) {
for (XmlSuite childSuite : xmlSuite.getChildSuites()) {
runSuitesSequentially(childSuite, suiteRunnerMap, verbose, defaultSuiteName);
}
SuiteRunnerWorker srw = new SuiteRunnerWorker(suiteRunnerMap.get(xmlSuite), suiteRunnerMap,
verbose, defaultSuiteName);
srw.run();
}
代码示例来源:origin: cbeust/testng
/**
* Recursively runs suites. Runs the children suites before running the parent suite. This is done
* so that the results for parent suite can reflect the combined results of the children suites.
*
* @param xmlSuite XML Suite to be executed
* @param suiteRunnerMap Maps {@code XmlSuite}s to respective {@code ISuite}
* @param verbose verbose level
* @param defaultSuiteName default suite name
*/
private void runSuitesSequentially(
XmlSuite xmlSuite, SuiteRunnerMap suiteRunnerMap, int verbose, String defaultSuiteName) {
for (XmlSuite childSuite : xmlSuite.getChildSuites()) {
runSuitesSequentially(childSuite, suiteRunnerMap, verbose, defaultSuiteName);
}
SuiteRunnerWorker srw =
new SuiteRunnerWorker(
suiteRunnerMap.get(xmlSuite), suiteRunnerMap, verbose, defaultSuiteName);
srw.run();
}
代码示例来源:origin: org.testng/testng
runSuitesSequentially(xmlSuite, suiteRunnerMap, getVerbose(xmlSuite),
getDefaultSuiteName());
代码示例来源:origin: cbeust/testng
runSuitesSequentially(
xmlSuite, suiteRunnerMap, getVerbose(xmlSuite), getDefaultSuiteName());
内容来源于网络,如有侵权,请联系作者删除!