I tried to run testng.xml, and the results were:
=================================================
Default test
Test runs: 14, Failures: 6, Misses: 0
Default standard
Total test runs: 14, Failures: 6, Misses: 0
=================================================
Now I turned off the TestNG listener without problems and added listNG listner to testng.xml. testng.xml. as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Suite">
<listeners>
<listener class-name="org.uncommons.reportng.HTMLReporter" />
<listener class-name="org.uncommons.reportng.JUnitXMLReporter" />
</listeners>
<test name="Test">
<classes>
<class name=".URL_Daily" />
</classes>
</test>
</suite>
Following the steps, I added dependencies velocity, guiceand reportngto maven pom.xml.
After running testuite testng.xml, the following folders were created (marked with a red field).

When opened, the index.htmlresults look like this:

, ReportNG, . -, .
, index.html , . - , ?
:
: Windows 7
Guice.jar: guice-4.1.0
ReportNG: reportng-1.1.4
: velocity-dep-1.4
TestNG: testng-6.11
Selenium: selenium-java-3.5.3
Eclipse: eclipse oxygen
:
public class MwSites {
WebDriver driver;
@BeforeTest
public void setup ()
{
System.setProperty("webdriver.chrome.driver", "F:\\Automation\\Drivers\\Selenium Drivers\\chromedriver_win32\\chromedriver.exe");
ChromeOptions options = new ChromeOptions();
options.addArguments("test-type");
options.addArguments("start-maximized");
options.addArguments("--js-flags=--expose-gc");
options.addArguments("--enable-precise-memory-info");
options.addArguments("--disable-popup-blocking");
options.addArguments("--disable-default-apps");
options.addArguments("test-type=browser");
options.addArguments("disable-infobars");
driver = new ChromeDriver(options);
driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
}
@AfterTest
public void Quit () throws InterruptedException
{
driver.quit();
}
@Test(priority = 0)
public void MI_Demo () throws InterruptedException
{
driver.navigate().to("http://demo.movingwalls.com/mi/#/login");
Assert.assertEquals("Login", driver.getTitle());
if (driver.getTitle()=="Login"){
System.out.println("Failed to access MI in demo environment");
}
else{
System.out.println("MI is successfully accessed in demo environment");
}
}