Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Alpha549
Creator II
Creator II

Test routines with JUnit

Hello everyone,

I would like to know if it's possible to create test cases using JUnit when developing a routine ?

I could develop my routine using Eclipse first, with JUnit test cases, and then copy-paste my code in my Talend routine file, but it might be possible to test my routine code directly in Talend.

Thanks for your light ! 🙂

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hello,

Currently when we try to build the Talend job, it is only executing the component specific test cases, not the ones written using Routines.

In Talend, you could create the routine and use some assertion for each user case(basically you created a very simple job to run the test, eg, tMap, as you're coding your routines directly in Talend, but separately from the use of that routine in ETL job).

Or You can use Eclipse to driven test and construct your routine.

Export in jar format , add jar to Talend lib or load jar file with Talend component (eg. tLibraryLoad) and Test with different user cases.

Hope it helps.

Best regards

Sabrina

View solution in original post

3 Replies
Anonymous
Not applicable

Hello,

Currently when we try to build the Talend job, it is only executing the component specific test cases, not the ones written using Routines.

In Talend, you could create the routine and use some assertion for each user case(basically you created a very simple job to run the test, eg, tMap, as you're coding your routines directly in Talend, but separately from the use of that routine in ETL job).

Or You can use Eclipse to driven test and construct your routine.

Export in jar format , add jar to Talend lib or load jar file with Talend component (eg. tLibraryLoad) and Test with different user cases.

Hope it helps.

Best regards

Sabrina

Alpha549
Creator II
Creator II
Author

Thanks a lot xdshi ! 🙂

The topic is solved !

Anonymous
Not applicable

Hello,

Great it helps. Feel free to post your any issue here.

Best regards

Sabrina