Functional testing is done according to Design and regression testing done when we have made any enhancement or fixed any bug.