Pengujian Berorientasi Obyek MG Ke 7
Pengujian Berorientasi Obyek MG Ke 7
Minggu ke 6
Object-oriented testing
Komponen yang diuji adalah class-
object.
Lebih besar dibandingkan pengujian
suatu function sehingga pendekatan
white-box testing perlu diperluas.
Tidak jelasnya ‘top’ suatu system untuk
top-down integration dan testing.
Testing levels
Testing operations pada objects
Testing object classes
Testing clusters cooperating objects
Testing OO system secara lengkap
Object Form
Pengujian Class
<<Form>>
frm P e n d a fta ra n Ij i n In ve sta si
mb A d dNe wFl a g : Bo o le a n
mb Da ta Cha n g ed : B o o l e a n
Menguji terhadap
Fo rm_ L oa d ()
semua operation yg
Fo rm_ Resiz e ()
Fo rm_ K eyD o wn( ) ada dan perubahan
atribut-atributnya.
Fo rm_ Unl o ad ()
cm d Ad d _ Cl ic k( )
cm d Ca n cel _Cl ic k( )
cm d Up d a te _ Cl ic k( )
cm d Cl o se _ Cl ic k( )
cm d Fi rst_ Cl ic k( )
cm d La st_ Cl ic k( )
cm d Ne x t_ Cli ck()
cm d Pr e vi ou s_Cl i ck()
set B ut to n s()
Cluster Testing
Gambaran UI Sistem Pendaftaran
Perijinan
+f3 +f4
+f3
+ f4
<<Form>> <<Form>>
frm PendaftaranIjinInves tas i frm PendaftaranIMB
2: Pendaftaran Baru( )
5: Masukan Pendaftaran( )
request (report)
acknowledge ()
report ()
summarise ()
send (report)
reply (report)
acknowledge ()
Weather station testing
Thread pengeksekusian methode
CommsController:request → WeatherStation:report → WeatherData:summarise
CreditLimit
AccntType
Balance
Withdraw
Deposit
Close