Before writing about negative testing, I want to talk about lateral thinking as an example. Yes I want to tell about lateral thinking ever since I know software testing, it has a great correlation with testers mindset. So its not about positive or negative testing its only about your approach towards testing. Most of time it is used to crash an application, which is also called as negative testing.
· Good example on lack of negative testing

Carol's message illustrates the value of involving QA from the very beginning. An isolated programmer in a hurry to get "code complete" is less likely to think of the negative test cases necessary to get work done/done/done.
· Negative Testing = (Showing error when not supposed to) + (Not showing error when supposed to)
· Positive Testing = (Not showing error when not supposed to) + (Showing error when supposed to)
· Usually these situations crop up during boundary testing or cause-effect testing.)
· However, in both cases, these were good results because they showed you what the application was doing and you were able to determine if it was working correctly or not. So, by my original definitions, the testing is all Now, regarding the point I made above, as a Devil's Advocate: "A negative test is more trying to get the module to do something differently than it was designed to do." We have to realize, I think, that what we call "negative testing" is often about exercising boundary conditions - and those boundaries exist within the context of design. Granted, that can be trying to get a value in to a field that it should not accept. However, a good application should have, during the requirements stage, had provisions for invalid input. Thus really what you are testing here is (a) whether the provisions for invalid input exist and (b) whether they are working about errors and finding them. It is just how you are looking for those errors that make the distinction. Correctly.
Common security mistakes
· Common security mistake is our next subject. In making changes for security systems, most of the time, only the expected outcome is tested - not the unexpected outcome.
· With security systems you have to both test that the change you make allows the access you need, and still denies the access you don’t want. Often the latter is overlooked. Don’t forget to test something still doesn’t work, alongside the something which now does work.
Negative Testing In Networking
· Few network engineers and network administrators make much use of negative testing. If they have heard of it at all, it was probably back in school, around the time (and maybe one of the reasons) they decided they would rather run networks than write code.
· Software developers commonly use negative testing to break their code, so that they can see how it fails and make it stronger. In the networking world, most of us have been satisfied to make it work and, “If it isn’t broken, don’t fix it.” The open-ended scenarios and iterative attack trees required for thorough negative testing just seemed like too much work for too little payback.
· These days, more complex networks, devices and applications—coupled with the growing number of viruses, malware and other attacks—are conspiring to drive network professionals toward doing more negative testing. For all the detail it requires, the paybacks are substantial: tighter security, better performance and thorough knowledge of the network, including its components and supported applications.
· Examples on negative testing
a) You do not have email id in yahoo and you try to login
In yahoo messenger.
b) Login screen user id input box
It is supposed to take 8 alphanumeric characters
If you enter 9 characters, it doesn't accept.
· Summary: Negative testing is a core skill of experienced testers, and requires an opportunistic, exploratory approach to get the best value from the time spent. It can find significant failures and produce invaluable strategic information about the risk model underlying testing, and allow overall confidence in the quality of the system. Negative testing is open-ended and hard to plan granularly. It needs to be managed proactively rather than over planned. Although negative testing is a powerful and effective approach, it is also a hard-to-manage task that has the potential to produce unwelcome information.
· No, no, I'm not being Negative on testing, in fact for the most part I am positive about testing.
No comments:
Post a Comment