Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Link tag in extent report not closed #1025

Closed
dipesh17 opened this issue Feb 15, 2018 · 7 comments
Closed

Link tag in extent report not closed #1025

dipesh17 opened this issue Feb 15, 2018 · 7 comments
Labels

Comments

@dipesh17
Copy link
Contributor

dipesh17 commented Feb 15, 2018

Summary

When Jenkins copying the report, parsing result file extentreport.html file to attach as an email to the team its throwing java.io.IOException: org.xml.sax.SAXParseException due to is not closed in

Expected Behavior

Link tag should be closed.

Current Behavior

tag is not closed which is causing issue. `10:33:38 Unable to parse Report15_02_2018_10_24_32.html: java.io.IOException: org.xml.sax.SAXParseException; systemId: file:/var/lib/jenkins/jobs/Prelive-Selenium-Test/builds/35/seleniumReports/Report15_02_2018_10_24_32.html; lineNumber: 33; columnNumber: 4; The element type "link" must be terminated by the matching end-tag "".`

Sample

// Link tag is not closed as a result when Jenkins prase the .html file it is throwing an error and unable to send as an attachment to the respective email address.

# Version 2.41.2
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600' rel='stylesheet' type='text/css'>

# Version 3.1.3


<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600' rel='stylesheet' type='text/css'>

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">


<link> Tag is not closed

Environment Details

  • Extent report Version used: 2.41.2 and 3.1.3
  • Operating System and version: Linux or Mac
  • JDK Version: 1.8

Screenshots

@dipesh17
Copy link
Contributor Author

@anshooarora Can you please help on the above, issue. it is stopping our CI process at the moment.

@anshooarora
Copy link
Owner

The tag can be made as self closing. Can you send in a pull request?

@dipesh17
Copy link
Contributor Author

dipesh17 commented Feb 23, 2018

screen shot 2018-02-23 at 17 08 24

# Jenkins Post Steps Shell Script:

tar -czvf /var/lib/jenkins/workspace/selenium-prelive-devbranch/seleniumtests.tar.gz resources
ls -ll /var/lib/jenkins/workspace/selenium-prelive-devbranch/
echo "Selenium Automation Test Report - see attachment" | mutt -a "/var/lib/jenkins/workspace/selenium-prelive-devbranch/seleniumtests.tar.gz" -s "Selenium Automation Report" -- dipesh123123random@gmail.com

PLEASE NOTE:
If I execute the command line mvn clean test -e on the local machine it does create an Extent report.

However, when running through Jenkins, It does generate the report but when Jenkins post script try to parse the HTML file, it throws an IO exception and unable to send an email to the respective group (Picture attached)

At this moment we, need to manually navigate to the workspace on Jenkins (AWS) and zip the report folder to analyse the test result.

@anshooarora
Copy link
Owner

Can you send a pull request?

@dipesh17
Copy link
Contributor Author

dipesh17 commented Feb 26, 2018

Can you please help me understand, what do you mean by sending you a pull request?
Apologies, if i have done wrong. This is the first time I've created a pull request which has created a new ref: #1028.

@anshooarora
Copy link
Owner

Can you only send the changes to affected files in the commit? You may have to re-clone/re-fork the project to get the latest code before doing so. If you are not able to, I will make the changes and close this.

@anshooarora
Copy link
Owner

Fixed in PR #1030

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants