Anisha Nayak presents on negative testing. Negative testing involves testing software with invalid or unexpected inputs to try to cause failures. It aims to show where a system does not work by testing boundaries and error conditions. The goals of negative testing are to find faults, diagnose failures, and identify weaknesses. Techniques include using invalid data types, missing required fields, and unusual format values. Negative testing should continue until all invalid test cases are covered or no significant new issues are found.
2. 2
A certified professional from ISTQB &
V-Skills (Selenium)
Networking :
https://www.facebook.com/anisha.nayak.9
https://www.linkedin.com/profile/anisha.nayak/view?id=144724673
https://twitter.com/NayakAnisha
Contact Me:
anishan@mindfiresolutions.com
Nayak.anisha@gmail.com
Anisha Nayak, Mindfire Solutions
3. What is Negative Testing ?
Positive view of Negative Testing.
Goals of Negative Testing.
Techniques of Negative Testing.
When do you stop Negative Testing ?
Queries.
Anisha Nayak, Mindfire Solutions 3
5. Tests aimed at showing that a component or system
does not work. Negative testing is related to the
testers attitude rather than a specific test approach or
test design technique, e.g. testing with invalid input
values or exceptions.
Negative testing is aimed at showing software does
not work.
Test to fail
5Anisha Nayak, Mindfire Solutions
6. Testing done while providing negative inputs and
checking whether it gives some alert messages or not.
It is to check its potential to handle exploitation or
external problems.
Its like discovery of faults that result in failures or
crashes.
Negative Testing is done only after validating the
positive test cases first.
6Anisha Nayak, Mindfire Solutions
7. Any testing carried out by passing non recommended
values with an aim of breaking down the application,
taking a look at real world conditions and anticipating
potential errors made by end users which are not
necessarily looked up by developers/designers.
7Anisha Nayak, Mindfire Solutions
8. Few checkpoints which defines the positive aspect of
Negative testing are as follows :
You do not actually know the way your product is
treated in Market, so its always good to anticipate
bugs before the end users points it.
An eye opener for you, you really tend to find lot of
critical issues which might not be caught through
normal test approach.
8Anisha Nayak, Mindfire Solutions
9. While designing test cases we include both valid and
invalid test cases. Invalid does not mean that it
represents a value that cannot be entered by a user or
a value that the user isnt supposed to enter. It just
means that it is not one of the expected inputs for this
particular field and the software should correctly
handle these values.
9Anisha Nayak, Mindfire Solutions
10. It is important to understand the purpose of negative
testing.
Valuable information about the softwares
functionality, reliability and security breaches are
discovered and handled during negative testing.
Diagnosis of the possible causes of failures like crashes
and corruption of data.
Identification of the software weaknesses and
potential for exploitation.
10Anisha Nayak, Mindfire Solutions
11. Verification of functionality issues like error-
handling(Out of range data, Dates in incorrect format,
dd/mm/yyyy instead of the required mm/dd/yyyy).
11Anisha Nayak, Mindfire Solutions
12. Few very common ways used while doing a Negative
testing,
1. Verify each field type.
2. Skip the required data entry and try to proceed.
3. Enter large values to test the size of the fields.
4. Verify the date format and its validity.
This calls
for a
discussion
12Anisha Nayak, Mindfire Solutions
13. Negative testing is open ended, so the tester may be
tempted to go on even if only minor test failures are
encountered.
Negative testing could be exploratory in nature. So,
when does a tester stop negative testing?
1. When all your invalid inputs as test cases have been
covered.
2. When you do not find any significant issues, you can
stop conducting negative testing.
13Anisha Nayak, Mindfire Solutions
14. For projects with stiff deadlines, you may need to
present the results for verifications and assessments
for the risks. Both the developer and the clients or end
users, affirm and agree that that no further tests are
necessary depending on the priority and status of the
issue whether its critical or major/minor.
Negative testing is a powerful and effective approach to discover
significant failures, which maybe undetected under normal
operations or functions.
14Anisha Nayak, Mindfire Solutions
15. Negative testing is viewed by some as a duplicate of
the various positive tests conducted during and after
the development processes.
Negative testing is a powerful and effective approach
to discover significant failures, which maybe
undetected under normal operations or functions.
Negative testing is aimed at discovering those hidden
errors and needs skilled, experienced testers with an
eye for details that can be a red signal for possible
concerns.
15Anisha Nayak, Mindfire Solutions
16. It guarantees quality as well as helps in detecting
failure, potential errors and builds a strong base for
continual product improvement, thus should be a part
of the various testing activities during software
development.
In short you need to Think Negative while doing
NEGATIVE TESTING to do it the best way.
16Anisha Nayak, Mindfire Solutions
17. Lets help build a better Quality Product
which is free from all potential errors !
17Anisha Nayak, Mindfire Solutions