Thursday, May 13, 2010

How to create an test case?

First of all start by creating a scenario, what type of results you expect, what assumptions you are making (like the type of environment it is operating in), tools needed and any other info needed to help understand the results.





Then you run your test and compare your actual outputs to your expected results. I like to model my test cases as close to actual business applications as possible.





An example test case might be....





This test is designed to calculate interest based on the supplied principle amount, the years compounded, and the interest rate.





The case assumes that the interest function is executed on the Windows 32 bit platform and will require the .NET framework to function properly.





I expect the following results based on the inputs..





1000 dollars X 1 year at 10% interest = 1100 dollars





(You should have multiple tests here with various numbers that are easy to figure out and compare, I have only provided this one)





Based on the results of my test I received the value 1100.01 dollars which is 1 penny away from my expected results. I account for this error by the way floating point does its math, but is accurate enough for my results.





Test case considered a success.








Your test cases will be a bit more elaborate, but roughly you can do one test case per sheet of paper. Test cases can test a function, they can test a sub system, they can test the entire system. You will need to pick the appropriate scope.





Hope this is helpful to you and good luck.How to create an test case?
Think about creating windows.How to create an test case?
What test? What case? Are you by any chance referring to a test for a mental case? Come on, give us some information and make yourself clear if you really need the community's help.





Have a good day.
pretty much explanatory.
How to do it is explained by martyr... Easier tool to create test cases is JUnit...
  • makeup art
  • No comments:

    Post a Comment