Can u please let me know, How to create customized html reoprts in QTP.
Thanks in advance
Ajay
--
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
If u don't mind, can u please give me some sample code.
Thanks in Advance
Ajay
--
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
Regards
Ajay
On Thu, Mar 11, 2010 at 9:25 AM, ajay kumar kommalapati
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:
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.