Top Description Methods
org.testng

public Interface IAttributes

Known Direct Subinterfaces
org.testng.ISuite, org.testng.ITestContext, org.testng.ITestResult
Known Direct Implementers
org.testng.internal.Attributes
Imports
java.util.Set

A trait that is used by all interfaces that lets the user add or remove their own attributes.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

The attribute
getAttribute
(String
The name of the attribute to return
name
)

public Set<String>

Returns:

all the attributes names.
getAttributeNames
()

public Object

Returns:

the attribute value if found, null otherwise
removeAttribute
(String
The attribute name
name
)

Remove the attribute

public void
setAttribute(String
The attribute name
name
,
Object
The attribute value
value
)

Set a custom attribute.

Method Detail

getAttributeback to summary
public Object getAttribute(String name)
Parameters
name:String

The name of the attribute to return

Returns:Object

The attribute

getAttributeNamesback to summary
public Set<String> getAttributeNames()
Returns:Set<String>

all the attributes names.

removeAttributeback to summary
public Object removeAttribute(String name)

Remove the attribute

Parameters
name:String

The attribute name

Returns:Object

the attribute value if found, null otherwise

setAttributeback to summary
public void setAttribute(String name, Object value)

Set a custom attribute.

Parameters
name:String

The attribute name

value:Object

The attribute value