PDA

View Full Version : How can I compare browser output?


HamCoder
21-Jul-2006, 07:41 AM
One of the major processes in the application I work on generates a web site comprised of 30,000 files in 2,800 directories resulting in 8,000 web pages. As part of our quality control/assurance process, we use BC to identify and verify changes in both the original (SAS) source code and in the HTML that's generated.

What we are trying to automate is the process that points the browser at both HTML.v1 and HTML.v2, generates the screen display for each, and compares them. We only need to know which pages have differences.

Asking the browser to save the page results in an HTML file. So that won't work. Do the browsers have 'generation engines' that can be invoked with the output sent back to the invoker as a memory stream?

Any and all ideas are helpful. Thanks.

--HamCoder

Chris
21-Jul-2006, 02:26 PM
I don't know if there is a way to compare the browser output.

If you can dump it out to a binary or text file format, BC should be able to compare it.

One option might be to take a screen shot of each page, then compare the screen shots. I'm not sure how you would automate taking the screen shots though.