Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testing PHP project after coding is finished

I've got a PHP project to test. I've already (almost) finished coding the project and I didn't have any testing plan at the start. Being new to PHP, I thought I'd finish the coding and start testing afterwards. As unit testing needs to be done as you go along, what is my other alternative for a test? I want something like a complete system test rather than unit by unit.

I've got around 30 PHP script files, 5 of which are class scripts.

NB It needs to be a formal way of testing, rather than trying to hack it.

like image 210
mavili Avatar asked Sep 03 '26 22:09

mavili


2 Answers

I believe your aim behind the test is more "academic" than practical. So testing by friends doesn't really help much. Having said that you have already completed coding the project so if you wanted to unit test using PHPUnit or SimpleTest you will have to go back and start coding the unit test cases.

I think the best option here would be to create a "formal" test document. There are tons of resources out there for how to do this. Basically it will have:

  1. Url
  2. Action
  3. Expected Result
  4. Observed Result

If your expected and observed results match, then that test case is passed.

You can create as many test cases as you want for your project based on these basic guidelines.

like image 73
raidenace Avatar answered Sep 06 '26 11:09

raidenace


Testing has it's different role in SDLC. There are various aspect on which testing could be done. Like:

  1. Smoke Testing

  2. Functionality Testing

  3. System Testing

  4. Retesting

  5. Regration Testing

  6. Preformance Testing

and many more testing technique are there for testing a web application.

like image 30
Naveen Chhaniwal Avatar answered Sep 06 '26 11:09

Naveen Chhaniwal