Testing & Debugging in Informatica PowerCenter

advertisement
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.
2.
3.
4.
Session property in Workflow monitor
Session log
Session property in Workflow designer
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
file access problems
Check SQL syntax in source qualifiers
3
Workflow fails for some reason
Check session log. If necessary, run session
in ‘verbose’ mode
4
Data is being truncated for some reason
Check port length
5
Logical equality/inequality operators do
not seem to work
Trimming is needed/Check data type
6
Logical conditions are getting executed
wrongly
Check if NULL checks have been performed
7
Numbers are being read from flat file.
Corresponding calculation results are
wrong
Check length/precision of ports
8
During debugging, all ports get null
value
Some fatal error has occurred. Eg: division by
zero, invalid date
59
Thank You!
60
Download