Let us introduce the following the Htmltestrunner module automatically generates test report methods.
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/92/40/wKioL1j9rIPjL3ipAAAItXaBUos277.png-wh_500x0-wm_ 3-wmp_4-s_2397333791.png "title=" import report module. png "alt=" wkiol1j9ripjl3ipaaaitxabuos277.png-wh_50 "/>
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/92/40/wKioL1j9rI7BIgiWAAA6wiFBFfw204.png-wh_500x0-wm_ 3-wmp_4-s_2197187298.png "title=" test function. png "alt=" wkiol1j9ri7bigiwaaa6wifbffw204.png-wh_50 "/>
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/92/41/wKiom1j9rJzQuMXuAABjaQOSDrI481.png-wh_500x0-wm_ 3-wmp_4-s_14268704.png "title=" Report settings. png "alt=" wkiom1j9rjzqumxuaabjaqosdri481.png-wh_50 "/>
set relevant parameters according to your needs ( Related testing Knowledge exchange QQ Group: 610845268 ).
The use cases all pass, and if there are errors there will be a detailed information prompt.
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/92/40/wKioL1j9rLCzRHPSAADmemm_U1c917.png-wh_500x0-wm_ 3-wmp_4-s_1112468674.png "title=" report results. png "alt=" wkiol1j9rlczrhpsaadmemm_u1c917.png-wh_50 "/>
Here a simple test report is done. Specific to the project testing needs to be based on specific circumstances to
Set the relevant parameters, and in case of large projects need to use multi-threading to run.
This article from the "It Bug" blog, declined reprint!
Python--selenium a practical method for automatically generating test HTML reports--htmltestrunner