-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstallO.LST
More file actions
687 lines (459 loc) · 25.7 KB
/
Copy pathinstallO.LST
File metadata and controls
687 lines (459 loc) · 25.7 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
PL/SQL procedure successfully completed.
old:create user &schema_owner. identified by &schema_owner.
default tablespace users
quota 1M on users
temporary tablespace temp
new:create user wtp_demo identified by wtp_demo
default tablespace users
quota 1M on users
temporary tablespace temp
User WTP_DEMO created.
old:grant create session to &schema_owner.
new:grant create session to wtp_demo
Grant succeeded.
old:grant create type to &schema_owner.
new:grant create type to wtp_demo
Grant succeeded.
old:grant create sequence to &schema_owner.
new:grant create sequence to wtp_demo
Grant succeeded.
old:grant create table to &schema_owner.
new:grant create table to wtp_demo
Grant succeeded.
old:grant create trigger to &schema_owner.
new:grant create trigger to wtp_demo
Grant succeeded.
old:grant create view to &schema_owner.
new:grant create view to wtp_demo
Grant succeeded.
old:grant create procedure to &schema_owner.
new:grant create procedure to wtp_demo
Grant succeeded.
WTPLSQL_ENABLE is TRUE
Check WTPLSQL_ENABLE is Done.
PL/SQL procedure successfully completed.
Connected.
old:begin
if USER != upper('&schema_owner')
then
raise_application_error (-20000,
'Not logged in as &schema_owner');
end if;
end;
new:begin
if USER != upper('wtp_demo')
then
raise_application_error (-20000,
'Not logged in as wtp_demo');
end if;
end;
PL/SQL procedure successfully completed.
SHOW_VERSION
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1.1.0
PASS Ad-Hoc Test. EQ - Expected "1" and got "1"
PL/SQL procedure successfully completed.
Install Package Test
Package TEST_DBMS_OUTPUT compiled
Package Body TEST_DBMS_OUTPUT compiled
Package Body TEST_DBMS_OUTPUT compiled
wtPLSQL 1.1.0 - Run ID 29: 29-Jun-2018 01:04:14 PM
Test Results for WTP_DEMO.TEST_DBMS_OUTPUT
Total Test Cases: 0 Total Assertions: 1
Minimum Interval msec: 10 Failed Assertions: 0
Average Interval msec: 10 Error Assertions: 0
Maximum Interval msec: 10 Test Yield: 100.00%
Total Run Time (sec): 0.1
- WTP_DEMO.TEST_DBMS_OUTPUT Test Result Details (Test Run ID 29)
-----------------------------------------------------------
PASS 10ms Test 1. EQ - Expected "Test 1" and got "Test 1"
PL/SQL procedure successfully completed.
Package Body TEST_DBMS_OUTPUT compiled
Test 1
PL/SQL procedure successfully completed.
wtPLSQL 1.1.0 - Run ID 30: 29-Jun-2018 01:04:15 PM
Test Results for WTP_DEMO.TEST_DBMS_OUTPUT
Total Test Cases: 0 Total Assertions: 0
Minimum Interval msec: 0 Failed Assertions: 0
Average Interval msec: 0 Error Assertions: 0
Maximum Interval msec: 0 Test Yield: %
Total Run Time (sec): 0.0
*** Test Runner Error ***
ORA-20000: Fault insertion exception
ORA-06512: at "WTP_DEMO.TEST_DBMS_OUTPUT", line 10
ORA-06512: at "WTP_DEMO.TEST_DBMS_OUTPUT", line 18
ORA-06512: at line 1
ORA-06512: at "WTP.WTPLSQL", line 311
PL/SQL procedure successfully completed.
Package Body TEST_DBMS_OUTPUT compiled
This should be preserved.
PL/SQL procedure successfully completed.
wtPLSQL 1.1.0 - Run ID 31: 29-Jun-2018 01:04:15 PM
Test Results for WTP_DEMO.TEST_DBMS_OUTPUT
Total Test Cases: 0 Total Assertions: 0
Minimum Interval msec: 0 Failed Assertions: 0
Average Interval msec: 0 Error Assertions: 0
Maximum Interval msec: 0 Test Yield: %
Total Run Time (sec): 0.0
*** Test Runner Error ***
ORA-20000: ORA-20000: Fault insertion exception
ORA-06512: at "WTP_DEMO.TEST_DBMS_OUTPUT", line 21
ORA-06512: at "WTP_DEMO.TEST_DBMS_OUTPUT", line 47
ORA-06512: at "WTP_DEMO.TEST_DBMS_OUTPUT", line 53
ORA-06512: at line 1
ORA-06512: at "WTP.WTPLSQL", line 311
PL/SQL procedure successfully completed.
Install Table Test
Error starting at line : 2 File @ C:\Users\Duane\Documents\GitHub\wtPLSQL\src\demo\Table-Test.sql
In command -
drop table table_test_tab
Error report -
ORA-00942: table or view does not exist
00942. 00000 - "table or view does not exist"
*Cause:
*Action:
Table TABLE_TEST_TAB created.
Package TABLE_TEST_PKG compiled
Package Body TABLE_TEST_PKG compiled
wtPLSQL 1.1.0 - Run ID 32: 29-Jun-2018 01:04:15 PM
Test Results for WTP_DEMO.TABLE_TEST_PKG
Total Test Cases: 1 Total Assertions: 2
Minimum Interval msec: 2 Failed Assertions: 0
Average Interval msec: 5 Error Assertions: 0
Maximum Interval msec: 8 Test Yield: 100.00%
Total Run Time (sec): 0.0
- WTP_DEMO.TABLE_TEST_PKG Test Result Details (Test Run ID 32)
-----------------------------------------------------------
---- Test Case: Happy Path 1
PASS 8ms Successful Insert. RAISES/THROWS - No exception was expected. Exception raised was "". Exception raised by: "insert into table_test_tab (id, name) values (1, 'TEST1')".
PASS 2ms Confirm l_rec.name. EQ - Expected "TEST1" and got "TEST1"
PL/SQL procedure successfully completed.
Install Test Runner
Package SIMPLE_TEST_RUNNER compiled
Package Body SIMPLE_TEST_RUNNER compiled
PL/SQL procedure successfully completed.
wtPLSQL 1.1.0 - Run ID 33: 29-Jun-2018 01:04:16 PM
Test Results for WTP_DEMO.SIMPLE_TEST_RUNNER
Total Test Cases: 0 Total Assertions: 1
Minimum Interval msec: 4 Failed Assertions: 0
Average Interval msec: 4 Error Assertions: 0
Maximum Interval msec: 4 Test Yield: 100.00%
Total Run Time (sec): 0.0
PL/SQL procedure successfully completed.
wtPLSQL 1.1.0 - Run ID 33: 29-Jun-2018 01:04:16 PM
Test Results for WTP_DEMO.SIMPLE_TEST_RUNNER
Total Test Cases: 0 Total Assertions: 1
Minimum Interval msec: 4 Failed Assertions: 0
Average Interval msec: 4 Error Assertions: 0
Maximum Interval msec: 4 Test Yield: 100.00%
Total Run Time (sec): 0.0
- WTP_DEMO.SIMPLE_TEST_RUNNER Test Result Details (Test Run ID 33)
-----------------------------------------------------------
PASS 4ms Ad-Hoc Test. EQ - Expected "1" and got "1"
PL/SQL procedure successfully completed.
Package Body SIMPLE_TEST_RUNNER compiled
wtPLSQL 1.1.0 - Run ID 34: 29-Jun-2018 01:04:16 PM
Test Results for WTP_DEMO.SIMPLE_TEST_RUNNER
Total Test Cases: 2 Total Assertions: 4
Minimum Interval msec: 0 Failed Assertions: 1
Average Interval msec: 0 Error Assertions: 0
Maximum Interval msec: 1 Test Yield: 75.00%
Total Run Time (sec): 0.0
- WTP_DEMO.SIMPLE_TEST_RUNNER Test Result Details (Test Run ID 34)
-----------------------------------------------------------
---- Test Case: My Test Case A
PASS 1ms Ad-Hoc Test1. EQ - Expected "1" and got "1"
PASS 0ms Ad-Hoc Test2. EQ - Expected "2" and got "2"
---- Test Case: My Test Case B
#FAIL# 0ms Ad-Hoc Test1. EQ - Expected " 4" and got "4"
PASS 0ms Ad-Hoc Test2. EQ - Expected "5" and got "5"
PL/SQL procedure successfully completed.
Package Body SIMPLE_TEST_RUNNER compiled
wtPLSQL 1.1.0 - Run ID 35: 29-Jun-2018 01:04:16 PM
Test Results for WTP_DEMO.SIMPLE_TEST_RUNNER
Total Test Cases: 0 Total Assertions: 1
Minimum Interval msec: 230 Failed Assertions: 0
Average Interval msec: 230 Error Assertions: 0
Maximum Interval msec: 230 Test Yield: 100.00%
Total Run Time (sec): 0.2
Code Coverage for PACKAGE BODY WTP_DEMO.SIMPLE_TEST_RUNNER
Ignored Lines: 0 Total Profiled Lines: 3
Excluded Lines: 0 Total Executed Lines: 2
Minimum LineExec usec: 0 Not Executed Lines: 0
Average LineExec usec: 21 Unknown Lines: 1
Maximum LineExec usec: 41 Code Coverage: 100.00%
Trigger Source Offset: 0
PL/SQL procedure successfully completed.
Package Body SIMPLE_TEST_RUNNER compiled
wtPLSQL 1.1.0 - Run ID 36: 29-Jun-2018 01:04:17 PM
Test Results for WTP_DEMO.SIMPLE_TEST_RUNNER
Total Test Cases: 1 Total Assertions: 1
Minimum Interval msec: 285 Failed Assertions: 0
Average Interval msec: 285 Error Assertions: 0
Maximum Interval msec: 285 Test Yield: 100.00%
Total Run Time (sec): 0.3
Code Coverage for PACKAGE BODY WTP_DEMO.SIMPLE_TEST_RUNNER
Ignored Lines: 4 Total Profiled Lines: 8
Excluded Lines: 0 Total Executed Lines: 3
Minimum LineExec usec: 0 Not Executed Lines: 0
Average LineExec usec: 1 Unknown Lines: 1
Maximum LineExec usec: 2 Code Coverage: 100.00%
Trigger Source Offset: 0
- WTP_DEMO.SIMPLE_TEST_RUNNER Test Result Details (Test Run ID 36)
-----------------------------------------------------------
---- Test Case: My Test Case
PASS 285ms Ad-Hoc Test. EQ - Expected "5" and got "5"
- WTP_DEMO.SIMPLE_TEST_RUNNER PACKAGE BODY Code Coverage Details (Test Run ID 36)
Source TotTime MinTime MaxTime
Line Stat Occurs (usec) (usec) (usec) Text
------ ---- ------ --------- ------- --------- ------------
4 UNKN 0 1 1 1 function add2 (in_val1 number, in_val2 number) return number is
7 EXEC 1 2 2 2 l_result := in_val1 + in_val2;
8 EXEC 1 0 0 0 return l_result;
9 EXEC 1 2 2 2 end add2;
10 IGNR 0 3 3 3 procedure wtplsql_run is begin --%WTPLSQL_begin_ignore_lines%--
11 IGNR 2 45 2 43 wt_assert.g_testcase := 'My Test Case';
12 IGNR 1 105 1 104 wt_assert.eq(msg_in => 'Ad-Hoc Test'
15 IGNR 1 1 1 1 end wtplsql_run; --%WTPLSQL_end_ignore_lines%--
PL/SQL procedure successfully completed.
Install Trigger Test
Error starting at line : 2 File @ C:\Users\Duane\Documents\GitHub\wtPLSQL\src\demo\Trigger-Test.sql
In command -
drop table trigger_test_tab
Error report -
ORA-00942: table or view does not exist
00942. 00000 - "table or view does not exist"
*Cause:
*Action:
Error starting at line : 4 File @ C:\Users\Duane\Documents\GitHub\wtPLSQL\src\demo\Trigger-Test.sql
In command -
drop sequence trigger_test_seq
Error report -
ORA-02289: sequence does not exist
02289. 00000 - "sequence does not exist"
*Cause: The specified sequence does not exist, or the user does
not have the required privilege to perform this operation.
*Action: Make sure the sequence name is correct, and that you have
the right to perform the desired operation on this sequence.
Sequence TRIGGER_TEST_SEQ created.
Table TRIGGER_TEST_TAB created.
Trigger TRIGGER_TEST_BIR compiled
Package TRIGGER_TEST_PKG compiled
Package Body TRIGGER_TEST_PKG compiled
wtPLSQL 1.1.0 - Run ID 37: 29-Jun-2018 01:04:18 PM
Test Results for WTP_DEMO.TRIGGER_TEST_PKG
Total Test Cases: 1 Total Assertions: 3
Minimum Interval msec: 0 Failed Assertions: 0
Average Interval msec: 196 Error Assertions: 0
Maximum Interval msec: 585 Test Yield: 100.00%
Total Run Time (sec): 0.6
Code Coverage for TRIGGER WTP_DEMO.TRIGGER_TEST_BIR
Ignored Lines: 0 Total Profiled Lines: 5
Excluded Lines: 0 Total Executed Lines: 4
Minimum LineExec usec: 2 Not Executed Lines: 0
Average LineExec usec: 1355 Unknown Lines: 1
Maximum LineExec usec: 5387 Code Coverage: 100.00%
Trigger Source Offset: 3
- WTP_DEMO.TRIGGER_TEST_PKG Test Result Details (Test Run ID 37)
-----------------------------------------------------------
---- Test Case: Constructor Happy Path 1
PASS 585ms l_rec.id. ISNOTNULL - Expected NOT NULL and got "1"
PASS 4ms l_rec.name. EQ - Expected "Test1" and got "Test1"
PASS 0ms l_rec.created_dtm. ISNOTNULL - Expected NOT NULL and got "29-JUN-18"
- WTP_DEMO.TRIGGER_TEST_BIR TRIGGER Code Coverage Details (Test Run ID 37)
Source TotTime MinTime MaxTime
Line Stat Occurs (usec) (usec) (usec) Text
------ ---- ------ --------- ------- --------- ------------
4 UNKN 0 5 5 5 begin
5 EXEC 1 5 5 5 if :new.id is null
7 EXEC 1 5387 5387 5387 :new.id := trigger_test_seq.nextval;
9 EXEC 1 25 2 23 :new.created_dtm := sysdate;
10 EXEC 1 3 3 3 end;
PL/SQL procedure successfully completed.
Install Type Test
Type SIMPLE_TEST_OBJ_TYPE compiled
Type Body SIMPLE_TEST_OBJ_TYPE compiled
Package TEST_SIMPLE_OBJECT compiled
Package Body TEST_SIMPLE_OBJECT compiled
wtPLSQL 1.1.0 - Run ID 38: 29-Jun-2018 01:04:19 PM
Test Results for WTP_DEMO.TEST_SIMPLE_OBJECT
Total Test Cases: 1 Total Assertions: 2
Minimum Interval msec: 0 Failed Assertions: 0
Average Interval msec: 202 Error Assertions: 0
Maximum Interval msec: 404 Test Yield: 100.00%
Total Run Time (sec): 0.4
Code Coverage for TYPE BODY WTP_DEMO.SIMPLE_TEST_OBJ_TYPE
Ignored Lines: 0 Total Profiled Lines: 10
Excluded Lines: 1 Total Executed Lines: 4
Minimum LineExec usec: 1 Not Executed Lines: 4
Average LineExec usec: 1 Unknown Lines: 1
Maximum LineExec usec: 4 Code Coverage: 50.00%
Trigger Source Offset: 0
- WTP_DEMO.TEST_SIMPLE_OBJECT Test Result Details (Test Run ID 38)
-----------------------------------------------------------
---- Test Case: Constructor Happy Path 1
PASS 404ms Object MINIMUM_VALUE. ISNULL - Expected NULL and got ""
PASS 0ms Object OBSERVATIONS. EQ - Expected "0" and got "0"
- WTP_DEMO.SIMPLE_TEST_OBJ_TYPE TYPE BODY Code Coverage Details (Test Run ID 38)
Source TotTime MinTime MaxTime
Line Stat Occurs (usec) (usec) (usec) Text
------ ---- ------ --------- ------- --------- ------------
2 UNKN 0 3 3 3 CONSTRUCTOR FUNCTION simple_test_obj_type
7 EXEC 1 1 1 1 minimum_value := null;
8 EXEC 1 1 1 1 observations := 0;
9 EXEC 1 3 3 3 return;
10 EXEC 1 4 4 4 end simple_test_obj_type;
11#NOTX# 0 0 0 0 member procedure add_observation
16#NOTX# 0 0 0 0 If minimum_value is null then minimum_value := in_observation;
17#NOTX# 0 0 0 0 else minimum_value := least(minimum_value, in_observation);
19#NOTX# 0 0 0 0 observations := observations + 1;
20 EXCL 0 0 0 0 end add_observation;
PL/SQL procedure successfully completed.
utPLSQL 2.3 ut_betwnstr Example
Function BETWNSTR compiled
Package UT_BETWNSTR compiled
Package Body UT_BETWNSTR compiled
wtPLSQL 1.1.0 - Run ID 39: 29-Jun-2018 01:04:20 PM
Test Results for WTP_DEMO.UT_BETWNSTR
Total Test Cases: 0 Total Assertions: 5
Minimum Interval msec: 0 Failed Assertions: 0
Average Interval msec: 54 Error Assertions: 0
Maximum Interval msec: 272 Test Yield: 100.00%
Total Run Time (sec): 0.3
Code Coverage for FUNCTION WTP_DEMO.BETWNSTR
Ignored Lines: 0 Total Profiled Lines: 3
Excluded Lines: 0 Total Executed Lines: 2
Minimum LineExec usec: 1 Not Executed Lines: 0
Average LineExec usec: 3 Unknown Lines: 1
Maximum LineExec usec: 20 Code Coverage: 100.00%
Trigger Source Offset: 0
- WTP_DEMO.UT_BETWNSTR Test Result Details (Test Run ID 39)
-----------------------------------------------------------
PASS 272ms Typical valid usage. EQ - Expected "cde" and got "cde"
PASS 0ms NULL start. ISNULL - Expected NULL and got ""
PASS 0ms NULL end. ISNULL - Expected NULL and got ""
PASS 0ms End smaller than start. ISNULL - Expected NULL and got ""
PASS 0ms End larger than string length. EQ - Expected "cdefg" and got "cdefg"
- WTP_DEMO.BETWNSTR FUNCTION Code Coverage Details (Test Run ID 39)
Source TotTime MinTime MaxTime
Line Stat Occurs (usec) (usec) (usec) Text
------ ---- ------ --------- ------- --------- ------------
1 UNKN 0 9 1 3 FUNCTION betwnStr (
9 EXEC 5 31 1 20 RETURN (
16 EXEC 5 1 1 1 END;
PL/SQL procedure successfully completed.
utPLSQL 2.3 ut_calc_secs_between Example
Procedure CALC_SECS_BETWEEN compiled
Package UT_CALC_SECS_BETWEEN compiled
Package Body UT_CALC_SECS_BETWEEN compiled
wtPLSQL 1.1.0 - Run ID 40: 29-Jun-2018 01:04:20 PM
Test Results for WTP_DEMO.UT_CALC_SECS_BETWEEN
Total Test Cases: 0 Total Assertions: 2
Minimum Interval msec: 0 Failed Assertions: 0
Average Interval msec: 137 Error Assertions: 0
Maximum Interval msec: 274 Test Yield: 100.00%
Total Run Time (sec): 0.3
Code Coverage for PROCEDURE WTP_DEMO.CALC_SECS_BETWEEN
Ignored Lines: 0 Total Profiled Lines: 3
Excluded Lines: 0 Total Executed Lines: 2
Minimum LineExec usec: 0 Not Executed Lines: 0
Average LineExec usec: 3 Unknown Lines: 1
Maximum LineExec usec: 9 Code Coverage: 100.00%
Trigger Source Offset: 0
- WTP_DEMO.UT_CALC_SECS_BETWEEN Test Result Details (Test Run ID 40)
-----------------------------------------------------------
PASS 274ms Same dates. EQ - Expected "0" and got "0"
PASS 0ms Exactly one day. EQ - Expected "86400" and got "86400"
- WTP_DEMO.CALC_SECS_BETWEEN PROCEDURE Code Coverage Details (Test Run ID 40)
Source TotTime MinTime MaxTime
Line Stat Occurs (usec) (usec) (usec) Text
------ ---- ------ --------- ------- --------- ------------
1 UNKN 0 3 1 2 PROCEDURE calc_secs_between (
10 EXEC 2 12 3 9 secs := (date2 - date1) * 24 * 60 * 60;
11 EXEC 2 1 0 1 END;
PL/SQL procedure successfully completed.
utPLSQL 2.3 ut_str Example
Package STR compiled
Package Body STR compiled
wtPLSQL 1.1.0 - Run ID 41: 29-Jun-2018 01:04:21 PM
Test Results for WTP_DEMO.STR
Total Test Cases: 0 Total Assertions: 3
Minimum Interval msec: 0 Failed Assertions: 0
Average Interval msec: 102 Error Assertions: 0
Maximum Interval msec: 305 Test Yield: 100.00%
Total Run Time (sec): 0.3
Code Coverage for PACKAGE BODY WTP_DEMO.STR
Ignored Lines: 14 Total Profiled Lines: 25
Excluded Lines: 1 Total Executed Lines: 4
Minimum LineExec usec: 0 Not Executed Lines: 5
Average LineExec usec: 1 Unknown Lines: 1
Maximum LineExec usec: 9 Code Coverage: 44.40%
Trigger Source Offset: 0
- WTP_DEMO.STR Test Result Details (Test Run ID 41)
-----------------------------------------------------------
PASS 305ms Typical Valid Usage. EQ - Expected "is is" and got "is is"
PASS 1ms Test Negative Start. EQ - Expected "ing" and got "ing"
PASS 0ms Start bigger than end. ISNULL - Expected NULL and got ""
- WTP_DEMO.STR PACKAGE BODY Code Coverage Details (Test Run ID 41)
Source TotTime MinTime MaxTime
Line Stat Occurs (usec) (usec) (usec) Text
------ ---- ------ --------- ------- --------- ------------
3 UNKN 0 4 1 2 FUNCTION betwn (
10 EXEC 3 2 0 1 l_start PLS_INTEGER := start_in;
12 EXEC 3 1 0 1 IF l_start = 0
14#NOTX# 0 0 0 0 l_start := 1;
17 EXEC 3 12 1 9 RETURN (SUBSTR (
25 EXEC 3 0 0 0 END;
27 EXCL 0 0 0 0 FUNCTION betwn2 (
36#NOTX# 0 0 0 0 IF end_in < 0
38#NOTX# 0 0 0 0 RETURN betwn (string_in, start_in, end_in);
40#NOTX# 0 0 0 0 RETURN (SUBSTR (
51#NOTX# 0 0 0 0 END;
55 IGNR 0 1 1 1 PROCEDURE ut_setup
58 IGNR 1 2 2 2 NULL;
61 IGNR 0 0 0 0 PROCEDURE ut_teardown
64 IGNR 1 0 0 0 NULL;
68 IGNR 0 5 5 5 PROCEDURE ut_betwn
71 IGNR 1 37 1 36 utassert.eq (
76 IGNR 1 2 1 1 utassert.eq (
81 IGNR 1 3 1 2 utassert.isnull (
85 IGNR 1 0 0 0 END;
88 IGNR 0 2 2 2 PROCEDURE wtplsql_run IS
90 IGNR 1 1 1 1 ut_setup;
91 IGNR 1 1 1 1 ut_betwn;
92 IGNR 1 0 0 0 ut_teardown;
Source TotTime MinTime MaxTime
Line Stat Occurs (usec) (usec) (usec) Text
------ ---- ------ --------- ------- --------- ------------
93 IGNR 1 1 1 1 END wtplsql_run;
PL/SQL procedure successfully completed.
utPLSQL 2.3 ut_truncit Example
Procedure TRUNCIT compiled
Function TABCOUNT compiled
Package UT_TRUNCIT compiled
Package Body UT_TRUNCIT compiled
wtPLSQL 1.1.0 - Run ID 42: 29-Jun-2018 01:04:22 PM
Test Results for WTP_DEMO.UT_TRUNCIT
Total Test Cases: 0 Total Assertions: 1
Minimum Interval msec: 363 Failed Assertions: 0
Average Interval msec: 363 Error Assertions: 0
Maximum Interval msec: 363 Test Yield: 100.00%
Total Run Time (sec): 0.4
Code Coverage for PROCEDURE WTP_DEMO.TRUNCIT
Ignored Lines: 0 Total Profiled Lines: 3
Excluded Lines: 0 Total Executed Lines: 2
Minimum LineExec usec: 3 Not Executed Lines: 0
Average LineExec usec: 7432 Unknown Lines: 1
Maximum LineExec usec: 14854 Code Coverage: 100.00%
Trigger Source Offset: 0
- WTP_DEMO.UT_TRUNCIT Test Result Details (Test Run ID 42)
-----------------------------------------------------------
PASS 363ms Test of TRUNCIT. EQ - Expected "0" and got "0"
- WTP_DEMO.TRUNCIT PROCEDURE Code Coverage Details (Test Run ID 42)
Source TotTime MinTime MaxTime
Line Stat Occurs (usec) (usec) (usec) Text
------ ---- ------ --------- ------- --------- ------------
1 UNKN 0 5 5 5 PROCEDURE truncit (
7 EXEC 1 14861 7 14854 EXECUTE IMMEDIATE 'truncate table ' || NVL (sch, USER) || '.' || tab;
8 EXEC 1 3 3 3 END;
PL/SQL procedure successfully completed.