How to get a emailable report using testNG

0 votes
I have created a test case and executed it now I want to get a emailable-report how to do that? Can anyone explain?
Jan 14, 2019 in Selenium by Anjali
• 2,950 points
1,408 views

1 answer to this question.

0 votes
After executing the test file that is your xml file (most probably)

you click on refresh and then

you will find a folder under test-output named as your xml file.

Click on that folder

You will see a file named emailable-report.html

Open it using browser.

You are good to go.
answered Jan 14, 2019 by survi
How to send the emailable-report in email?

I have tried to send email from onExecutionFinish method in IExecutionListener, but getting the error as

nested exception is:

java.io.FileNotFoundException: ......\test-output\emailable-report.html (The system cannot find the file specified)

Tried in AfterClass andAfterSuite methods as well, getting the same error . Can you assist ?
Hey @Sriram, check if your file is located in the correct path.

Related Questions In Selenium

0 votes
2 answers

How to get a page name using Selenium Webdriver (C#)?

String pageTitlte=driver.getTitle(); READ MORE

answered Sep 5, 2020 in Selenium by Sri
• 3,010 points
997 views
+1 vote
2 answers

How to get the title of a webpage using Selenium Java?

Essentially, driver.getTitle(); function can be used to ...READ MORE

answered Dec 17, 2018 in Selenium by Vardhan
• 13,200 points
9,829 views
0 votes
2 answers

How to get the text from a website using selenium?

driver.findElement(By.cssSelector("p")).getText() or  IWebElement element = Browser.GetElementByCssSelector("div.loginbox p"); string text = ...READ MORE

answered Sep 5, 2020 in Selenium by Sri
• 3,010 points
14,968 views
+1 vote
1 answer

How to get the HTML source of a webpage using Selenium in Java?

There is a method called getPageSource() in ...READ MORE

answered Jan 10, 2019 in Selenium by Sneha
17,266 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,520 points
4,940 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,010 points
5,720 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,890 points
3,499 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 2, 2020 in Selenium by Sri
• 3,010 points
4,217 views
0 votes
1 answer

How to pass parameters to a Junit test case from the Ant build tool?

The JUnit task accepts nested system property elements. <junit fork="no"> <sysproperty ...READ MORE

answered Mar 6, 2019 in Selenium by Vaishnavi
• 1,180 points
692 views
0 votes
1 answer

Unable to find a button on the webpage.

I checked the website you are working ...READ MORE

answered Jan 4, 2019 in Selenium by Sidha
102 views