1

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?

opHASnoNAME
  • 20,224
  • 26
  • 98
  • 143

2 Answers2

1

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.

Community
  • 1
  • 1
Arshdeep
  • 4,281
  • 7
  • 31
  • 46
0

Backup all files and test Zend with duplicate files.

mcandre
  • 22,868
  • 20
  • 88
  • 147
  • Copy the folder for your project and paste it. Call it project-backup. Modify the project files to use Zend. – mcandre Jul 07 '10 at 14:07
  • i've to verify that the browser output looks the same after refactoring (talking about 50 Forms, and a lot more content pages) – opHASnoNAME Jul 07 '10 at 14:09
  • So your real question is how to automate the process of viewing 50 webpages. Use Selenium. – mcandre Jul 07 '10 at 14:19
  • not realy, you can test with selenium if an

    is available but not if it fits in the page perfetct.

    – opHASnoNAME Jul 07 '10 at 15:34