Skip to main content
15-Moonstone
February 17, 2023
Solved

Images in html reports are not shown

  • February 17, 2023
  • 1 reply
  • 3910 views

We want to do an html report on a Test Session with test steps.

In the generated report, images are only shown as placeholders.

The images were automatically saved as attachment when added to the test step.

When browsing the underlying link inside the report, f.e. "http://ourservername:7001/im/viewattachment/PTC_14952943054504893.png?attachmentID=1603&mks_tz=NONE&mks.disconnect",
it asks for credentials for the RV&S server and downloads the file, so the connection basically works.

 

Why is this image not shown in the report?

Best answer by ssaul

Okay, we now found a workaround that is not pretty, but okay.

It works for us in Edge and Chrome, but not in Firefox.

After generating the Report, it is opened in Edge or Chrome.

Images are shown as placeholders.

Open one image in new tab, enter requested credentials.

Now generate the Report again - it is shown in Edge or Chrome with images, can be exported or printed.

 

Nevertheless, there should be an easier and more straightforward way to generate reports with images.

1 reply

ssaul15-MoonstoneAuthor
15-Moonstone
February 24, 2023

Hmmm, 7 days without answer - this does not seem to be a common usecase.

So is there anybody who has images in html reports?

16-Pearl
February 24, 2023

Yes, we do. This is a common scenario (reports that include images).

I've seen the problem on an off, but I haven't had the need to investigate.

PTC should make sure it works correctly, and also eliminate the unnecessary credentials prompt.

ssaul15-MoonstoneAuthor
15-Moonstone
February 24, 2023

Thanks for sharing your experience and for the confirmation that it should work.

Here, we do not manage to see the images embedded in the report, only the placeholders.

Only when copying the image address and browsing it on a separate tab, it can be downloaded after entering the credentials.

That does not help for the report itself or for sharing it with customers (as pdf).

 

Do you see the images embedded in the report?

What problems did you have?