11-10-2009, 11:51 AM
I will go far enough to give you the logic, try building it and let us know how far you have been...
Before i begin let me tell you, it is possible what you are trying to do. You have to first learn how QTP stores the results. There are two ways to do this,
1. There is a key in the registry which when enabled will create a folder in the Results folder called "Log". [ Clue : you will find the key from one of the posts on this forum. Learn to search and Search to Learn ]. Once you enable the key, write a vbscript to automatically copy the file after each run and store it in a particular location on the "dummy database" you intend to create. [ Clue : Use date time append to create unique file names ].
2. Results are stored in the XML format. You will programatically need to convert the XML files to the HTML / XSL files before creating the results in a readable format. However, QTP has a inbuilt stylesheets which come in two different formats. The long sheet which is a detailed report and the short sheet which is a consolidated report. The files can be found under the Dat folder.
Next, You will have to exploit the COM called "Msxml2.FreeThreadedDOMDocument" and Msxml2.XSLTemplate. The names of the sheets would be,
1.C:\Program Files\HP\QuickTest Professional\dat\PShort.xsl
2.C:\Program Files\HP\QuickTest Professional\dat\PDetailed.xsl
Once you create the HTML format or the XSL format you will then need to move the created files to a location using a Vbscript code exploiting the "FileScriptingObject".
Clue : If you research on the forum based on the above points you will know more about what i am talking.
does this light the torch ?
Before i begin let me tell you, it is possible what you are trying to do. You have to first learn how QTP stores the results. There are two ways to do this,
1. There is a key in the registry which when enabled will create a folder in the Results folder called "Log". [ Clue : you will find the key from one of the posts on this forum. Learn to search and Search to Learn ]. Once you enable the key, write a vbscript to automatically copy the file after each run and store it in a particular location on the "dummy database" you intend to create. [ Clue : Use date time append to create unique file names ].
2. Results are stored in the XML format. You will programatically need to convert the XML files to the HTML / XSL files before creating the results in a readable format. However, QTP has a inbuilt stylesheets which come in two different formats. The long sheet which is a detailed report and the short sheet which is a consolidated report. The files can be found under the Dat folder.
Next, You will have to exploit the COM called "Msxml2.FreeThreadedDOMDocument" and Msxml2.XSLTemplate. The names of the sheets would be,
1.C:\Program Files\HP\QuickTest Professional\dat\PShort.xsl
2.C:\Program Files\HP\QuickTest Professional\dat\PDetailed.xsl
Once you create the HTML format or the XSL format you will then need to move the created files to a location using a Vbscript code exploiting the "FileScriptingObject".
Clue : If you research on the forum based on the above points you will know more about what i am talking.
does this light the torch ?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.