FIME interview question

When to stop testing? What elements you will put when you get a defect?