a COE Day3 Testing & Debugging

60
Informatica COE Chennai 1 Testing & Debugging in Informatica PowerCenter

Transcript of a COE Day3 Testing & Debugging

Page 1: a COE Day3 Testing & Debugging

Informatica COE Chennai 1

Testing & Debugging in Informatica PowerCenter

Page 2: a COE Day3 Testing & Debugging

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

Page 3: a COE Day3 Testing & Debugging

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

Page 4: a COE Day3 Testing & Debugging

Informatica COE Chennai 4

Testing – Preparing for battle

Prepare test plan Grant appropriate file permissions Prepare test data

Page 5: a COE Day3 Testing & Debugging

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

Page 6: a COE Day3 Testing & Debugging

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

Page 7: a COE Day3 Testing & Debugging

Informatica COE Chennai 7

Fighting it out…

Logic related problems

Solution: Debugger!!!!!

Page 8: a COE Day3 Testing & Debugging

Informatica COE Chennai 8

Features in the Debugger

Setting break points Evaluating expressions Discarding target data

Page 9: a COE Day3 Testing & Debugging

Informatica COE Chennai 9

Using the Debugger

Page 10: a COE Day3 Testing & Debugging

Informatica COE Chennai 10

Page 11: a COE Day3 Testing & Debugging

Informatica COE Chennai 11

Page 12: a COE Day3 Testing & Debugging

Informatica COE Chennai 12

Page 13: a COE Day3 Testing & Debugging

Informatica COE Chennai 13

Page 14: a COE Day3 Testing & Debugging

Informatica COE Chennai 14

Page 15: a COE Day3 Testing & Debugging

Informatica COE Chennai 15

Page 16: a COE Day3 Testing & Debugging

Informatica COE Chennai 16

Page 17: a COE Day3 Testing & Debugging

Informatica COE Chennai 17

Page 18: a COE Day3 Testing & Debugging

Informatica COE Chennai 18

Page 19: a COE Day3 Testing & Debugging

Informatica COE Chennai 19

Page 20: a COE Day3 Testing & Debugging

Informatica COE Chennai 20

Page 21: a COE Day3 Testing & Debugging

Informatica COE Chennai 21

Page 22: a COE Day3 Testing & Debugging

Informatica COE Chennai 22

Page 23: a COE Day3 Testing & Debugging

Informatica COE Chennai 23

Page 24: a COE Day3 Testing & Debugging

Informatica COE Chennai 24

Page 25: a COE Day3 Testing & Debugging

Informatica COE Chennai 25

Page 26: a COE Day3 Testing & Debugging

Informatica COE Chennai 26

Page 27: a COE Day3 Testing & Debugging

Informatica COE Chennai 27

Page 28: a COE Day3 Testing & Debugging

Informatica COE Chennai 28

Page 29: a COE Day3 Testing & Debugging

Informatica COE Chennai 29

Page 30: a COE Day3 Testing & Debugging

Informatica COE Chennai 30

Page 31: a COE Day3 Testing & Debugging

Informatica COE Chennai 31

Page 32: a COE Day3 Testing & Debugging

Informatica COE Chennai 32

Page 33: a COE Day3 Testing & Debugging

Informatica COE Chennai 33

Page 34: a COE Day3 Testing & Debugging

Informatica COE Chennai 34

Page 35: a COE Day3 Testing & Debugging

Informatica COE Chennai 35

Page 36: a COE Day3 Testing & Debugging

Informatica COE Chennai 36

Page 37: a COE Day3 Testing & Debugging

Informatica COE Chennai 37

Page 38: a COE Day3 Testing & Debugging

Informatica COE Chennai 38

Fighting it out…

Other problems

Page 39: a COE Day3 Testing & Debugging

Informatica COE Chennai 39

Where to look?

1. Session property in Workflow monitor

2. Session log

3. Session property in Workflow designer

4. Debugger

Page 40: a COE Day3 Testing & Debugging

Informatica COE Chennai 40

Accessing the session property in Workflow

monitor

Page 41: a COE Day3 Testing & Debugging

Informatica COE Chennai 41

Page 42: a COE Day3 Testing & Debugging

Informatica COE Chennai 42

Page 43: a COE Day3 Testing & Debugging

Informatica COE Chennai 43

Page 44: a COE Day3 Testing & Debugging

Informatica COE Chennai 44

Accessing the session Log file in Workflow

monitor

Page 45: a COE Day3 Testing & Debugging

Informatica COE Chennai 45

Page 46: a COE Day3 Testing & Debugging

Informatica COE Chennai 46

Page 47: a COE Day3 Testing & Debugging

Informatica COE Chennai 47

Page 48: a COE Day3 Testing & Debugging

Informatica COE Chennai 48

Changing the logging to ‘verbose’ mode

Page 49: a COE Day3 Testing & Debugging

Informatica COE Chennai 49

Page 50: a COE Day3 Testing & Debugging

Informatica COE Chennai 50

Page 51: a COE Day3 Testing & Debugging

Informatica COE Chennai 51

Page 52: a COE Day3 Testing & Debugging

Informatica COE Chennai 52

Page 53: a COE Day3 Testing & Debugging

Informatica COE Chennai 53

Page 54: a COE Day3 Testing & Debugging

Informatica COE Chennai 54

Page 55: a COE Day3 Testing & Debugging

Informatica COE Chennai 55

Changing ‘NULL’ representation

Page 56: a COE Day3 Testing & Debugging

Informatica COE Chennai 56

Page 57: a COE Day3 Testing & Debugging

Informatica COE Chennai 57

Page 58: a COE Day3 Testing & Debugging

Informatica COE Chennai 58

Page 59: a COE Day3 Testing & Debugging

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

Page 60: a COE Day3 Testing & Debugging

Informatica COE Chennai 60

Thank You!