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 Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) removeAttribute
(String name) Remove the attributevoid
setAttribute
(String name, Object value) Set a custom attribute.
-
Method Details
-
getAttribute
- Parameters:
name
- The name of the attribute to return- Returns:
- The attribute
-
setAttribute
Set a custom attribute.- Parameters:
name
- The attribute namevalue
- The attribute value
-
getAttributeNames
- Returns:
- all the attributes names.
-
removeAttribute
Remove the attribute- Parameters:
name
- The attribute name- Returns:
- the attribute value if found, null otherwise
-