Change in behavior in the handling of HTML based report type attachments to the Test Execution Result in ETM 7.0 compared to its behavior in RQM 6.x
![]() Hi,
I see a change in behavior in the handling of HTML based report type attachments to the Test Execution Result in ETM 7.0 compared to its behavior in RQM 6.x.
In both cases, the uploaded HTML based report from the adapter appears as a link with the provided name in the Test Case Execution Result view in RQM/ETM. In 6.x, when I click on the link, it opens the report up in another tab in the browser and renders all the images within correctly.
However, starting with 7.x, when the user clicks on the attached HTML report link, instead of opening the report in a tab, it gets downloaded to the local machine. This is not the expected the behavior since when the report was uploaded, it was uploaded with a Content-Type of text/html to be associated with the resource.
It appears as if the associated Content-Type is being ignored.
Thanks
|
4 answers
![]()
Hi Abhishek,
Yes there were some changes on the way downloads are handled in HTML based reports by ETM due to security concerns.
As a result of Malicious html executed when clicked from attachments (178993) delivered in 6061, all the attachment when clicked ( even from execution result page ) were asked for prompt and attachments were downloaded.
We realized that Third party Adapters were affected due to this change, as Adapter Library uses same service to upload attachment to Execution Results. ( I hope you are using Adapter Library to upload your attachment to your results ).
How ever, this issue was fixed by another defect ( ETM 7.0) in Attachments on test case results created by a command-line script do not open in a new tab (181468). As result of this fix, we have provided mechanism to let Project Admin decide if attachments coming from Adapter Library (or other Third Party clients) should be allowed to get opened directly in new tabs.
For this you could go to ETM > Manage Project Properties > Test Result Preference > "Open attachments in test results directly, without prompting users to open or save them".
You could try with keeping this option enabled. That should work for you. Please note, if these attachments for any reason are created via UI, then enabling this option would also not work.
Thanks,
Abhishek
|
![]() Hi Abhishek,
Thanks for that info. I will try and comback.
Thanks.
|
![]() Hi Abhishek,
The click on the link downloads only the html file, however it doesnot download the related images/js/css files that arereferences from html. Do I need to change anything to ensure that these files are also included as part of the download?
Regards,
Abhishek
|