MantisBT - TestLink
View Issue Details
0008193TestLinkReportspublic2018-02-07 17:512018-10-06 12:17
tjosephine 
fman 
normalminoralways
closedfixed 
Linux
1.9.16 (2016 Q4) 
1.9.18 (2018 Q3) 
MySQL
Chrome v.58
5.6.14
READY FOR TESTING
0008193: Test report generated as Pseudo MS Word does not contain pictures
When a test case description or test case steps contain pictures, after executing the test case, the Test Plan Report/Test Report/Test Report on Build (Pseudo MS Word) are generated without including the pictures.

If the report format = HTML, there is no issue when the Test Report is generated. All pictures are visible.
- Create a test case and add a picture in the Description
- Execute the test case
- In Reports and Metrics, select Report Format = Pseudo MS Word and generate Test Plan Report/Test Report/Test Report on build for your execution

All execution details are printed without the picture
if report format = HTML, there is no issue.
The reports are generated with picture included
No tags attached.
child of 0008241closed fman Availables hot-fixes for 1.9.17 & How To get full fixed package from GitHub 
png test_report_no_picture.png (204,702) 2018-02-07 17:51
http://mantis.testlink.org/file_download.php?file_id=4892&type=bug
png

doc test_report-2018-02-21.doc (333,814) 2018-02-21 19:37
http://mantis.testlink.org/file_download.php?file_id=4896&type=bug
jpg TC_steps_with_picture.jpg (123,213) 2018-02-21 19:38
http://mantis.testlink.org/file_download.php?file_id=4897&type=bug
jpg
Issue History
2018-02-07 17:51tjosephineNew Issue
2018-02-07 17:51tjosephineFile Added: test_report_no_picture.png
2018-02-10 08:53fmanNote Added: 0027185
2018-02-10 08:53fmanAssigned To => fman
2018-02-10 08:53fmanStatusnew => feedback
2018-02-14 15:36tjosephineNote Added: 0027195
2018-02-14 15:36tjosephineStatusfeedback => assigned
2018-02-21 19:37tjosephineFile Added: test_report-2018-02-21.doc
2018-02-21 19:38tjosephineFile Added: TC_steps_with_picture.jpg
2018-02-21 19:43tjosephineNote Added: 0027221
2018-09-11 15:15BerndLudewigNote Added: 0027830
2018-09-11 15:36BerndLudewigNote Added: 0027832
2018-09-11 17:34fmanNote Added: 0027833
2018-09-12 11:02BerndLudewigNote Added: 0027840
2018-09-12 12:33fmanNote Added: 0027841
2018-09-12 16:05tjosephineNote Added: 0027843
2018-09-15 08:23fmanNote Added: 0027852
2018-09-15 17:19fmanNote Added: 0027855
2018-09-15 17:19fmanQA Team - Task Workflow Status => TBD
2018-09-15 17:19fmanFixed in Version => 1.9.18 (2018 Q3)
2018-09-15 17:20fmanQA Team - Task Workflow StatusTBD => READY FOR TESTING
2018-09-15 17:20fmanStatusassigned => resolved
2018-09-15 17:20fmanResolutionopen => fixed
2018-09-16 11:01fmanRelationship addedchild of 0008241
2018-10-06 12:17fmanNote Added: 0027931
2018-10-06 12:17fmanStatusresolved => closed

Notes
(0027185)
fman   
2018-02-10 08:53   
please get latest code from github,do fresh install, retest & provide feedback
(0027195)
tjosephine   
2018-02-14 15:36   
I will, as soon as I can.
Do you know please when release 1.9.17 is officially announced?
(0027221)
tjosephine   
2018-02-21 19:43   
I got the latest code from github and did a fresh install.
The issue is still there.
All Pseudo MS Word reports don't contain the pictures (see doc file attached)

Whereas in HTML, the reports include pictures (see TC_steps_with_picture.jpg)
(0027830)
BerndLudewig   
2018-09-11 15:15   
We have the same issue.
Please prioritize this up. Thanks!
(0027832)
BerndLudewig   
2018-09-11 15:36   
This is a link https://stackoverflow.com/questions/2329897/how-to-display-images-in-word-generated-from-html [^] where the same problem occured. Maybe this helps finding a solution...
(0027833)
fman   
2018-09-11 17:34   
unfortunately, comments as present on note 27830, does not provide any help.
what is useful is to have time on your side to develop the solution, or getting a budget on your company to pay for the development you need.
Several companies in the past have done this, and these contribution where added to stable code
(0027840)
BerndLudewig   
2018-09-12 11:02   
There is a java script available which seems to do exactly what is needed:
https://github.com/evidenceprime/html-docx-js [^]
Maybe you can use this for the final conversion.
As far as I have analyzed your code you always create an html document with images in form of data url in base64 mode.
Those images are correctly interpreted by ms word.
Maybe it would be easy for you to use the mentioned java script before saving the file (output would be a real docx file). It would be nice if the testlink ui would allow to specify the page orientation (landscape|portrait).
I will also try to integrate it by myself and if I succeed I will share this...
(0027841)
fman   
2018-09-12 12:33   
Adding more and more things in an issue is from my point of view is absolutely wrong (
It would be nice if the testlink ui would allow to specify the page orientation (landscape|portrait). 9, making task management an nightmare.

Great to know you are going to put effort on this request
(0027843)
tjosephine   
2018-09-12 16:05   
Hi BerndLudewig, if you are able to find a solution using the Java script, I would appreciate the share. Inside my organization, we are also stuck with this issue. Thanks!
(0027852)
fman   
2018-09-15 08:23   
There is an important detail:

I'm pretty sure (I'm going to test now) I can display images when these images has been managed by testlink standard upload and link methods, but do not know what happens if you use the CFKEditor image management


The issue I found on a test spec report regards image dimensions => this need some fix. but is ANOTHER issue
(0027855)
fman   
2018-09-15 17:19   
https://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/bead26644f4b4703f4d1bdbf212793ced84c07ff [^]
(0027931)
fman   
2018-10-06 12:17   
1.9.18 released