How to insert pictures into the TestCase report. The insertion of pictures needs to be based on the Comment node.
As shown below
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<testmodule title="Demo" version="1.1">
<testgroup title="Preparation test">
<testcase title="image test" ident="1.1">
<comment>
<text>Hello World</text>
<resource width="400px" height="400px">CanOE.png</resource>
</comment>
</testcase>
</testgroup>
</testmodule>
Two points need to be noted here:
1. The location of the image needs to be consistent with the path generated by TestReport
2. There cannot be spaces before and after the image name in <resource></resource>.