# Thread: formula

1. ## formula

hi all,

how many test cases we can write for requirement.any formula forthat if so what is it and who derived it.

2. ## Re: formula

What ? Is this a physics/maths exam question ? You need to give out more information for anyone to answer. Otherwise the assumption is you are preparing for an exam or interview.

3. ## Re: formula

I would say it depends on the requirement.
What do you think?

Rich

4. ## Re: formula

Satishraju,

I think what the guys are trying to say is that your question is almost impossible to answer (not trying to put words in their mouths!) and (IMHO) anything that purports to be an answer is going to be difficult for you to apply to your own circumstances as it's down to individual perception.

I think Rich W has hit the nail on the head. I would suggest you could create a formula which would also help with estimating timescales and also ensuring the levels of risk you are taking are acceptable (for risk based testing).

You would need to categorize each of the requirements by both risk and type. In that I mean (A) what is/are the risk(s) if the requirement isn't met and (B) what 'type' of requirement is it. 'Type' is the tricky part as that is dictated by you...a few suggestions could be function/non functional/validation/security/Usability/Business/Regulatory etc. You could then use the 2 scorings of Risk & Type to ascertain how many test cases are required. The reason I believe it would be difficult for you to adopt someone else's formula is you may perceive risks differently or you may categorize 'type' differently (even on an individual project level). It would be advisable to create your own standards and then the application of the formula is constant throughout.

5. ## Re: formula

The Reace Axiom:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">number_possible_test_cases = (number_requirements * infinity) +/- (0.5 * infinity)</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">Derived by me.

[img]images/icons/wink.gif[/img]

This is only half-joking. Theoretically, you could write a test case for every possible input and combination of inputs related to any requirement. Obviously, the number of valid and invalid inputs in most cases is, for all practical purposes, infinite. What testers try to figure out for each requirement is, what is the important set of inputs that should be tested?

6. ## Re: formula

depends on how many monkeys i have and how many typewriters and how much time...or is that creating the works of shakespheare?

It is not always important to know how many we can create, we have to define our quality criteria and constraints and then decided via the trade of we have if the number we deliver will give us coverage, in our context, that will be acceptable and the tests we create will provide meaningful information. (IMHO) [img]images/icons/wink.gif[/img]

7. ## Re: formula

I think the answer's three (3).

"And the Lord spake, saying, 'First shalt thou take out the Holy Pin. Then, shalt thou count to three, no more, no less. Three shalt be the number thou shalt count, and the number of the counting shall be three. Four shalt thou not count, nor either count thou two, excepting that thou then proceed to three. Five is right out. Once the number three, being the third number, be reached, then lobbest thou thy Holy Hand Grenade of Antioch towards thy foe, who, being naughty in my sight, shall snuff it.'"

ARTHUR: Right! One... two... five!
GALAHAD: Three, sir!
ARTHUR: Three!

There ya go.

8. ## Re: formula

Drew,

For that, you deserve a nice shrubbery.

- Linda

9. ## Re: formula

Linda, will it be ablaze?

10. ## Re: formula

"Then, when you have found the shrubbery, you must cut down the mightiest tree in the forest... with... a herring!"

LoL.

I think there's probably a Python quote for all of these types of dumb questions. I applaud the people who have the time & patience to actually try and answer them. Sadly, they've grown so much in quantity that it's impossible to sift through all the crud to find the good posts...so i find myself visiting this site less and less.

Cheers.

Page 1 of 2 12 Last

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 10:07 AM.

Copyright BetaSoft Inc.