views:

21

answers:

1

I have the following in testng.xml

...
<parameter name="Empl_Name" value="Stephen" />
<test name="Employee Search test" junit="false">
    <parameter name="Valid_Empl_Name" value="${Empl_Name}" />
    <classes> 
          <class name="org.EmployeeClass" />
    </classes> 
</test>

The above is not working. My requirement is that I want to refer the Parameter Valid_Empl_Name with the above mentioned Empl_Name. I want to reuse the Empl_Name parameter value in many of the test cases.

Is there any way to do this ?

A: 

This is currently not supported in TestNG but I'd be open to adding it.

Cedric Beust