08-12-2009, 06:27 PM
I am fully agree with Manoj, the log report itself is much described as in result viewer. also this helps when the result is incomplete.
although we can do the same as you suggested.
Venkat - may be you can try this as well. hope it will help you.
Basanth-what do you mean when you say - "When you sync a object to wait, can you use a while loop for say 30 counters and see the result on the log file ?" does it show up at the result viewer?
also the report generated by xsl is much similar to the log report but with more organised and in readable format.
I think you should not ignore the existing Log report. that also helps in some or other way.
although we can do the same as you suggested.
Venkat - may be you can try this as well. hope it will help you.
Code:
sResults = "C:\Results.xml"
sXSL = "C:\Program Files\HP\QuickTest Professional\dat\PDetails.xsl"
createHTML sResults, sXSL, "C:\Results.html"
Public Function createHTML(XMLFile,XSLFile, HTMLFile)
Set xmlDoc = CreateObject("MSXML.DOMDocument" )
Set xslDoc = CreateObject("MSXML.DOMDocument" )
xmlDoc.async = False
xslDoc.async = False
xslDoc.load XSLFile
xmlDoc.load XMLFile
outputText = xmlDoc.transformNode(xslDoc.documentElement)
Set FSO = CreateObject("Scripting.FileSystemObject")
Set outFile = FSO.CreateTextFile(HTMLFile,True)
outFile.Write outputText
outFile.Close
Set outFile = Nothing
Set FSO = Nothing
Set xmlDoc = Nothing
Set xslDoc = Nothing
Set xmlResults = Nothing
End Function
Basanth-what do you mean when you say - "When you sync a object to wait, can you use a while loop for say 30 counters and see the result on the log file ?" does it show up at the result viewer?
also the report generated by xsl is much similar to the log report but with more organised and in readable format.
I think you should not ignore the existing Log report. that also helps in some or other way.