While my pom.xml file through test my BUILD is getting SUCCESSFUL but my testng.xml is not .

enter image description here

I tried with executing 13 classes and with single class for both the time it gives the same result.
I don’t know why it is copying 0 resource.

Please check my pom.xml below:

< xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>e-Pragati_App_Store</groupId>
  <artifactId>e-Pragati_App_Store</artifactId>
  <version>0.0.1-SNAPSHOT</version>
<dependencies>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.12</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.testng</groupId>
        <artifactId>testng</artifactId>
        <version>6.14.3</version>
    </dependency>
    <dependency>
        <groupId>org.seleniumhq.</groupId>
        <artifactId>-java</artifactId>
        <version>3.12.0</version>
    </dependency>
    <dependency>
        <groupId>org.seleniumhq.</groupId>
        <artifactId>-server</artifactId>
        <version>3.12.0</version>
    </dependency>
    <dependency>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.21.0</version>
    </dependency>
    <dependency>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.7.0</version>
    </dependency>
  </dependencies>
</project>

Please follow my testng.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Suite">
    <test name="Usecase1">
        <classes>
            <class name="APp_Store.AddNewAppErrorMessages"/>
        </classes>
    </test>

</suite>



Source link https://sqa.stackexchange.com/questions/33896/testng-xml-is-not-executing-when-we--pom-xml-for-maven-project-selenium

LEAVE A REPLY

Please enter your comment!
Please enter your name here