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,940 points

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: ......\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
1 answer

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

I believe the below thing works: driver.Title; READ MORE

answered Sep 14, 2018 in Selenium by Martin
• 4,330 points
+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
0 votes
1 answer

How to get the text from a website using selenium?

hey, you can use get.text() method to ...READ MORE

answered Dec 31, 2018 in Selenium by Sudhanshu
0 votes
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
0 votes
1 answer

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,510 points
0 votes
1 answer
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
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,890 points
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
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