I'm trying to run my tests from the command line by specifying the test suite from the command line. In my pom file, it says "Cannot resolve symbol 'suiteXmlFile' (for ${suiteXmlFile). It works if I specify the name of WebCheckout.xml in the pom file, butI want to be able to run it from the command line like this:
mvn clean test -Dsurefire.suiteXmlFiles=WebCheckout.xml
I've been following this tutorial:
http://www.seleniumeasy.com/maven-tutorials/choose-selected-testng-xml-files-to-execute-using-maven
My pom file is configured as follows:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12.4</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>${suiteXmlFile}</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
Please can someone tell me where I'm going wrong.