How to know Regular Expression is True or False - 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: How to know Regular Expression is True or False (/Thread-How-to-know-Regular-Expression-is-True-or-False) |
How to know Regular Expression is True or False - Jay - 09-21-2011 Hi There, I am creating one tool to convert tsr file to XML file. I know in object repository manger export to xml option is available but I need customized XML which is different then QTP XML I am able to get all the object and their property using existing object ObjectRepositoryUtil methods but not correct regular expression value from tsr. If in TSR property value set true for regular expression and then using the following method it should retrieve the value correct value: msgbox Property.RegularExpression Output should be true for RE enable property value and false for not enable property values. But here I am finding discrepancy in this method. Value is displayed but not the correct one. Even if I enable true it shows false as an output Please find the function which may be usefully for understanding Code: Function EnumerateAllChildProperties(Root) Please let me know for any further information. Other suggestions are welcome. Would like to know if there is any other way. |