# Is there any formula for deciding the number of test cases to be written for a particular requirement. I was asked in an interview, that if the is a requirement of say R1, R2, R3, then what is the formula for deciding the number of test cases to be written for these requirements?

#### kr1shna Profile Answers by kr1shna

• Jan 29th, 2007

There is no limit for writing Test cases. While writing test cases you have to keep the business flow in mind. Say you wrote 100 Cases for R1, your friend may write 100+1 for the same R1. It all depends the way you write and the person who reviews it. if the person who is reviewing feels all the scenario are covered then that would be the End.-Sudha Krishna

#### Keerthy

• Jan 30th, 2007

There is no formula which decides the number of test cases to be written for a particular requirement.We will write the test cases in such a way that all the functionalities of the give requirements ie R1, R2 or R3 etc are checked properly.

#### Sharavanan

• Jan 31st, 2007

There is no formula to discover the number of test case needs to be written.The very important thing is - you need to cover all the points given in the SRS or FRS, all kinds of scenarios needs to be covered for each SRS point.

#### sirigiri.vcr Profile Answers by sirigiri.vcr

• Feb 8th, 2007

There is no exact formula for writing test cases.But in my exp I found that ,Total test cases = number of inputs * 1.6Just u apply to one requirement &check it.regards,Chalapathi.

#### shivak141 Profile Answers by shivak141 Questions by shivak141

• Oct 12th, 2007

There is no exact formula for writing test cases.But in my exp I found that ,Total test cases = number of inputs * 1.6Just u apply to one requirement &check it.

#### mathan_vel Profile Answers by mathan_vel Questions by mathan_vel

• Aug 19th, 2009

There is no seperate formuala for wititng that much test cases to the Requirements R1, R2, R3 etc... The Thing is that the Test Cases should cover all the requirements with the SRS, FRS, Scenarios and the Business Logic.

#### Nitin

• Apr 6th, 2015

No I dont think so. Because if there are 4 buttons of combinations, then total number of test cases are 4X3X2X1= 24.

#### Abhishek

• Feb 4th, 2017

How many test cases are possible? How can we find that exact number?

#### KIran Antony

• Jun 9th, 2017

I don't think there is no limit, Every Requirement must have at-least 3 to 3 test cases minimum if we have categorized the requirement in proper way, For example is there is a functional requirement there should be min of 2 test cases(Positive and negative) or more(depend on the testers ability and experience). Writing 100 test case is against testing principle . It is always good to decide how many test cases should be minimum instead of saying maximum.

#### Chandrika

• Feb 5th, 2018

We can write no. of test cases as many as possible based on requirement but 1st we will write test case for major functionalities. and we can use decision table.