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

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

There is a newer version: 7.10.1
Show newest version
package org.testng.annotations;

import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

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

/**
 * Describes how to pass parameters to a @Test method.
 *
 * @author Cedric Beust
 */
@Retention(RUNTIME)
@Target({METHOD, CONSTRUCTOR, TYPE })
public @interface Parameters {
  /**
   * The list of variables used to fill the parameters of this method.
   * These variables must be defined in your testng.xml file.
   * For example
   * 

* * @Parameters({ "xmlPath" })
* @Test
* public void verifyXmlFile(String path) { ... }
*
*

and in testng.xml:

* * <parameter name="xmlPath" value="account.xml" />
*
*/ public String[] value() default {}; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy