Testing Excel Reports through QTP - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Testing Excel Reports through QTP (/Thread-Testing-Excel-Reports-through-QTP) |
Testing Excel Reports through QTP - rajeshvelur - 11-18-2008 Hi, Anyone know about how to test excel reports? My application generates run time excel reports. I would like to validate some cells(B1, C2, etc), and look for certain strings like "#parsing" in the report. Ankur, i have even emailed you regarding the same, sorry for doing that. So posting it in the forum now. Thanks velur RE: Testing Excel Reports through QTP - Ankur - 11-18-2008 Please let us know what have you tried? RE: Testing Excel Reports through QTP - rajeshvelur - 11-20-2008 Hi Ankur, I have now got my script to work like this: I can scan through the excel from A1 to AA200 (this can be extended) I can now look for particular error messages (like a string value) The code is: Code: Set appExcel = CreateObject ("Excel.Application") Now instead of giving a particular name to the sheet ("Annual balance Sheet"- 4th line of the code) i want to make it more generic (like a .*) Can i be able to use the regular expression? I tried , but could not make it work. Thanks Velur |