lundi 17 février 2020

How to parameterise method name in TestNG xml file?

Below is the testng.xml code. here I have test name Test1 and I want to include all the scenarios starting with regression tag (tag is present in cucumber feature file).

I want to parameterise "regression.*" value and want to pass as an argument at run time (Runas testng).

<

test name="Test1">
  <groups>
    <run>
      <include name="regression.*"/>
    </run>
  </groups>

Can somebody help me with this scenario.

Thanks in advance.....

Aucun commentaire:

Enregistrer un commentaire