<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [resolved] Checking my work with tAssert in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Checking-my-work-with-tAssert/m-p/2310238#M81382</link>
    <description>Excellent. After some futzing with it, I've got it now. Thanks for the tips!</description>
    <pubDate>Tue, 19 Jan 2010 21:34:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-01-19T21:34:24Z</dc:date>
    <item>
      <title>[resolved] Checking my work with tAssert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Checking-my-work-with-tAssert/m-p/2310236#M81380</link>
      <description>I would like to have my TOS job check its aggregate results against the expected total. In other words, I have a tAggregateRow task that calculates the count of rows and the sum of one field, and would like to compare the calculated results with the data from another input source. If Talend's calculations match the expected results, then the job should succeed--otherwise it should fail or warn me somehow. 
&lt;BR /&gt;Is this possible to do with tAssert? 
&lt;BR /&gt;What I've figured out so far is: Since tAssert can only accept one input, I have to use some other component (tMap?) to make one set of results into variables. Then the tAssert expression should look something like this: "rowC.RecordCount==Var.calcRecordCount". But I can't find a way to make that work. 
&lt;BR /&gt;Any suggestions for me?</description>
      <pubDate>Sat, 16 Nov 2024 13:36:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Checking-my-work-with-tAssert/m-p/2310236#M81380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Checking my work with tAssert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Checking-my-work-with-tAssert/m-p/2310237#M81381</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I have to use some other component (tMap?) to make one set of results into variables&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Yes, you can use other component such as tJavaRow and set the results to context variables or global variables, and then use a tFixedFlowInput to generate a fixed value(expected value) and compare them with results on tAssert. eg: 
&lt;BR /&gt;tFileInputDelimited--tJavaRow--tMysqlOutput 
&lt;BR /&gt; | 
&lt;BR /&gt;tFixedFlowInput--row2--&amp;gt;tAssert 
&lt;BR /&gt;tAssertCatcher---tMysqlOutput 
&lt;BR /&gt;on tJavaRow: 
&lt;BR /&gt;context.RecordCount=context.RecordCount+1; 
&lt;BR /&gt;on expression of tAssert: 
&lt;BR /&gt;row2.RecordCount==context.RecordCount 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Sat, 16 Jan 2010 07:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Checking-my-work-with-tAssert/m-p/2310237#M81381</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-16T07:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Checking my work with tAssert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Checking-my-work-with-tAssert/m-p/2310238#M81382</link>
      <description>Excellent. After some futzing with it, I've got it now. Thanks for the tips!</description>
      <pubDate>Tue, 19 Jan 2010 21:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Checking-my-work-with-tAssert/m-p/2310238#M81382</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-19T21:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Checking my work with tAssert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Checking-my-work-with-tAssert/m-p/2310239#M81383</link>
      <description>Follow-up question: I have tried several ways to have the job fail/exit with an error code if the assertion fails, including the "Run if" trigger.&lt;BR /&gt;The only way I've found that works is to send the output of &lt;I&gt;tAssertCatcher&lt;/I&gt; into a &lt;I&gt;tFilterRow&lt;/I&gt;, and filter out all successes (where status field does not equal "Ok"), then send the filtered output into a &lt;I&gt;tDie&lt;/I&gt;. Thus, nothing ever reaches the &lt;I&gt;tDie&lt;/I&gt; unless an assertion fails.&lt;BR /&gt;But my method looks kind of funny... Is there a better way to trigger the &lt;I&gt;tDie&lt;/I&gt; conditionally?</description>
      <pubDate>Wed, 20 Jan 2010 18:58:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Checking-my-work-with-tAssert/m-p/2310239#M81383</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-20T18:58:26Z</dc:date>
    </item>
  </channel>
</rss>

