org.testng.internal.annotations
Class ParametersAnnotation

java.lang.Object
  extended by org.testng.internal.annotations.BaseAnnotation
      extended by org.testng.internal.annotations.ParametersAnnotation
All Implemented Interfaces:
IAnnotation, IParameters

public class ParametersAnnotation
extends BaseAnnotation
implements IParameters

An implementation of IParameters Created on Dec 20, 2005

Author:
Cedric Beust

Constructor Summary
ParametersAnnotation()
           
 
Method Summary
 java.lang.String[] getValue()
          The list of variables used to fill the parameters of this method.
 void setValue(java.lang.String[] value)
           
 
Methods inherited from class org.testng.internal.annotations.BaseAnnotation
getConstructor, getMethod, getTestClass, setConstructor, setMethod, setTestClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParametersAnnotation

public ParametersAnnotation()
Method Detail

getValue

public java.lang.String[] getValue()
Description copied from interface: IParameters
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" />

Specified by:
getValue in interface IParameters

setValue

public void setValue(java.lang.String[] value)


Copyright © 2010. All Rights Reserved.