Jump to content
WAPT Forum
Sign in to follow this  
Guest arpoodle

content comparison in testing

Recommended Posts

Guest arpoodle

I'm currently evaluating WAPT, and would like to know if it's possible to verify the expected output of a page?

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.

 

Thanks

 

a

Share this post


Link to post
Share on other sites
Guest Paul Deen
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.

 

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

 

Cheers,

 

Paul

Share this post


Link to post
Share on other sites
Guest arpoodle
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".

 

 

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.

 

thanks

 

a

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×