Currently we are using maven profiling to run testng
test suites. Below is my profile
<profile>
<id>BAT_All</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
<suiteXmlFiles>
<suiteXmlFile>src/main/resources/testplans/BAT_All.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
</build>
</profile>
In this case we are using below command
to run all the test cases in BAT_All.xml
file and working as expected
mvn clean install -PBAT_All
Now I need to run single test case using test case name. I tried with below command but its not working.
mvn clean install -Dtest=verify_Home_Page_Title
Is it possible to run single test case with maven profiling