Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97762

TestNG console is displaying blank only when running the suite using testng.run() command

$
0
0

I am running a TestNG.xml I have created a maven project for my automation selenium script and added all the required dependencies to pom.xml. If I run the suite defined in the Testng.xml file using TestNG.run() command TestNG test result console is blank.

Please refer the code that I have used

TestNG testng = new TestNG();
List<String> suites = Lists.newArrayList();
suites.add(currdir+"/tempTestNG.xml");//path of xml..
testng.setTestSuites(suites);
testng.run();

Please refer the testNG.xml file

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Suite">
    <parameter name="ExecutionType" value="Regression"/>
    <listeners>
        <listener class-name="config.TestListener"/>
    </listeners>
    <test name="Test">
        <classes>
            <class name="testsuits.VerificationOfWiki">
                <methods>
                    <include name="VerifyMainpagetextonWiki"/>
                    <include name="VerifyRandomArticletextonWiki"/>
                </methods>
            </class>
        </classes>
    </test>
</suite>

Viewing all articles
Browse latest Browse all 97762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>