You need to ensure that the site will behave correctly in every instance and path the user may take. In other words, you want to be sure that there are no major errors or broken links in your site.
Similarly, with mission-critical systems, such as e-commerce or transactional systems, you should perform a through review of the code to ensure proper calculations. For this, a set of code-testing procedures must be developed.
As mentioned earlier, the level to which this needs to occur depends on the nature of the web site you are developing. Mission-critical sites require much more thorough testing than sites designed primarily for entertainment.
There are several methods for code testing that have been established through years of software engineering experience that can be applied to web site design. The following is provided as an overview of the possible methods. You may select the most appropriate for your given needs.
Code Review
Code should be reviewed by another programmer or set of programmers. This means having programmers actually read through the code line by line to verify that it implements the site’s requirements and procedures.
This should be an established practice for all mission-critical code. The more eyes that review the code, the more likely it is that you’ll catch simple programming mistakes such as one-off errors or rounding errors in calculations. This is essential for any transactional system in order to avoid costly mistakes.
Unit Testing
Unit testing refers to taking a functional subset of the system (a unit) and verifying that the outputs are correct – for example, examining a particular subset of a task such as a piece of code that processes an individual form. In unit testing, you want to ensure that a single piece of code can take the proper inputs or parameters and produce the relevant outputs.
0 responses so far ↓
Leave a Comment