package org.testng.annotations;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

Represents a means to add in custom attributes to @Test annotated tests.
/** * Represents a means to add in custom attributes to @{@link Test} annotated tests. */
@Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @Target({METHOD, TYPE}) public @interface CustomAttribute {
Returns:- The name for the custom attribute
/** * @return - The name for the custom attribute */
String name();
Returns:- The custom attribute values as an array.
/** * @return - The custom attribute values as an array. */
String[] values() default {}; }