How to use Interface IResultMap class of org.testng package

Best Testng code snippet using org.testng.Interface IResultMap

Run Testng automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

copy
1package org.testng;
2
3import com.google.inject.Injector;
4import com.google.inject.Module;
5
6import org.testng.internal.ClassImpl;
7import org.testng.xml.XmlTest;
8
9import java.util.Collection;
10import java.util.Date;
11import java.util.List;
12
13
14/**
15 * This class defines a test context which contains all the information
16 * for a given test run.  An instance of this context is passed to the
17 * test listeners so they can query information about their
18 * environment.
19 *
20 * @author Cedric Beust, Aug 6, 2004
21 */
22public interface ITestContext extends IAttributes {
23
24  /**
25   * The name of this test.
26   */
27  public String getName();
28
29  /**
30   * When this test started running.
31   */
32  public Date getStartDate();
33
34  /**
35   * When this test stopped running.
36   */
37  public Date getEndDate();
38
39  /**
40   * @return A list of all the tests that run successfully.
41   */
42  public IResultMap getPassedTests();
43
44  /**
45   * @return A list of all the tests that were skipped
46   */
47  public IResultMap  getSkippedTests();
48
49  /**
50   * @return A list of all the tests that failed but are being ignored because
51   * annotated with a successPercentage.
52   */
53  public IResultMap  getFailedButWithinSuccessPercentageTests();
54
55  /**
56   * @return A map of all the tests that passed, indexed by
57   * their ITextMethor.
58   *
59   * @see org.testng.ITestNGMethod
60   */
61  public IResultMap getFailedTests();
62
63  /**
64   * @return All the groups that are included for this test run.
65   */
66  public String[] getIncludedGroups();
67
68  /**
69   * @return All the groups that are excluded for this test run.
70   */
71  public String[] getExcludedGroups();
72
73  /**
74   * @return Where the reports will be generated.
75   */
76  public String getOutputDirectory();
77
78  /**
79   * @return The Suite object that was passed to the runner
80   * at start-up.
81   */
82  public ISuite getSuite();
83
84  /**
85   * @return All the test methods that were run.
86   */
87  public ITestNGMethod[] getAllTestMethods();
88
89  /**
90   * @return The host where this test was run, or null if it was run locally.  The
91   * returned string has the form:  host:port
92   */
93  public String getHost();
94
95  /**
96   * @return All the methods that were not included in this test run.
97   */
98  public Collection<ITestNGMethod> getExcludedMethods();
99
100  /**
101   * Retrieves information about the successful configuration method invocations.
102   */
103  public IResultMap getPassedConfigurations();
104
105  /**
106   * Retrieves information about the skipped configuration method invocations.
107   */
108  public IResultMap getSkippedConfigurations();
109
110  /**
111   * Retrieves information about the failed configuration method invocations.
112   */
113  public IResultMap getFailedConfigurations();
114
115  /**
116   * @return the current XmlTest.
117   */
118  public XmlTest getCurrentXmlTest();
119
120  public List<Module> getGuiceModules(Class<? extends Module> cls);
121
122  public Injector getInjector(List<Module> moduleInstances);
123  Injector getInjector(IClass iClass);
124  public void addInjector(List<Module> moduleInstances, Injector injector);
125}
126
Full Screen

Accelerate Your Automation Test Cycles With LambdaTest

Leverage LambdaTestā€™s cloud-based platform to execute your automation tests in parallel and trim down your test execution time significantly. Your first 100 automation testing minutes are on us.

Try LambdaTest

...Most popular Stackoverflow questions on Interface-IResultMap

    No relevant questions found for this class šŸ˜ž

Most used methods in Interface-IResultMap

Run Selenium Automation Tests on LambdaTest Cloud Grid

Trigger Selenium automation tests on a cloud-based Grid of 3000+ real browsers and operating systems.

Test now for Free
LambdaTestX

We use cookies to give you the best experience. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. Learn More in our Cookies policy, Privacy & Terms of service

Allow Cookie
Sarah

I hope you find the best code examples for your project.

If you want to accelerate automated browser testing, try LambdaTest. Your first 100 automation testing minutes are FREE.

Sarah Elson (Product & Growth Lead)