Hi,
I'm trying to test an ETL package that gets an input from Operational Data Store (ODS) DB and stores the transformed result into a Datamart DB. My test goes like this:
!3 Connect to ODS DB
!|ConnectUsingFile|.\ODS.connection.properties|
!3 Insert data into the ODS
| Insert | ods.SignageRuleGroup|
| SignageRuleGroupCode| SignageRuleGroupName| SignageRuleText| SignageRuleNotes | SignageRuleGroupID? |
| ROM TEST| ROM TEST SIGNAGE RULE GROUP| THIS IS JUST A TEST RULE GROUP| I SAID THIS IS JUST A TEST RULE GROUP | >>srgid |
!3 Connect to ODMart DB
!|ConnectUsingFile|.\ODMart.connection.properties|
!3 Check that the inserted value reflects in Datamart
| Query | select * from odmart.d1_SignageRuleGroup |
| SignageRuleGroupID | SignageRuleGroupCode?| SignageRuleGroupName?|
| >>srgid | ROM TEST| ROM TEST SIGNAGE RULE GROUP|
However, upon connecting to the Datamart DB, the variable X is evaluated by DBFit as missing. The error is logged as
java.lang.NumberFormatException: For input string: ">>srgid"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Long.parseLong(Unknown Source)
at java.lang.Long.parseLong(Unknown Source)
at fit.TypeAdapter$ClassLongAdapter.parse(TypeAdapter.java:215)
My questions are:
1) Is there a DBFit best practice on testing ETL that transforms from one DB to another?
2) How do I preserve the value of the variable even when I have changed DB connections?
Thanks in advance to your help!
Rom
DBFit newbie