good_evening
good_evening

Reputation: 21759

How to test my website most efficiently?

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

Answers (8)

Parris Varney
Parris Varney

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

Jason Durbin
Jason Durbin

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

Alpesh
Alpesh

Reputation: 5405

Try to go through this really very nice article on UNIT testing.

Upvotes: 0

Pawka
Pawka

Reputation: 2576

Like all other projects.

  • Unit testing - test code. You can use PHPUnit.
  • UI testing - test user interface. You can use Selenium.
  • And finally maybe think about private beta and let users easily report bugs?

Upvotes: 2

heymrcarter
heymrcarter

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

CronosS
CronosS

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

bensiu
bensiu

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

Ned Batchelder
Ned Batchelder

Reputation: 376062

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

Related Questions