content comparison in testing
Posted 03 July 2008 - 02:32 PM
One of the issues we occasionally encounter is due to an issue in the load balancer and session persistance, where the repeat requests aren't sent to the same server, and so some of the content isn't rendered properly, as it doesn't have the session information to determine the relevant content.
Is there a way to check this content within the test parameters, as the page still loads "correctly" as far as the http status codes are concerned.
Posted 04 July 2008 - 11:17 AM
Sort of. What you can do is check for text on the page you're expecting. So if you purchased an order, you could make sure the response you get back from the server contains the literal text "Order Successful".
Personally I think this is somewhere that WAPT could be improved, for example, check the destination of 302 redirects would be nice. Someone else suggested have regular expression support there too. As far as I'm aware there is currently no way of doing these things at the moment.
Even so, I think the literal text will help you a lot
Posted 07 July 2008 - 11:07 AM
Any idea if that works for the HTML source, or just the rendered textual content?
One of the issues I have is that some CSS isnt being loaded properly due to this flaky session persistance, so the text is there, but it's all formatted and coloured wrongly. Being able to check the source code for text matching Would solve my problem.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users