Documente Academic
Documente Profesional
Documente Cultură
Ingineria Programrii
Laborator 3
Adrian Iftene
adiftene@infoiasi.ro
Adrian Iftene - IP
Introducere n Testare
Cuprins
Unde ne aflm?
Definiia i Scopurile
Testrii Software
Fapte i Numere
Timp
Pre
Cuprins
Unde ne aflm?
Definiia i Scopurile
Testrii Software
Fapte i Numere
Testare Software
Testarea Software NU este o faz
Este un proces care trebuie integrat n
toate fazele construciei produsului
software
Exist documente de testare asociate la
fiecare faz a dezvoltrii
Comunicare Deficitar
Comunicare Deficitar n
tratarea Cerinelor
Cuprins
Unde ne aflm?
Definiia i Scopurile
Testrii Software
Fapte i Numere
Cerine Modelare
Impl.
Client
Atenie
Gsirea trzie a bugs un
cost ct mai mare pentru a
le fixa
CERINE
MODELARE IMPLEM.
TESTARE CLIENT
Testare Profesional
Profesionalismul n testare const n
abilitatea de a selecta numrul minim
de cazuri de testare eficient ce va fi
capabil s verifice numrul maxim de
funcii ale sistemului.
Designs
Acquires
Configures
Utilizes
Support
Determine the
usage of
Procese
de Test
Create
Articulates
Trains
Applies
Internalize
Echipa
de Test
Provides a
Platform
for the
operation of
Designs
Acquires
Configures
Utilizes
Support
Testware
Metodologii de Testare
Adrian Iftene - IP
Coninut
Diferena dintre testare SW i debug SW
Nivele de Test
Clase de Test
Coninutul Testrii
Testare i Dezvoltare SW
Debug
Verificarea
respectrii cerinelor
Verificarea
validitii seciunilor
De regul e fcut
de o entitate extern
i neutr
E fcut de
programator
Este un proces
E un proces aleator
Nivele de Test
Unitate sau Debug.
Modul/Sub-Sistem.
Integrare.
Sistem.
Acceptare.
Clase de Test
Regresie.
Efecte Laterale.
Redundan.
Stres i Suprancrcare.
Refacere.
BLACK BOX
Input
Output
Spec
WHITE
BOX
IF
END
DO
Coninutul Testrii
STP
STP
TRD
TRD
STD
STD
Execu
Execuie
ie
STR
STR
STP
- Software Test Plan.
TRD
- Test Requirement Definition.
STD
- Software Test Description.
Tests Execution or Test Cycles.
STR
- Software Test Report.
Unit Testing
Testare la Integrare
STP:
TRD:
STD:
Testare Automat
Presupunea s crem n paralel clase de test
pentru a testa clasele de baz
void CElevatorTest::GoToFloorTest1()
{
CElevator Elevator;
Elevator.GoToFloor( 5 );
assert( Elevator.GetFloor() == 5 );
Elevator.GoToFloor( 0 );
assert( Elevator.mFloor == 0 );
}
Se gsesc rapid
problemele
Se ctig timp cnd e
nevoie s repetm testele
Procesul de scriere a
codului e mult mai flexibil
Reduce volumul de testare
manual
Dezvoltarea software
devine previzibil i
repetabil
Rezolv problemele de
interfa: scrierea corect
a textelor, mesajelor,
aranjarea corect n
pagin, n ordinea care
trebuie, sunt vizibile, etc.
Realizarea Scenariilor de
test poate fi o treab de
durat i anevoioas i
implic o cunoatere
temeinic a ntregului
sistem
Links
http://www.automatedqa.com/techpapers/testing.asp
http://www.codeproject.com/tools/tilo.asp
http://www.parasoft.com/jsp/products/home.jsp?
product=Cpp
http://www.verifysoft.com/en_ctapp.html
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/dncdev00/html/vc00f6.asp
http://www.codeproject.com/gen/design/autp5.asp
http://www.codeproject.com/cpp/UnitTestsReporter.asp
http://www.codeproject.com/gen/design/onunittesting.asp
http://www.code-agazine.com/Article.aspx?
quickid=0411031
C++:
http://www.chris-lott.org/resources/cstyle/
http://geosoft.no/development/cppstyle.html
Java:
http://java.sun.com/docs/codeconv/
http://geosoft.no/development/javastyle.html