Package org.testng
Class ReporterConfig
- java.lang.Object
-
- org.testng.ReporterConfig
-
public class ReporterConfig extends java.lang.ObjectStores the information regarding the configuration of a pluggable report listener. Used also in conjunction with the <reporter> sub-element of the Ant task NOTE: this class needs to be public. It's used by TestNG Ant task
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReporterConfig.Property
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringm_classNameThe class name of the reporter listenerprivate java.util.List<ReporterConfig.Property>m_propertiesThe properties of the reporter listener
-
Constructor Summary
Constructors Constructor Description ReporterConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperty(ReporterConfig.Property property)static ReporterConfigdeserialize(java.lang.String inputString)java.lang.StringgetClassName()java.util.List<ReporterConfig.Property>getProperties()IReporternewReporterInstance()Creates a reporter based on the current configurationjava.lang.Stringserialize()voidsetClassName(java.lang.String className)java.lang.StringtoString()
-
-
-
Field Detail
-
m_className
private java.lang.String m_className
The class name of the reporter listener
-
m_properties
private final java.util.List<ReporterConfig.Property> m_properties
The properties of the reporter listener
-
-
Method Detail
-
addProperty
public void addProperty(ReporterConfig.Property property)
-
getProperties
public java.util.List<ReporterConfig.Property> getProperties()
-
getClassName
public java.lang.String getClassName()
-
setClassName
public void setClassName(java.lang.String className)
-
serialize
public java.lang.String serialize()
-
deserialize
public static ReporterConfig deserialize(java.lang.String inputString)
-
newReporterInstance
public IReporter newReporterInstance()
Creates a reporter based on the current configuration
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-