Package org.testng

Interface IAttributes

All Known Subinterfaces:
ISuite, ITestContext, ITestResult
All Known Implementing Classes:
SuiteRunner, TestRunner

public interface IAttributes
A trait that is used by all interfaces that lets the user add or remove their own attributes.
  • Method Details

    • getAttribute

      Object getAttribute(String name)
      Parameters:
      name - The name of the attribute to return
      Returns:
      The attribute
    • setAttribute

      void setAttribute(String name, Object value)
      Set a custom attribute.
      Parameters:
      name - The attribute name
      value - The attribute value
    • getAttributeNames

      Set<String> getAttributeNames()
      Returns:
      all the attributes names.
    • removeAttribute

      Object removeAttribute(String name)
      Remove the attribute
      Parameters:
      name - The attribute name
      Returns:
      the attribute value if found, null otherwise