Testing is carried out for needs specifications or requirements, design, implementation and maintenance. These are the four phases.