All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testng.annotations.CustomAttribute Maven / Gradle / Ivy

There is a newer version: 7.10.1
Show newest version
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 @{@link Test} annotated tests.
 */
@Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
@Target({METHOD, TYPE})
public @interface CustomAttribute {

  /**
   * @return - The name for the custom attribute
   */
  String name();

  /**
   * @return - The custom attribute values as an array.
   */
  String[] values() default {};
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy