Reputation: 21759
I have coded a big project using PHP and Mysql.
How can I test it and find errors most efficiently? Any tips? Or I need just to review code once more and test it on browser, that's it?
Thank you very much.
Upvotes: 1
Views: 225
Reputation: 11488
There's a bit of a learning curve, and some work for setup. But you can create automated browser tests for all of your sites use cases.
http://seleniumhq.org/projects/remote-control/
Upvotes: 0
Reputation: 3477
Like others have mentioned, use error_reporting(E_ALL);
to show all the errors.
Use XAMPP and test it yourself.
Get multiple friends to come and try to make it break (always works for me).
Release it on a server you have - make sure everything works good.
Try to inject variables using any $_REQUEST
variables you use. If you use them, see what happens when you change them to something incorrect or unexpected.
Try delete entries in your SQL table, see what that does.
Upvotes: 0
Reputation: 2576
Like all other projects.
Upvotes: 2
Reputation: 678
if you think that it's done and you've fixed all the bugs you can find, you can always recruit a group a testers to "do their worst" to the app. Have 10 or so people try out every part of it and really put some stress on it
Upvotes: 0
Reputation: 3159
You can test your page with the display_errors directive on (or by adding this at the beginning of your file "error_reporting(E_ALL);" One of good way is also to have some beta testers. And some useful tools can help too, like the "web developper toolbar" addon.
Upvotes: 0
Reputation: 25604
if you do not have testing enviroment set up and running make sure that error_reporting(E_ALL); and have test users focus on break it instead for work with it... And read logs...
I running under Zend Server what gives me more performance info and I stronglly recommended it for develop, test, and production stage
Upvotes: 1
Reputation: 376052
The most efficient way to test any project is to test as you develop, not at the end. Unit testing applies small tests to small modules as they are being written, so that you have a solid base on which to build.
Upvotes: 3