Aswathy Nair
2016-06-11 16:23:31 UTC
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
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
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users+***@googlegroups.com.
To post to this group, send email to testng-***@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users+***@googlegroups.com.
To post to this group, send email to testng-***@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.