Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to export the QTP Test results in to HTML file using script
#6
Not Solved
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.
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.

Reply


Messages In This Thread
RE: How to export the QTP Test results in to HTML file using script - by Saket - 08-12-2009, 06:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Rolleyes Snapshots - Test Results Bhadra 8 8,027 11-03-2014, 03:24 PM
Last Post: vinod123
  Using OR created in one system, not able to execute the test script in another system priyaang 4 3,474 03-27-2014, 11:02 PM
Last Post: priyaang
  How to find the latest modified file in QC11 current test attachment using QTP10 shiv.cse 0 1,880 07-23-2013, 01:25 AM
Last Post: shiv.cse
  capture screenshot using html code and view in QTP Test results Bhuvan 3 7,236 07-19-2013, 02:38 PM
Last Post: Bhuvan
  How can I send variable value to html property for descriptive programming in QTP ritugoyal 13 22,500 11-26-2012, 12:55 PM
Last Post: binny318

Forum Jump:


Users browsing this thread: 1 Guest(s)