a COE Day3 Testing & Debugging

Preview:

Citation preview

Informatica COE Chennai 1

Testing & Debugging in Informatica PowerCenter

Informatica COE Chennai 2

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

Informatica COE Chennai 3

Testing – What needs to be tested?

Format Examples:

File length Number formats Representation of NULL

Logic Examples:

Calculation results Results of logical conditions

Informatica COE Chennai 4

Testing – Preparing for battle

Prepare test plan Grant appropriate file permissions Prepare test data

Informatica COE Chennai 5

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

Informatica COE Chennai 6

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

Informatica COE Chennai 7

Fighting it out…

Logic related problems

Solution: Debugger!!!!!

Informatica COE Chennai 8

Features in the Debugger

Setting break points Evaluating expressions Discarding target data

Informatica COE Chennai 9

Using the Debugger

Informatica COE Chennai 10

Informatica COE Chennai 11

Informatica COE Chennai 12

Informatica COE Chennai 13

Informatica COE Chennai 14

Informatica COE Chennai 15

Informatica COE Chennai 16

Informatica COE Chennai 17

Informatica COE Chennai 18

Informatica COE Chennai 19

Informatica COE Chennai 20

Informatica COE Chennai 21

Informatica COE Chennai 22

Informatica COE Chennai 23

Informatica COE Chennai 24

Informatica COE Chennai 25

Informatica COE Chennai 26

Informatica COE Chennai 27

Informatica COE Chennai 28

Informatica COE Chennai 29

Informatica COE Chennai 30

Informatica COE Chennai 31

Informatica COE Chennai 32

Informatica COE Chennai 33

Informatica COE Chennai 34

Informatica COE Chennai 35

Informatica COE Chennai 36

Informatica COE Chennai 37

Informatica COE Chennai 38

Fighting it out…

Other problems

Informatica COE Chennai 39

Where to look?

1. Session property in Workflow monitor

2. Session log

3. Session property in Workflow designer

4. Debugger

Informatica COE Chennai 40

Accessing the session property in Workflow

monitor

Informatica COE Chennai 41

Informatica COE Chennai 42

Informatica COE Chennai 43

Informatica COE Chennai 44

Accessing the session Log file in Workflow

monitor

Informatica COE Chennai 45

Informatica COE Chennai 46

Informatica COE Chennai 47

Informatica COE Chennai 48

Changing the logging to ‘verbose’ mode

Informatica COE Chennai 49

Informatica COE Chennai 50

Informatica COE Chennai 51

Informatica COE Chennai 52

Informatica COE Chennai 53

Informatica COE Chennai 54

Informatica COE Chennai 55

Changing ‘NULL’ representation

Informatica COE Chennai 56

Informatica COE Chennai 57

Informatica COE Chennai 58

Informatica COE Chennai 59

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

Informatica COE Chennai 60

Thank You!