Skip to content
RED SAGSkills
easyQA Engineer interview question

Explain positive and negative testing with an example.

What the interviewer wants to hear

  • Positive testing uses valid inputs and expected flows
  • Negative testing uses invalid inputs and unexpected actions
  • System should handle negative cases gracefully with clear errors
  • Concrete example such as a mobile number field

Model answer

Positive testing checks that the system works with valid input and normal user behaviour. Negative testing checks that it handles invalid input or unexpected actions without crashing and with a clear message. Take a mobile number field for India that should accept 10 digits starting with 6 to 9. A positive test is entering 9876543210 and seeing it accepted. Negative tests include entering 9 digits, 11 digits, letters, a number starting with 1, spaces, an empty value, or pasting +91 with the number, depending on the rules. For each, the expected result is a friendly error and no data saved. Negative testing is important because real users make mistakes and attackers send bad input on purpose. Many serious bugs, like a 500 error or a crash, are found through negative tests rather than the happy path.

Can you answer it under time pressure?

Take a timed easy round and get scored on every answer.

Start mock interview

More easy QA Engineer questions