Hi,
I have defined a parameter in testng.xml. I want to override the value through maven command line.
<parameter name="environment.code" value="QA"/>
I tried by setting systemPropertyVariable in pom.xml
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<environment.code>QA</environment.code>
</systemPropertyVariables>
<suiteXmlFiles>
<suiteXmlFile>testng.xml</suiteXmlFile>
</suiteXmlFiles>
But when trying to run through command line maven, value is not getting overridden.
Can someone pls guide me in acheiving the same.
Thanks,
Aswathy Nair