Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to generate QTP report in a new file(html)?
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi ,

While creating a HTML file why cant you use 'now()' property to give unique name to the file.

like :

Code:
FileName = "D:\HtmlReport_" &  replace(replace(replace(now() , "/" , "_") , ":" , "_") , " " , "_") & ".html"
and then use it in the file creation

Code:
Set objFS_TestSet = CreateObject("Scripting.FileSystemObject")
Set objReport_Set = objFS_TestSet.OpenTextFile(FileName, 2, True)

Thanks,
Harish
Reply


Messages In This Thread
RE: How to generate QTP report in a new file(html)? - by harishshenoy - 10-18-2012, 06:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Customized HTML reports in QTP azeem 11 49,434 12-31-2016, 02:57 PM
Last Post: chevronneraji
  [UFT] Get text into DIV through HTML tag robertosalemi 2 5,517 03-29-2016, 09:43 PM
Last Post: robertosalemi
  Report Viewer showing hundreds of WebElement.Exists? themoon 1 2,335 03-09-2016, 02:43 PM
Last Post: vinod123
  How to attach HTML file to Email Naresh 0 3,063 04-06-2015, 02:04 PM
Last Post: Naresh
  Unable to generate Scripts using QTP11 Divya Roopa 1 2,078 03-05-2014, 09:07 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 2 Guest(s)