So blogger was down yesterday so I couldn't blog...Interesting and also my SVN repository is down as well for another subject...bah it will get better.....
Anyway Test Cases....This is so important....Since I am doing FIT 2024 I can see a huge correspondence here with that subject and I like the Test case combination table...The one with all the test cases showing their paths. I am going to implement that into my report as a summary of my test cases for FIT 2024.
Its great when you can apply something you learnt from another unit into another unit. A big correlation and love that. Anyway test cases are so useful for the programmer...How do you know if something is to specification? Test it....How can you be sure the system will work according to requirements? Test it....
Without testing one cannot prove quality.
3 kinds of testing stage
- Unit Testing
- Integration Testing
- System Testing
Integration testing should be done based on what the system needs...Like System needs a purchase order, allright lets integrate that now, and then now needs to confirm the order, lets integrate that now. Based on number of threads. Why this is done? Because if you think about it, if I have tested my unit cases why should I worry if the system would break on integration? The reason why it would break on integration would be many other comnponents and modules do not necessarily communicate with each other well... High coupling or low cohesion problems tend to show up during Integration testing.
System testing, is when everything is integrated lets make sure the system works. Smoke tests are tests runned daily so that the system is exercised daily.
Turotial
Writing Test cases is not easy. There are many paths to consider. This does looks like the cyclomatic complexity flow graph though but the cyclomatic complexity is to determine the maximum number of test cases needed to test all states through the class. Anymore then that would mean, there are too many test cases and thus wasting time.
In the same way the test cases applied in FIT 2001 takes the Use case as the stepping stone to creating test cases. I suppose if I were to start a process to generate test cases...
I would first get the basic flow....Like a tree and make all the alternative connections at each step... When I have completed my tree then I can evaluate the test cases I need and then start constructing them and then testing them the moment code has been implemented..
Allright need to go and finish another assignment....