about summary refs log tree commit diff
path: root/usth/ICT2.7/P4L2 Black-Box Testing Subtitles/10 - Test Data Selection Quiz Solution - lang_en_vs4.srt
blob: 418ed91dd3527c144c1475a7bce496aca5da2857 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
1
00:00:00,025 --> 00:00:02,900
Okay, so now we're going to answer the question. So if we want

2
00:00:02,900 --> 00:00:06,520
to consider all these inputs, and run them all on the software,

3
00:00:06,520 --> 00:00:09,490
let's see how it will work. Let's assume that these are, 32

4
00:00:09,490 --> 00:00:12,280
bit integers. So at this point what we will have is, a

5
00:00:12,280 --> 00:00:15,130
number of combination, which is 2 to the 32, times 2 to

6
00:00:15,130 --> 00:00:18,390
the 32. They're two integers. This is equal to 2 to the

7
00:00:18,390 --> 00:00:21,910
64, which in turn, is more or less equal, to 10 to

8
00:00:21,910 --> 00:00:25,110
the 19. So 10 to the 19 is the number of tests that

9
00:00:25,110 --> 00:00:27,960
we need to run to cover the whole domain. Now let's assume

10
00:00:27,960 --> 00:00:31,400
that we can run one test per nanosecond. So what that means

11
00:00:31,400 --> 00:00:34,290
is that we can run 10 to the 9 tests per second,

12
00:00:34,290 --> 00:00:37,240
and that's a lot. If we do the math, that results in 10

13
00:00:37,240 --> 00:00:40,750
to the 10 seconds over all, because we have 10 to the

14
00:00:40,750 --> 00:00:43,760
19 tests, we could run 10 to the 9 tests per second

15
00:00:43,760 --> 00:00:46,630
so, we do the math, and we can run all these tests

16
00:00:46,630 --> 00:00:50,340
in 10 to the 10 seconds. And what that corresponds to, it's about

17
00:00:50,340 --> 00:00:54,470
600 years, so a lot of time. So even for such

18
00:00:54,470 --> 00:00:57,710
a simple problem, a problem that takes two integers and adds them,

19
00:00:57,710 --> 00:01:00,990
it will take more than 500 years to test it exhaustively. So

20
00:01:00,990 --> 00:01:04,690
the bottom line here is that we just can't do exhaustive testing.