Is there any technique or tool with which the test case coverage can be ensured.
For eg.Test coverage matrix: With jotting the functionalities of the module/screen across the vertical and horizontal columns and marking yes for the functionalities and counting on them..
Register in railway reservation website and perform the tasks
Please view the attachment for the sample matrix
So totally 6 test cases can be derived for the scenario.
This is the one I am aware of .. do you have any other methods, please let me know
Using Requirements Traceability Matrix,you can ensure test coverage.
If you can trace every requirment to a test case,you can ensure test coverage.Every Requirement id should have a corresponding testcase id.
I checked your attachment and what you are attempting here is similar to an orthogonal array and it is one way of ensuring test coverage. However the level at which you show this is not anywhere detailed enough for it to be effective. I prefer the Requirements Traceability Matrix mentioned by tester software but this also has to be done at a detailed level to be effective. Another method that you could also research is Pair-Wise testing ( subset of orthogonal array).
I have not failed. I've just found 10,000 ways that won't work" --Thomas Edison
I doubt whether any tool available to ensure test coverage, but defenitely there are techniques.And one of that is the traceability from requirement to scenarios to testcases.
For your example of Rgister in railway and perform reservation and cancel tickes.
We need to split the requirement to different scenarios and write testcases for each scenario. Eg:
How many ways can register?
What are the mandatory/optional params for registration?
Can we do reservation immediately after registration?
How many days before can reserve the ticket?
How do I know whether the actual reservation happens?
How many days before we can cancel the ticket?
What is the different cancellation fees?
etc..... So for each of the above questions(I will call it as scenarios) we can have one or more test cases...And if we can trace like this, we will be in a position to say, yes my test cases are complete..Why ? because these are the different ways this requirement can be used by the end user and i have covered all.....This will help us to catch if anything missing....
Its very true that "Requirements Traceability Matrix" helps alot in this regards but on the other hand to make it simple we can use "Use Cases" to derive Test Point Matrix and in that cleary mentioning each Use Case reference. This is an alternative route to analyze Test Coverage and if it doesnt work in your case then one can revert to "RTM".
Using a requirements traceability matrix to ensure coverage assumes a few things
1. There is a requirement and/or use-case for every decision path + user requirement in the software
2. Every function/algorithm has one or more code-level test cases
Agree that req traceability matrix is one tool to ensure coverage. No doubt about that and you'll find it's quite effective as ensuring coverage. But you should also get your friendly R&D team to make a build compiled w/ coverage libraries. I think we use BoundsChecker if my memory serves me right. Although the app perf. significantly degradates, execute as many test cases as possible (WB and BB) and you'll get a report as to how many functions were called. This will at least give you an idea how much function coverage you're getting.
Path coverage is another story....there's no tool to capture this stat so it's up to you to define software paths/decisions to ensure proper coverage. I've used flowcharts/decision flow diagrams in the past and this has worked well for me. They are a pain to create but they are an incredibly effective way to not only learn your app inside and out but also of course to understand decision paths and help understand how much path coverage you have.
Reserve a few months every so often and preview retirement throughout your career. You won't regret that a 35 year career was reduced to 34 years to take vacations measured in months in order to remember what a stress and care-free life is all about.
Books and hard work will get you anywhere you want to go.