The Testing Process II1 Program Testing Programs must be tested carefully in order to ensure that they work as planned. Testing is not a casual thing.

Slides:



Advertisements
Similar presentations
Solving Quadratic Equations by Factoring
Advertisements

/3024/ SUN MON TUE WED THU FRI SAT JANUARY 2011 February 2011 SMTWTFS
Warm up – Solve by Taking Roots. Solving by the Quadratic Formula.
InvEasy (Project1) Please use speaker notes for additional information!
Arrays1 From time to time an object (a variable, a picture, a label or a command) does not serve as well as a set of objects of a similar kind addressed.
The great fast food survey 2012 Get ready to record your data!
RURadfordUniversity Simple Extended Desktop Use Function-F7 to bring up the following menu, then select one of the following schemes depending on where.
VAT Calculator program Controls Properties Code Results.
Use SPSS for solving the problems Lecture#21. Opening SPSS The default window will have the data editor There are two sheets in the window: 1. Data view2.
Testing and Evaluating Software Solutions Introduction.
1 dimensional static Array Int[] a = new int[4]; A[0]A[1]A[2]A[3] Int[] b= new int[1]; B[0] Array is a list of variables having same name and same data.
5 Day Forecast Mon Tues Wed Thu Fri.
Don't leave yourself short of medication this Christmas!!
GANTT CHARTS Example Example Example Example text Tasks Example 1
Mon – 2Tue – 3Wed – 4Thu - 5Fri - 6Sat - 7Sun - 8 Mon – 9Tue – 10Wed – 11Thu - 12Fri – 13Sat – 14Sun -15 Mon – 16Tue – 17Wed – 18Thu - 19Fri – 20Sat –
JANUARY FEBRUARY MARCH APRIL MAY JUNE JULY AUGUST SEPTEMBER
JANUARY FEBRUARY MARCH APRIL MAY JUNE JULY AUGUST SEPTEMBER
به نام خداوند خورشید و ماه
Department Array in Visual Basic

MON TUE WED THU
+ 1 of 15 Done Delete Toolbar Label 3G 7:11 PM Item Item Item Button
Pixels.
1   1.テキストの入れ替え テキストを自由に入れ替えることができます。 フチなし全面印刷がおすすめです。 印刷のポイント.
JANUARY FEBRUARY MARCH APRIL MAY JUNE JULY AUGUST SEPTEMBER
Logo Calendar – January 2012 TO DO LIST 01/04/2012 Example TO DO LIST
January MON TUE WED THU FRI SAT SUN
January MON TUE WED THU FRI SAT SUN
2017 Jan Sun Mon Tue Wed Thu Fri Sat
ANNUAL CALENDAR HOLIDAYS JANUARY FEBRUARY MARCH APRIL MAY JUNE
HOLIDAYS ANNUAL CALENDAR JANUARY FEBRUARY MARCH APRIL MAY JUNE
Free PPT Diagrams : ALLPPT.com
Free PPT Diagrams : ALLPPT.com

January Sun Mon Tue Wed Thu Fri Sat
January MON TUE WED THU FRI SAT SUN
January MON TUE WED THU FRI SAT SUN

Jan Sun Mon Tue Wed Thu Fri Sat
HOLIDAYS ANNUAL CALENDAR JANUARY FEBRUARY MARCH APRIL MAY JUNE
2008 Calendar.
S M T W F S M T W F
January MON TUE WED THU FRI SAT SUN
Sun Mon Tue Wed Thu Fri Sat
2 0 X X s c h e d u l e 1 MON TUE WED THU JANUARY 20XX FRI SAT SUN MEMO.
January MON TUE WED THU FRI SAT SUN
JANUARY 1 Sun Mon Tue Wed Thu Fri Sat
Calendar
Calendar – 2010 (October, November & December)
Calendar.
January MON TUE WED THU FRI SAT SUN
JANUARY 1 Sun Mon Tue Wed Thu Fri Sat
Sun Mon Tue Wed Thu Fri Sat
1/○~1/○ weekly schedule MON TUE WED THU FRI SAT SUN MEMO
January MON TUE WED THU FRI SAT SUN
SAT Solving Quadratic Equations by Factoring
S M T W F S M T W F
2016 | 10 OCT SUN MON TUE WED THU FRI SAT
Sun Mon Tue Wed Thu Fri Sat
JANUARY 1 Sun Mon Tue Wed Thu Fri Sat
WEB PAGES: Tables Welcome Back !.

1 January 2018 Sun Mon Tue Wed Thu Fri Sat

My Life As A Procrastinator
1 January MON TUE WED THU FRI SAT SUN MEMO 2 February MON TUE WED THU FRI SAT SUN.
2008 Calendar.
S M T W F S M T W F
S M T W F S M T W F
1 January MON TUE WED THU FRI SAT SUN MEMO 2 February MON TUE WED THU FRI SAT SUN.
Presentation transcript:

The Testing Process II1 Program Testing Programs must be tested carefully in order to ensure that they work as planned. Testing is not a casual thing. (There is a problem with real programs, they are so complicated that it takes a very long time to understand the program, rather than the computer error.)

The Testing Process II2 Black Box Testing Usually done from the program specifications No knowledge of how the program actually does what it does Often done by a separate design team The problems that need to be solved are usually very large. The examples we use are often too simple to need the solution techniques.

The Testing Process II3 Example 1: Black Box Problem: Read two numbers, ‘a’ and ‘b’. Put the larger of the numbers into the box ‘c’. Conditions to be tested:

The Testing Process II4 Example 1: Black Box both numbers positive –‘a’ larger –‘b’ larger one number positive –‘a’ positive –‘b’ positive both numbers negative –‘a’ larger (less negative) –‘b’ larger one number zero –‘a’ = 0 –‘b’ = 0 both numbers equal –both positive –both negative –both zero other conditions...

The Testing Process II5 Example 2: Black Box Test a program that shows the name of the next day each time the “Next Day” button is clicked. Seems to work ok.

The Testing Process II6 White Box Testing Uses details of just how the program works. Exhaustive test of each routine used. In real world cases, complete testing is just not possible. Requires a careful choice of just how testing is done.

The Testing Process II7 Example: White Box Testing Option Explicit Dim bytD As Byte Dim strT(1 To 7) As String Private Sub cmdDne_Click() End End Sub Private Sub cmdNxt_Click() bytD = bytD + 1 Label1.Caption = strT(bytD) End Sub Private Sub Form_Load() strT(1) = "Sun" strT(2) = "Mon" strT(3) = "Tue" strT(4) = "Wed" strT(5) = "Thr" strT(6) = "Fri" strT(7) = "Sat" bytD = 1 Label1.Caption = strT(bytD) End Sub

The Testing Process II8 White Box Testing Example There is a problem when d goes from a value of 7 to 8...

The Testing Process II9 White Box Testing Example Private Sub cmdNxt_Click() bytD = bytD + 1 If bytD = 8 Then bytD = 1 End If Label1.Caption = strT(bytD) End Sub Private Sub cmdNxt_Click() bytD = bytD + 1 Label1.Caption = strT(bytD) End Sub