[testng-dev] Parameters for groups?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[testng-dev] Parameters for groups?

Chanda-3
Hi,
   I have a requirement where specific set of testcases need to have same parameters.
For eg:

Group A has 10 testcases and all need the parameter "name" with value "abcd"
Group B has 20 testcases and all need the parameter "name" with value "xyz"


<suite name="Suite1" verbose="1" >
<groups>
<
<parameter name="first-name"  value="abcd"/>
  <test name="Nopackage" >
    <classes>
       <class name="NoPackageTest" />
    </classes>
  </test>
 
  <test name="Regression1">
    <classes>
      <class name="test.sample.ParameterSample"/>
      <class name="test.sample.ParameterTest"/>
    </classes>
  </test>
</groups>


<groups>
<
parameter name="first-name"  value="xyz"/>
  <test name="Nopackage1" >
    <classes>
       <class name="NoPackageTest" />
    </classes>
  </test>
 
  <test name="Regression2">
    <classes>
      <class name="test.sample.ParameterSample"/>
      <class name="test.sample.ParameterTest"/>
    </classes>
  </test>
</groups>
</suite>

Is it possible to have parameters at group level. i do not want to put them in the testcase level.

Thanks,
Chanda

--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-dev?hl=en.