/external/testng/src/main/java/org/testng/ |
D | TestListenerAdapter.java | 30 …private List<ITestResult> m_passedTests = Collections.synchronizedList(Lists.<ITestResult>newArray… 31 …private List<ITestResult> m_failedTests = Collections.synchronizedList(Lists.<ITestResult>newArray… 32 …private List<ITestResult> m_skippedTests = Collections.synchronizedList(Lists.<ITestResult>newArra… 33 …private List<ITestResult> m_failedButWSPerTests = Collections.synchronizedList(Lists.<ITestResult>… 35 …private List<ITestResult> m_failedConfs= Collections.synchronizedList(Lists.<ITestResult>newArrayL… 36 …private List<ITestResult> m_skippedConfs= Collections.synchronizedList(Lists.<ITestResult>newArray… 37 …private List<ITestResult> m_passedConfs= Collections.synchronizedList(Lists.<ITestResult>newArrayL… 40 public void onTestSuccess(ITestResult tr) { in onTestSuccess() 46 public void onTestFailure(ITestResult tr) { in onTestFailure() 52 public void onTestSkipped(ITestResult tr) { in onTestSkipped() [all …]
|
D | ITestListener.java | 19 void onTestStart(ITestResult result); in onTestStart() 27 public void onTestSuccess(ITestResult result); in onTestSuccess() 35 public void onTestFailure(ITestResult result); in onTestFailure() 43 public void onTestSkipped(ITestResult result); in onTestSkipped() 53 public void onTestFailedButWithinSuccessPercentage(ITestResult result); in onTestFailedButWithinSuccessPercentage()
|
/external/testng/src/main/java/org/testng/reporters/ |
D | JUnitXMLReporter.java | 6 import org.testng.ITestResult; 53 private List<ITestResult> m_allTests = 54 Collections.synchronizedList(Lists.<ITestResult>newArrayList()); 55 private List<ITestResult> m_configIssues = 56 Collections.synchronizedList(Lists.<ITestResult>newArrayList()); 61 public void onTestStart(ITestResult result) { in onTestStart() 65 public void beforeConfiguration(ITestResult tr) { in beforeConfiguration() 72 public void onTestSuccess(ITestResult tr) { in onTestSuccess() 78 public void onTestFailedButWithinSuccessPercentage(ITestResult tr) { in onTestFailedButWithinSuccessPercentage() 87 public void onTestFailure(ITestResult tr) { in onTestFailure() [all …]
|
D | JUnitReportReporter.java | 8 import org.testng.ITestResult; 36 Map<Class<?>, Set<ITestResult>> results = Maps.newHashMap(); in generateReport() 37 Map<Class<?>, Set<ITestResult>> failedConfigurations = Maps.newHashMap(); in generateReport() 38 ListMultiMap<Object, ITestResult> befores = Maps.newListMultiMap(); in generateReport() 39 ListMultiMap<Object, ITestResult> afters = Maps.newListMultiMap(); in generateReport() 48 for (ITestResult tr : tc.getPassedConfigurations().getAllResults()) { in generateReport() 84 for (Map.Entry<Class<?>, Set<ITestResult>> entry : results.entrySet()) { in generateReport() 97 for (ITestResult tr: entry.getValue()) { in generateReport() 100 boolean isSuccess = tr.getStatus() == ITestResult.SUCCESS; in generateReport() 189 private long getNextConfiguration(ListMultiMap<Object, ITestResult> configurations, in getNextConfiguration() [all …]
|
D | XMLSuiteResultWriter.java | 6 import org.testng.ITestResult; 65 Set<ITestResult> testResults = Sets.newHashSet(); in writeAllToBuffer() 79 private void addAllTestResults(Set<ITestResult> testResults, IResultMap resultMap) { in addAllTestResults() 82 List<ITestResult> allResults = new ArrayList<>(); in addAllTestResults() 85 Collections.sort(new ArrayList(allResults), new Comparator<ITestResult>() { in addAllTestResults() 87 public int compare(ITestResult o1, ITestResult o2) { in addAllTestResults() 112 private void addTestResults(XMLStringBuffer xmlBuffer, Set<ITestResult> testResults) { in addTestResults() 113 Map<String, List<ITestResult>> testsGroupedByClass = buildTestClassGroups(testResults); in addTestResults() 114 for (Map.Entry<String, List<ITestResult>> result : testsGroupedByClass.entrySet()) { in addTestResults() 127 List<ITestResult> sortedResults = result.getValue(); in addTestResults() [all …]
|
D | TestHTMLReporter.java | 5 import org.testng.ITestResult; 25 private static final Comparator<ITestResult> NAME_COMPARATOR= new NameComparator(); 26 …private static final Comparator<ITestResult> CONFIGURATION_COMPARATOR= new ConfigurationComparator… 59 Collection<ITestResult> tests, String cssClass, Comparator<ITestResult> comparator) in generateTable() 71 Collections.sort((List<ITestResult>) tests, comparator); in generateTable() 78 for (ITestResult tr : tests) { in generateTable() 250 Collection<ITestResult> failedConfs, in generateLog() 251 Collection<ITestResult> skippedConfs, in generateLog() 252 Collection<ITestResult> passedTests, in generateLog() 253 Collection<ITestResult> failedTests, in generateLog() [all …]
|
D | TextReporter.java | 7 import org.testng.ITestResult; 36 private ITestNGMethod[] resultsToMethods(List<ITestResult> results) { in resultsToMethods() 39 for (ITestResult tr : results) { in resultsToMethods() 51 ITestResult tr = (ITestResult) o; in logResults() 70 ITestResult tr = (ITestResult) o; in logResults() 81 ITestResult tr = (ITestResult) o; in logResults() 86 ITestResult tr = (ITestResult) o; in logResults() 99 ITestResult tr = (ITestResult) o; in logResults() 124 private void logResult(String status, ITestResult tr, String stackTrace) { in logResult()
|
D | VerboseReporter.java | 7 import org.testng.ITestResult; 33 SUCCESS(ITestResult.SUCCESS), FAILURE(ITestResult.FAILURE), SKIP(ITestResult.SKIP), 34 … SUCCESS_PERCENTAGE_FAILURE(ITestResult.SUCCESS_PERCENTAGE_FAILURE), STARTED(ITestResult.STARTED); 59 public void beforeConfiguration(ITestResult tr) { in beforeConfiguration() 65 public void onConfigurationFailure(ITestResult tr) { in onConfigurationFailure() 71 public void onConfigurationSkip(ITestResult tr) { in onConfigurationSkip() 77 public void onConfigurationSuccess(ITestResult tr) { in onConfigurationSuccess() 83 public void onTestStart(ITestResult tr) { in onTestStart() 88 public void onTestFailure(ITestResult tr) { in onTestFailure() 94 public void onTestFailedButWithinSuccessPercentage(ITestResult tr) { in onTestFailedButWithinSuccessPercentage() [all …]
|
D | EmailableReporter2.java | 19 import org.testng.ITestResult; 275 List<ITestResult> results = methodResult.getResults(); in writeScenarioSummary() 279 ITestResult firstResult = results.iterator().next(); in writeScenarioSummary() 372 List<ITestResult> results = methodResult.getResults(); in writeScenarioDetails() 380 for (ITestResult result : results) { in writeScenarioDetails() 394 ITestResult result) { in writeScenario() 454 writer.print((result.getStatus() == ITestResult.SUCCESS ? "Expected Exception" in writeScenario() 589 … protected static final Comparator<ITestResult> RESULT_COMPARATOR = new Comparator<ITestResult>() { 591 public int compare(ITestResult o1, ITestResult o2) { 618 Set<ITestResult> failedConfigurations = context in TestResult() [all …]
|
/external/testng/src/test/java/test/listeners/ |
D | ResultListener.java | 4 import org.testng.ITestResult; 12 public void onTestStart(ITestResult result) { in onTestStart() 18 public void beforeConfiguration(ITestResult tr) { in beforeConfiguration() 22 public void onTestSuccess(ITestResult result) { in onTestSuccess() 27 public void onTestFailure(ITestResult result) { in onTestFailure() 33 public void onTestSkipped(ITestResult result) { in onTestSkipped() 39 public void onTestFailedButWithinSuccessPercentage(ITestResult result) { in onTestFailedButWithinSuccessPercentage() 57 public void onConfigurationSuccess(ITestResult itr) { in onConfigurationSuccess() 63 public void onConfigurationFailure(ITestResult itr) { in onConfigurationFailure() 69 public void onConfigurationSkip(ITestResult itr) { in onConfigurationSkip()
|
D | SuiteListener2.java | 25 public void beforeInvocation(IInvokedMethod method, ITestResult testResult) { in beforeInvocation() 30 public void afterInvocation(IInvokedMethod method, ITestResult testResult) { in afterInvocation() 55 public void onTestStart(ITestResult result) { in onTestStart() 60 public void onTestSuccess(ITestResult result) { in onTestSuccess() 65 public void onTestFailure(ITestResult result) { in onTestFailure() 70 public void onTestSkipped(ITestResult result) { in onTestSkipped() 75 public void onTestFailedButWithinSuccessPercentage(ITestResult result) { in onTestFailedButWithinSuccessPercentage()
|
D | BaseListener.java | 5 import org.testng.ITestResult; 10 public void onTestStart(ITestResult result) { in onTestStart() 15 public void onTestSuccess(ITestResult result) { in onTestSuccess() 19 public void onTestFailure(ITestResult result) { in onTestFailure() 23 public void onTestSkipped(ITestResult result) { in onTestSkipped() 27 public void onTestFailedButWithinSuccessPercentage(ITestResult result) { in onTestFailedButWithinSuccessPercentage()
|
D | ResultContextListener.java | 5 import org.testng.ITestResult; 11 public void onTestStart(ITestResult result) { in onTestStart() 18 public void onTestSuccess(ITestResult result) { in onTestSuccess() 21 public void onTestFailure(ITestResult result) { in onTestFailure() 24 public void onTestSkipped(ITestResult result) { in onTestSkipped() 27 public void onTestFailedButWithinSuccessPercentage(ITestResult result) { in onTestFailedButWithinSuccessPercentage()
|
/external/testng/src/test/java/test/ |
D | BaseTest.java | 21 import org.testng.ITestResult; 101 protected Map<String, List<ITestResult>> getTests(Map<Long, Map> map) { in getTests() 102 Map<String, List<ITestResult>> result= map.get(getId()); in getTests() 119 public Map<String, List<ITestResult>> getFailedTests() { in getFailedTests() 123 public Map<String, List<ITestResult>> getFailedButWithinSuccessPercentageTests() { in getFailedButWithinSuccessPercentageTests() 127 public Map<String, List<ITestResult>> getPassedTests() { in getPassedTests() 131 public Map<String, List<ITestResult>> getSkippedTests() { in getSkippedTests() 135 public Map<String, List<ITestResult>> getFailedConfigs() { in getFailedConfigs() 139 public Map<String, List<ITestResult>> getPassedConfigs() { in getPassedConfigs() 143 public Map<String, List<ITestResult>> getSkippedConfigs() { in getSkippedConfigs() [all …]
|
/external/testng/src/main/java/org/testng/internal/ |
D | Invoker.java | 26 import org.testng.ITestResult; 153 ITestResult testMethodResult) in invokeConfigurations() 168 ITestResult testResult= new TestResult(testClass, in invokeConfigurations() 250 ITestResult testResult, in handleConfigurationSkip() 256 testResult.setStatus(ITestResult.SKIP); in handleConfigurationSkip() 287 ITestResult testResult, in handleConfigurationFailure() 480 ITestResult testResult) in invokeConfigurationMethod() 541 private void throwConfigurationFailure(ITestResult testResult, Throwable ex) in throwConfigurationFailure() 543 testResult.setStatus(ITestResult.FAILURE);; in throwConfigurationFailure() 548 ITestResult testResult) in runInvokedMethodListeners() [all …]
|
D | ITestResultNotifier.java | 9 import org.testng.ITestResult; 21 Set<ITestResult> getPassedTests(ITestNGMethod tm); in getPassedTests() 23 Set<ITestResult> getFailedTests(ITestNGMethod tm); in getFailedTests() 25 Set<ITestResult> getSkippedTests(ITestNGMethod tm); in getSkippedTests() 27 void addPassedTest(ITestNGMethod tm, ITestResult tr); in addPassedTest() 29 void addSkippedTest(ITestNGMethod tm, ITestResult tr); in addSkippedTest() 31 void addFailedTest(ITestNGMethod tm, ITestResult tr); in addFailedTest() 33 void addFailedButWithinSuccessPercentageTest(ITestNGMethod tm, ITestResult tr); in addFailedButWithinSuccessPercentageTest()
|
D | ResultMap.java | 5 import org.testng.ITestResult; 20 private Map<ITestResult, ITestNGMethod> m_map = new ConcurrentHashMap<>(); 23 public void addResult(ITestResult result, ITestNGMethod method) { in addResult() 28 public Set<ITestResult> getResults(ITestNGMethod method) { in getResults() 29 Set<ITestResult> result = new HashSet<>(); in getResults() 31 for (Map.Entry<ITestResult, ITestNGMethod> entry : m_map.entrySet()) { in getResults() 42 for (Entry<ITestResult, ITestNGMethod> entry : m_map.entrySet()) { in removeResult() 51 public void removeResult(ITestResult r) { in removeResult() 56 public Set<ITestResult> getAllResults() { in getAllResults()
|
/external/testng/src/main/java/org/testng/reporters/jq/ |
D | ResultsByClass.java | 3 import org.testng.ITestResult; 12 public static final Comparator<ITestResult> METHOD_NAME_COMPARATOR = 13 new Comparator<ITestResult>() { 16 public int compare(ITestResult arg0, ITestResult arg1) { 23 private ListMultiMap<Class<?>, ITestResult> m_results = Maps.newListMultiMap(); 25 public void addResult(Class<?> c, ITestResult tr) { in addResult() 29 public List<ITestResult> getResults(Class<?> c) { in getResults() 30 List<ITestResult> result = m_results.get(c); in getResults()
|
D | Model.java | 7 import org.testng.ITestResult; 21 private ListMultiMap<ISuite, ITestResult> m_model = Maps.newListMultiMap(); 24 private Map<ITestResult, String> m_testResultMap = Maps.newHashMap(); 28 private List<ITestResult> m_allFailedResults = Lists.newArrayList(); 46 List<ITestResult> passed = Lists.newArrayList(); in init() 47 List<ITestResult> failed = Lists.newArrayList(); in init() 48 List<ITestResult> skipped = Lists.newArrayList(); in init() 61 for (ITestResult tr : m.getAllResults()) { in init() 73 for (ITestResult tr : passed) { in init() 83 for (ITestResult tr : skipped) { in init() [all …]
|
/external/testng/src/main/java/org/testng/remote/strprotocol/ |
D | RemoteTestListener.java | 5 import org.testng.ITestResult; 39 public void onTestStart(ITestResult testResult) { in onTestStart() 53 public void beforeConfiguration(ITestResult tr) { in beforeConfiguration() 57 public void onTestFailedButWithinSuccessPercentage(ITestResult testResult) { in onTestFailedButWithinSuccessPercentage() 67 public void onTestFailure(ITestResult testResult) { in onTestFailure() 77 public void onTestSkipped(ITestResult testResult) { in onTestSkipped() 87 public void onTestSuccess(ITestResult testResult) { in onTestSuccess() 100 public void onConfigurationFailure(ITestResult itr) { in onConfigurationFailure() 109 public void onConfigurationSkip(ITestResult itr) { in onConfigurationSkip() 117 public void onConfigurationSuccess(ITestResult itr) { in onConfigurationSuccess()
|
/external/testng/src/test/java/test/inject/ |
D | InjectBeforeAndAfterMethodsWithTestResultSampleTest.java | 4 import org.testng.ITestResult; 15 private ITestResult m_testResult; 38 public void before(Method m, ITestResult r) { in before() 44 public void after(Method m, ITestResult r) { in after() 47 if (("pass".equals(name) && r.getStatus() == ITestResult.SUCCESS) in after() 48 || ("fail".equals(name) && r.getStatus() == ITestResult.FAILURE) in after() 49 || ("skip".equals(name) && r.getStatus() == ITestResult.SKIP)) { in after()
|
D | InjectAfterMethodWithTestResultSampleTest.java | 3 import org.testng.ITestResult; 34 public void before(Method m, ITestResult r) { in before() 39 public void after(Method m, ITestResult r) { in after() 41 if (("pass".equals(name) && r.getStatus() == ITestResult.SUCCESS) in after() 42 || ("fail".equals(name) && r.getStatus() == ITestResult.FAILURE) in after() 43 || ("skip".equals(name) && r.getStatus() == ITestResult.SKIP)) { in after()
|
/external/testng/src/test/java/org/testng/internal/invokers/ |
D | InvokedMethodListenerSubtypeTest.java | 8 import org.testng.ITestResult; 36 public void beforeInvocation(IInvokedMethod method, ITestResult testResult) { in beforeInvocation() 39 public void afterInvocation(IInvokedMethod method, ITestResult testResult) { in afterInvocation() 45 public void beforeInvocation(IInvokedMethod method, ITestResult testResult, in beforeInvocation() 49 public void afterInvocation(IInvokedMethod method, ITestResult testResult, in afterInvocation() 53 public void beforeInvocation(IInvokedMethod method, ITestResult testResult) { in beforeInvocation() 56 public void afterInvocation(IInvokedMethod method, ITestResult testResult) { in afterInvocation()
|
/external/testng/src/test/java/test/verify/ |
D | VerifyTestListener.java | 5 import org.testng.ITestResult; 20 public void onTestFailedButWithinSuccessPercentage(ITestResult result) { in onTestFailedButWithinSuccessPercentage() 24 public void onTestFailure(ITestResult result) { in onTestFailure() 28 public void onTestSkipped(ITestResult result) { in onTestSkipped() 32 public void onTestStart(ITestResult result) { in onTestStart() 36 public void onTestSuccess(ITestResult result) { in onTestSuccess()
|
/external/testng/src/test/java/test/tmp/ |
D | AnnotationTransformer.java | 6 import org.testng.ITestResult; 35 public void onTestFailedButWithinSuccessPercentage(ITestResult result) { in onTestFailedButWithinSuccessPercentage() 41 public void onTestFailure(ITestResult result) { in onTestFailure() 47 public void onTestSkipped(ITestResult result) { in onTestSkipped() 53 public void onTestStart(ITestResult result) { in onTestStart() 59 public void onTestSuccess(ITestResult result) { in onTestSuccess()
|