views:

32

answers:

2

Following "problem":

Website build with PHP/HTML working We want to change this site to PHP + Zend Framework + HTML

The Goal: After implementing the Framework the site should look like without the Framework.

Is there any way to test this automaticly? If we just save the page before and compare it with the new version i will not work because some Whitespaces inside the html sourecode can be different.

Is there any working solution for this scenario?

A: 

Backup all files and test Zend with duplicate files.

mcandre
??? Please give me some more details
ArneRie
Copy the folder for your project and paste it. Call it project-backup. Modify the project files to use Zend.
mcandre
i've to verify that the browser output looks the same after refactoring (talking about 50 Forms, and a lot more content pages)
ArneRie
So your real question is how to automate the process of viewing 50 webpages. Use Selenium.
mcandre
not realy, you can test with selenium if an <h1> is available but not if it fits in the page perfetct.
ArneRie
+1  A: 

Well it looks like you want to compare two html pages to see if they are same.

Try this : minify the html of both pages. i think it will solve the extra empty spaces problems and then generate md5 hash or compare them or some other way you like .

Or use generated source of both of the pages can use firebug or some other tool like fiddler its already discussed here on how to get generated source.

Arsheep
The idea to minify the pages is excelent! Thanks
ArneRie