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

0 like 0 dislike
537 views
by Contributing Tester (12 points)
retagged by
Is this the correct way to define pom.xml file? I am using Maven, TestNG, Selenium and executing tests on Google Chrome, Firefox browser.

<build>

        <plugins>

            <plugin>

                <groupId>org.apache.maven.plugins</groupId>

                <artifactId>maven-surefire-plugin</artifactId>

                <version>2.21.0</version>

                <configuration>

          <suiteXmlFiles>

            <suiteXmlFile>testng.xml</suiteXmlFile>

          </suiteXmlFiles>

                    <systemProperties>

            <property>

              <name>browser</name>

              <value>chrome</value>

            </property>

            <property>

              <name>browser</name>

              <value>firefox</value>

            </property>

          </systemProperties>

                   </configuration>

</plugin>

</plugins>

</build>

1 Answer

0 like 0 dislike
by Expert (748 points)
You have to add dependency also along with groupid or artifact id


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!

...