1 testing & debugging in informatica powercenter

60
1 Testing & Debugging in Informatica PowerCenter

Upload: barbra-lucas

Post on 01-Jan-2016

239 views

Category:

Documents


9 download

TRANSCRIPT

1

Testing & Debugging in Informatica PowerCenter

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

3

Testing – What needs to be tested?

Format Examples:

File length Number formats Representation of NULL

Logic Examples:

Calculation results Results of logical conditions

4

Testing – Preparing for battle

Prepare test plan Grant appropriate file permissions Prepare test data

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”

OthersWorkflow failsNo session log written

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

7

Fighting it out…

Logic related problems

Solution: Debugger!!!!!

8

Features in the Debugger

Setting break points Evaluating expressions Discarding target data

9

Using the Debugger

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

Fighting it out…

Other problems

39

Where to look?

1. Session property in Workflow monitor

2. Session log

3. Session property in Workflow designer

4. Debugger

40

Accessing the session property in Workflow

monitor

41

42

43

44

Accessing the session Log file in Workflow

monitor

45

46

47

48

Changing the logging to ‘verbose’ mode

49

50

51

52

53

54

55

Changing ‘NULL’ representation

56

57

58

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

60

Thank You!