nayak0765
nayak0765

Reputation: 193

Difference between functional and regression test cases

I am aware of the definition of functional and regression test case. But I am not able to distinguish which test case should fall in functional and which one should fall in regression test. For example, in sprint1 say I have a requirement to reconcile two datasets. So I have added 4 different test scenarios in functional test case. So at this point what should be added in regression test cases for this feature of reconciliation as all scenarios are covered in functional test case itself. Also by definition regression test case ensures existing code should not break by adding new feature. So after sprint2 if I add new test scenarios for new feature of sprint2 in functional test case itself. Then why I need regression test case(to ensure existing code works as expected)? Also am I right in saying functional test case of sprint1 will become regression test case for sprint2 to ensure existing functionality is not breaking in sprint2? Anyone can explain with example.

Upvotes: 0

Views: 57

Answers (1)

Mohsen Khosroanjam
Mohsen Khosroanjam

Reputation: 521

Let's see the differences:

  • A functional test aims to test a specific feature; however, a regression test aims to ensure that the previously tested features continue to work.
  • A Functional test is conducted during the development phase but a regression test is conducted after bug fixes, updates, or code changes.
  • In a functional test, our focus is on the new function. In a regression test, our focus is on the existing(previous) functions.

For example, we test the login page in sprint 1; this is called the functional test. In sprint 2, the backend guys update some APIs or authentication logic in the login flow. Here we should retest the login flow; this is called the regression test.

Upvotes: 0

Related Questions