Package org.testng
Interface IAttributes
-
- All Known Subinterfaces:
ISuite,ITestContext,ITestResult
- All Known Implementing Classes:
Attributes,SuiteRunner,TestResult,TestRunner
public interface IAttributesA trait that is used by all interfaces that lets the user add or remove their own attributes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectgetAttribute(java.lang.String name)java.util.Set<java.lang.String>getAttributeNames()java.lang.ObjectremoveAttribute(java.lang.String name)Remove the attributevoidsetAttribute(java.lang.String name, java.lang.Object value)Set a custom attribute.
-
-
-
Method Detail
-
getAttribute
java.lang.Object getAttribute(java.lang.String name)
- Parameters:
name- The name of the attribute to return- Returns:
- The attribute
-
setAttribute
void setAttribute(java.lang.String name, java.lang.Object value)Set a custom attribute.- Parameters:
name- The attribute namevalue- The attribute value
-
getAttributeNames
java.util.Set<java.lang.String> getAttributeNames()
- Returns:
- all the attributes names.
-
removeAttribute
java.lang.Object removeAttribute(java.lang.String name)
Remove the attribute- Parameters:
name- The attribute name- Returns:
- the attribute value if found, null otherwise
-
-