SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
345 stars 195 forks source link

Link of screenshot is not displayed in testng emailable-report.html #7226

Closed lukeis closed 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 7226

In the custom listener class onTestFailure() I have statements to create screenshot
of failure and copy it to a folder. 
I am using below code in the onTestFailure
 Reporter.setEscapeHtml(false); // This method is no longer supported
 Reporter.log("Saved <a href=../testresult/screenshots/" + destFile + ">Screenshot</a>");

Now the emailable-report.html is displaying 
Saved <a href=../testresult/screenshots/" + destFile + ">Screenshot</a>"

instead of Saved Screenshot, with Screenshot being the link. 

Browsers:- All 
Selenium versions:- 2.39 , 2.41 
Testng version :-6.5.2

The same code is displaying the link with testng6.5.2 & selenium2.31 version.

Reported by arige.anil on 2014-04-17 17:35:25

lukeis commented 8 years ago
This is a problem with TestNG not Selenium.  Try asking on selenium-users@googlegroups.com.

Note, this issue tracker is for reporting bugs with Selenium, not support requests.

Reported by jmleyba on 2014-04-18 06:33:50

lukeis commented 8 years ago
The same testng version is being used in both the cases, where only selenium jars are
different. 
Case1:-  Selenium jars of 2.31 version and TestNg-6.5.2 version. 
Case2:- Selenium jars of 2.41 version and TestNg-6.5.2 version. 

Case1 is working fine, Case2 is not working...

Reported by anil.arige@xtime.com on 2014-04-18 06:48:14

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 18:22:21