software testing – from what should we start?

3
QATestLab 21, Garmatna str., Kiev, Ukraine ph.: +38(044)277-66-61 http://qatestlab.com / [email protected] I have always been wondered what a software testing is. Why are we need to hire someone to test a software product, if the developer can spend a couple of hours on this is not a significant priority for the job. And, finally, why do I test? After all, programmers are smart guys – they write correctly. But it is not so easy as I thought. Not having any idea of what and how it should be given “to the input of” application under testing so process seemed endless. As a result a vicious circle in which the torn dates of testing, everybody is angry and tired of “stupid” developers. And only much later I singled out for themselves a clear sequence of actions that must be performed to software testing : 1. The study of the specification. This stage is the most important; it is also called the analysis of design and / or requirements. 2. Smoke testing. At this stage, we must verify whether the system works in general (whether it works properly, “complains” when not working out right, etc.). This is done in order to understand whether the application is suitable for further testing, or it does not work (does not work correctly). 3. “Positive” test. At this stage, we must verify the result of the application upon receipt of “correct” input. 4. “Negative” test. This is the fourth and final stage of initial testing. You’ve got to look at the behavior of the application, getting the input of the “wrong” data. This is done in order to determine how the application behaves in such a case. If this option is described in the specification, and it should be described, then compare the expected result with the obtained result. (c) QATestLab, 2011 http://qatestlab.com /

Upload: qatestlab

Post on 11-Mar-2016

218 views

Category:

Documents


0 download

DESCRIPTION

I have always been wondered what a software testing is. Why are we need to hire someone to test a software product, if the developer can spend a couple of hours on this is not a significant priority for the job. And, finally, why do I test? After all, programmers are smart guys – they write correctly. But it is not so easy as I thought.

TRANSCRIPT

Page 1: Software Testing – From What Should We start?

QATestLab21, Garmatna str., Kiev, Ukraineph.: +38(044)277-66-61http://qatestlab.com/ [email protected]

I have always been wondered what a software testing is. Why are we need to hire someone to test a software product, if the developer can spend a couple of hours on this is not a significant priority for the job. And, finally, why do I test? After all, programmers are smart guys – they write correctly. But it is not so easy as I thought.

Not having any idea of what and how it should be given “to the input of” appli-cation under testing so process seemed endless. As a result a vicious circle in which the torn dates of testing, everybody is angry and tired of “stupid” devel-opers.

And only much later I singled out for themselves a clear sequence of actions that must be performed to software testing:

1. The study of the specification. This stage is the most important; it is also called the analysis of design and / or requirements.2. Smoke testing. At this stage, we must verify whether the system works in general (whether it works properly, “complains” when not working out right, etc.). This is done in order to understand whether the application is suitable for further testing, or it does not work (does not work correctly).3. “Positive” test. At this stage, we must verify the result of the application upon receipt of “correct” input.4. “Negative” test. This is the fourth and final stage of initial testing. You’ve got to look at the behavior of the application, getting the input of the “wrong” data. This is done in order to determine how the application behaves in such a case. If this option is described in the specification, and it should be described, then compare the expected result with the obtained result.

So let’s go in order.

Specification, Requirements, SRS.

How to determine when and how the application should work, when, and how it should “break” (i.e., as a system or module should respond to invalid data or incorrect behavior of the user)? How should be the correct result and under what conditions the input data working correctly should take place?

(c) QATestLab, 2011 http://qatestlab.com/

Page 2: Software Testing – From What Should We start?

QATestLab21, Garmatna str., Kiev, Ukraineph.: +38(044)277-66-61http://qatestlab.com/ [email protected]

All these questions have an answer in the documentation for the application under test. In any case,  the answer should be there, otherwise the documenta-tion is not complete, which equates to an error in the documentation.

Documentation makes it possible to understand for themselves the basic steps of checking the application, where and how the application should work and where it should “break”.

The testing process

This process can be described by the following steps:

1. Check how the application works when it gets to the input of the “correct” data (to find out “what is good and what is bad,” read the documentation);2. If everything works and works properly (i.e., exactly as described in the specification), the next step is to check the boundary values (i.e., where the “correct” data start, and where they end);3. To test the application during data entry that are not within the scope of per-missible values (again, consider the specification).

The first and second paragraphs describe a process called “positive” test. “Pos-itive” test is a test on the data or scenarios that correspond to the normal (reg-ular, expected) behavior of the system under test.

The third item represents the opposite of “positive” process – a “negative” test. This testing data or scenarios that correspond to the abnormal behavior of the system being tested – various messages of software bugs, exceptions, “out-rageous” states, etc.

However, preceded by “positive” and “negative” test should be work to imple-ment the “smoke” testing.“Smoke” testing is a fast, shallow, the most common or typical scenarios, with a minimum of checks (just it was no smoke). It can run as on “positive” and “negative” data.

(c) QATestLab, 2011 http://qatestlab.com/