negative testing

21
Negative Testing Presented By: Anisha Nayak 27/08/2014

Upload: mindfire-solutions

Post on 14-Jun-2015

210 views

Category:

Software


0 download

DESCRIPTION

Negative testing is all about ensuring that a product or application under test does NOT fail when an unexpected input is being fed. The purpose of Negative testing is to break the system and to verify the application response during unintentional inputs.

TRANSCRIPT

Page 1: Negative Testing

Negative TestingPresented By: Anisha Nayak

27/08/2014

Page 2: Negative Testing

2

Personal Details

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:

[email protected]

[email protected]

Anisha Nayak, Mindfire Solutions

Page 3: Negative Testing

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.

Agenda

Page 4: Negative Testing

Anisha Nayak, Mindfire Solutions 4

Page 5: Negative Testing

Anisha Nayak, Mindfire Solutions 5

What is Negative Testing ???

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”

Page 6: Negative Testing

Anisha 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.

Various opinions on Negative Testing

Page 7: Negative Testing

Anisha 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. ”

My Understanding

Page 8: Negative Testing

Anisha 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 it’s 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.

Positive View Of Negative Testing (1/2)

Page 9: Negative Testing

Anisha 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 isn’t 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.

Positive View Of Negative Testing (2/2)

Page 10: Negative Testing

Anisha Nayak, Mindfire Solutions 10

It is important to understand the purpose of negative testing. Valuable information about the software’s

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.

Goals Of Negative Testing (1/2)

Page 11: Negative Testing

Anisha 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).

Goals Of Negative Testing (2/2)

Page 12: Negative Testing

Anisha 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.

Techniques Of Negative Testing

This calls for a

discussion

Page 13: Negative Testing

Anisha 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.

When do you STOP Negative Testing (1/2)

Page 14: Negative Testing

Anisha 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.

When do you STOP Negative Testing (1/2)

Page 15: Negative Testing

Anisha 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.

Last But Not The Least (1/2)

Page 16: Negative Testing

Anisha 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.

Last But Not The Least (2/2)

In short you need to Think Negative while doing “NEGATIVE TESTING” to do it the best way.

Page 17: Negative Testing

Anisha Nayak, Mindfire Solutions 17

Lets’ help build a better Quality Product which is free from all potential errors !

Page 18: Negative Testing

Anisha Nayak, Mindfire Solutions 18

Any Queries ???

Page 20: Negative Testing

Anisha Nayak, Mindfire Solutions 20

Thank You

Page 21: Negative Testing

Anisha Nayak, Mindfire Solutions 21

Connect Us @

www.mindfiresolutions.com

https://www.facebook.com/MindfireSolutions

http://www.linkedin.com/company/mindfire-solutions

http://twitter.com/mindfires