How to create customized html reoprts in QTP

1,656 views
Skip to first unread message

ajay kumar kommalapati

unread,
Mar 9, 2010, 6:39:14 AM3/9/10
to Mercu...@googlegroups.com
Hi,

Can u please let me know, How to create customized html reoprts in QTP.

Thanks in advance

Ajay

Prasad Dev

unread,
Mar 9, 2010, 1:50:50 PM3/9/10
to mercu...@googlegroups.com
Hi,


Customized report can be created using VB Script. It can be done with filesystemobject.


Write the html tags with the values to file then save the file to HTML.

Thanks,
Prasad




--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

ajay kumar kommalapati

unread,
Mar 9, 2010, 11:15:20 PM3/9/10
to mercu...@googlegroups.com
Hi,

If u don't mind, can u please give me some sample code.

Thanks in Advance

Ajay

Sreedhar Mallipeddi

unread,
Mar 10, 2010, 11:55:58 AM3/10/10
to mercu...@googlegroups.com
http://www.3atesting.com/bbs/thread-5063-1-1.html custom report video


--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en



--
Mallipeddi Sreedhar
215-688-2456

ajay kumar kommalapati

unread,
Mar 10, 2010, 10:55:35 PM3/10/10
to mercu...@googlegroups.com
Sorry Mate, this is opening up in Chinese language.

Regards
Ajay

QTP Tutorials

unread,
Mar 10, 2010, 11:01:48 PM3/10/10
to mercu...@googlegroups.com
Yes, even I am also facing the same problem

On Thu, Mar 11, 2010 at 9:25 AM, ajay kumar kommalapati

Manish Bhalshankar

unread,
Mar 11, 2010, 1:49:35 AM3/11/10
to mercu...@googlegroups.com

koteshwar

unread,
Mar 11, 2010, 2:26:22 AM3/11/10
to mercu...@googlegroups.com
Open it in chrome browser, and translate lang to eng..


Regards,
koteshwar .P

Azhar Mehmood

unread,
Mar 11, 2010, 7:24:04 AM3/11/10
to mercu...@googlegroups.com

Copy paste for QTP Help Document...


Customizing the Test Results Display

The results of each QuickTest run session are saved in a single .xml file (called results.xml). This .xml file stores information on each of the test result nodes in the display. The information in these nodes is used to dynamically create .htm files that are shown in the top-right pane in the Test Results window.

Each node in the run results tree is an element in the results.xml file. In addition, there are different elements that represent different types of information displayed in the test results. You can take test result information from the .xml file and use XSL to display the information you require in a customized format (either when printing from within the QuickTest Test Results window, when displaying test results in your own customized results viewer, or when exporting the test results to an HTML file).

The diagram below shows the correlation between some of the elements in the .xml file and the items they represent in the test results.



Tip: You can change the appearance (look and feel) of the Test Results window. For more information, see Changing the Appearance of the Test Results Window.

XSL provides you with the tools to describe exactly which test result information to display and exactly where and how to display, print or export it. You can also modify the .css file referenced by the .xsl file, to change the appearance of the report (for example, fonts, colors, and so forth).

For example, in the results.xml file, one element tag contains the name of an action, and another element tag contains information on the time at which the run session is performed. Using XSL, you could tell your customized test results viewer that the action name should be displayed in a specific place on the page and in a bold green font, and that the time information should not be displayed at all.

You may find it easier to modify the existing .xsl and .css files provided with QuickTest, instead of creating your own customized files from scratch. The files are located in <QuickTest Installation Folder>\dat, and are named as follows:

  • PShort.xsl. Specifies the content of the test results report printed, or exported to an HTML file, when you select the Short option in the Print or Export to HTML File dialog boxes.
  • PDetails.xsl. Specifies the content of the test results report printed, or exported to an HTML file, when you select the Detailed option in the Print or Export to HTML File dialog boxes.
  • PResults.css. Specifies the appearance of the test results print preview. This file is referenced by all three .xsl files.

For more information on printing test results using a customized .xsl file, see Printing Test Results.

For more information on exporting the test results to a file using a customized .xsl file, see Exporting Test Results.

For information on the structure of the XML schema, and a description of the elements and attributes you can use to customize the test results reports, see the XML Report Help.

Azhar Mehmood
03215056676
Reply all
Reply to author
Forward
0 new messages