| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final boolean | |
| private static final Logger | |
| private final List | |
| private final List | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private static XmlSuite | |
| private void | |
| private XmlSuite | |
| public List | |
| public List | |
| public List | |
| public boolean | Returns: boolean if ignoreMissedTestNames disabled, then return true if no missed test names in suite, otherwise throw TestNGException; if ignoreMissedTestNames enabled, then return true if any test names exist in suite, otehrwise (all given test names are missed) throw TestNGException.Do validation for testNames and notify users if any testNames are missed in suite. |
| cloneSuites | back to summary |
|---|---|
| private final List<XmlSuite> cloneSuites | |
| ignoreMissedTestNames | back to summary |
|---|---|
| private final boolean ignoreMissedTestNames | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| matchedTestNames | back to summary |
|---|---|
| private final List<String> matchedTestNames | |
| matchedTests | back to summary |
|---|---|
| private final List<XmlTest> matchedTests | |
| testNames | back to summary |
|---|---|
| private final List<String> testNames | |
| TestNamesMatcher | back to summary |
|---|---|
| public TestNamesMatcher(XmlSuite xmlSuite, List<String> testNames) | |
| TestNamesMatcher | back to summary |
|---|---|
| public TestNamesMatcher(XmlSuite xmlSuite, List<String> testNames, boolean ignoreMissedTestNames) | |
| addIfNotNull | back to summary |
|---|---|
| private void addIfNotNull(XmlSuite xmlSuite) | |
| cleanClone | back to summary |
|---|---|
| private static XmlSuite cleanClone(XmlSuite xmlSuite, List<XmlTest> tests) | |
| cloneIfContainsTestsWithNamesMatchingAny | back to summary |
|---|---|
| private void cloneIfContainsTestsWithNamesMatchingAny(XmlSuite xmlSuite, List<String> testNames) Recursive search the given testNames from the current | |
| cloneIfSuiteContainTestsWithNamesMatchingAny | back to summary |
|---|---|
| private XmlSuite cloneIfSuiteContainTestsWithNamesMatchingAny(XmlSuite suite) | |
| getMatchedTests | back to summary |
|---|---|
| public List | |
| getMissedTestNames | back to summary |
|---|---|
| public List | |
| getSuitesMatchingTestNames | back to summary |
|---|---|
| public List | |
| validateMissMatchedTestNames | back to summary |
|---|---|
| public boolean validateMissMatchedTestNames() Do validation for testNames and notify users if any testNames are missed in suite. This method is also used to decide how to run test suite when test names are given. In legacy logic, if test names are given and exist in suite, then run them; if any of them do not exist in suite, then throw exception and exit. After ignoreMissedTestNames is introduced, if ignoreMissedTestNames is enabled, then any of the given test names exist in suite will be run, and print warning message to tell those test names do not exist in suite.
| |