Compare web sites
Good day !
We are porting very big web portal system from one application server to another.
New version of system should have same look and feel as old version. HTML code itself could be different, but it should look similar to old version.
So here my question: Is there any way to automate web sites compare ?
I have several solutions on my mind:
1. Walk through web site using Robot (or any other tool), take screenshots and then compare them.
2. Take HTML and perform "smart" compare.
Both solutions requires some development. I guess I'm not first person who face such task, so I guess there are some ready to use solutions [img]images/icons/smile.gif[/img]
Could you recommend me some tool to perform this task ?
Re: Compare web sites
At the first level, just have some spidering
system make a list of all of the reachable pages
on your sites...the before and after versions.
Then, after sorting the list, you can diff them
to see new/old/equal files.
Because web pages are kind of dynamic you'll not
have a lot of luck doing screenshots...99.99% of
the time even identical pages (modulo a font size
change) will faill to compare equal.
You could compare pages by looking a "page
metrics" for each page. That means, in effect,
that two URLs are deemed identical if they have
the same number of HTML elements, same number of
frames/iframes, same number of images, etc. This
is a kind of "fuzzy match".
Next you might "select all" visible text on a page
and compare it with the before/after versions.
That would detect changes but would be insensitive
to the fact that the source pages have their
punctuation scanned out when the text is rendered.
To do all this manually will be folly. Look into
available technology, perhaps doing a Google
search for "Web Testing". Good luck.