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
2,954 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 6, 2020 in Selenium by Sri
• 3,190 points
2,612 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,150 points
15,914 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 6, 2020 in Selenium by Sri
• 3,190 points
25,674 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 11, 2019 in Selenium by Sneha
29,463 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,500 points
13,649 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,190 points
9,131 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,910 points
7,209 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 3, 2020 in Selenium by Sri
• 3,190 points
7,865 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 7, 2019 in Selenium by Vaishnavi
• 1,180 points
1,736 views
0 votes
1 answer

Unable to find a button on the webpage.

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

answered Jan 5, 2019 in Selenium by Sidha
633 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP