Forum Discussion
And after the Execution the Report is looking like this
anyone can give me guidance on this
and code which i used is
def Reporting(resfile,Value): aqFile.Create("C:\\work\\myreport.html") aqFile.WriteToTextFile(resfile, "<html>", aqFile.ctUnicode) aqFile.WriteToTextFile(resfile, "<head>", aqFile.ctUnicode) aqFile.WriteToTextFile(resfile, "<title> Automation Results </title>", aqFile.ctUnicode) aqFile.WriteToTextFile(resfile, "</head>", aqFile.ctUnicode) aqFile.WriteToTextFile(resfile, "<body>", aqFile.ctUnicode) aqFile.WriteToTextFile(resfile, "<table width=90% border=2 bordercolor=" + "#000001 id=table1 bordercolorlight=" + "#000001>", aqFile.ctUnicode) aqFile.WriteToTextFile(resfile, "<tr>", aqFile.ctUnicode) aqFile.WriteToTextFile(resfile, "<td width=80% bgcolor = #000000 >", aqFile.ctUnicode) aqFile.WriteToTextFile(resfile, Value, aqFile.ctUnicode) aqFile.WriteToTextFile(resfile, "</td>", aqFile.ctUnicode) aqFile.WriteToTextFile(resfile, "</tr>", aqFile.ctUnicode) aqFile.WriteToTextFile(resfile, "</table>", aqFile.ctUnicode) aqFile.WriteToTextFile(resfile, "</body>", aqFile.ctUnicode) aqFile.WriteToTextFile(resfile, "</html>", aqFile.ctUnicode) def testcas1(): Reporting("C:\\work\\myreport.html",'Hello Reporting')
Your code works fine :)
This is what I see:
Possibly you need to add a tag to control the color of the font.
P.S. Imho building report like you do - is a very very fragile way. Imagine that sometime you will require more complex grid.
- tristaanogre9 years agoEsteemed Contributor
Hey, Jack... IIRC, this thread is because you need a summary report for each test item being executed, is that correct? At least, that's what I remember from some previous conversations.
Check out my latest response on your other thread
https://community.smartbear.com/t5/TestComplete-Desktop-Testing/Batch-Execution-of-100-Test-Cases-and-Summary-Report-of-Batch/m-p/129909/highlight/true#M7611- JackSparrow9 years agoFrequent Contributor
tristaanogre ya I saw it , ya I want exactly what's happening while am automating to be present as report.
- JackSparrow9 years agoFrequent Contributor
Can we integrate HTMLTestRunner.py (0.8.2) with Test complete , so that we can totally get used of what am expecting to do ?
Is it possible , Do I need just download and add that library file in the python libraries of TestComplete Folder.
- JackSparrow9 years agoFrequent Contributor
baxatob but this what asked me to do , so I need to do , any idea/suggestions for this type reporting please