Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to generate QTP report in a new file(html)?
#2
Solved: 10 Years, 9 Months, 2 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 48,371 12-31-2016, 02:57 PM
Last Post: chevronneraji
  [UFT] Get text into DIV through HTML tag robertosalemi 2 5,287 03-29-2016, 09:43 PM
Last Post: robertosalemi
  Report Viewer showing hundreds of WebElement.Exists? themoon 1 2,233 03-09-2016, 02:43 PM
Last Post: vinod123
  How to attach HTML file to Email Naresh 0 2,752 04-06-2015, 02:04 PM
Last Post: Naresh
  Unable to generate Scripts using QTP11 Divya Roopa 1 1,998 03-05-2014, 09:07 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)