Regular Expressions in HTML Page Checkpoints in QTP version 9.2
Basically I am recording HTML source page checkpoints against a website. Having run my QTP script I go to my test results and drill down to the page checkpoint. It informs me that the "Two HTML sources are not the same". This is fair enough as there is inevitably going to be some dynamic data in the HTML source. When you click on 'Show Diff' it runs up the WDiff exe and you can see the exact lines and code in those lines that are different. OK, so now I make reference of those lines that are different and I go into my recorded HTML source and try putting in wild card regular expressions (.*) with the idea of matching anything with the aim of making my test checkpoint pass. I have tried varied regular expressions to match tags also (like ]*>(.*?))and made sure to assert the 'regular expression' checkbox in the 'Edit HTML Source', however upon re-run it always fails. It appears that the WDiff editor/comparison tool is treating all characters literally and not treating the special characters the way they should be treated. Does the WDiff Editor need to be configured to deal with regular expressions? Or is it that this is an issue in QTP, that it is not treating the HTML Source as a regular expression after asserting the 'regular expression' checkbox?
Questions by Lourance1
Showing Answers 1 - 2 of 2 Answers
Related Answered Questions
Related Open Questions
Regular Expressions in HTML Page Checkpoints in QTP version 9.2
Profile Answers by Lourance1 Questions by Lourance1
Questions by Lourance1
Related Answered Questions
Related Open Questions