Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
106 views
by Contributing Tester (51 points)
Hi Team,

 

Guys I am facing issue to run specific testng.xml file from multiple. As In my project i have TestSuite folder in that i having four testng.xml file and have configured those file in POM.xml file but when i am running the pom file by setting the run configuration then i am getting an error below.

ERROR = SLAgent_SanityTestSuite.xml is not a valid file.

 

Configuration in POM file.

 

 <plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-plugin</artifactId>
     <version>2.19.1</version>
  <configuration>    
     <suiteXmlFiles>      
      <suiteXmlFile>${basedir}/Test Suites</suiteXmlFile>      
             </suiteXmlFiles>
  </configuration>
</plugin>

 

 

Please help me how I can navigate into the Test Suites folder where my all testng.xml are present.

Please log in or register to answer this question.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...