Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 60

Testing & Debugging in

Informatica PowerCenter

1
Agenda
 What do we test in Informatica?
 Preparing to test
 Different types of problems
 Solutions to problems
 Using the debugger
 Where to look for problem causes
 Common problems and their solutions

2
Testing – What needs to be tested?
 Format
Examples:
 File
length
 Number formats
 Representation of NULL
 Logic
Examples:
 Calculation results
 Results of logical conditions
3
Testing – Preparing for battle
 Prepare test plan
 Grant appropriate file permissions
 Prepare test data

4
Types of problems
 Format related
“What is this junk data?!!!”
”My file looks ugly!!”
 Logic related
“Why am I getting a different output? I am SURE my
logic is correct”
 Others
Workflow fails
No session log written

5
Fighting it out…
 Format related problems
Solution:
 File length – Check port length/precision
 Number formats – Check port
length/precision
 Representation of NULL – check session
properties

6
Fighting it out…
 Logic related problems
Solution: Debugger!!!!!

7
Features in the Debugger
 Setting break points
 Evaluating expressions
 Discarding target data

8
Using the Debugger

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
Fighting it out…
 Other problems

38
Where to look?
1. Session property in Workflow monitor
2. Session log
3. Session property in Workflow designer
4. Debugger

39
Accessing the session
property in Workflow
monitor

40
41
42
43
Accessing the session
Log file in Workflow
monitor

44
45
46
47
Changing the logging to
‘verbose’ mode

48
49
50
51
52
53
54
Changing ‘NULL’
representation

55
56
57
58
Fighting it out…
 Common problems and causes
SNo Problem Solution
1 Workflow fails at the beginning itself Check monitor session properties if file
access problems exist
2 Workflow fails at the beginning itself, no Check SQL syntax in source qualifiers
file access problems
3 Workflow fails for some reason Check session log. If necessary, run session
in ‘verbose’ mode
4 Data is being truncated for some Check port length
reason
5 Logical equality/inequality operators do Trimming is needed/Check data type
not seem to work
6 Logical conditions are getting executed Check if NULL checks have been performed
wrongly
7 Numbers are being read from flat file. Check length/precision of ports
Corresponding calculation results are
wrong
8 During debugging, all ports get null Some fatal error has occurred. Eg: division by
value zero, invalid date 59
Thank You!

60

You might also like