<?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: Bug with tAssert in 6.4.0 Studio in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Bug-with-tAssert-in-6-4-0-Studio/m-p/2348373#M115512</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Thanks for posting your issue here.&lt;/P&gt;
&lt;P&gt;Have you tried to use V 7.0.1 to see if this kind of&amp;nbsp;&lt;SPAN class="s1"&gt;compilation error &lt;/SPAN&gt;still repro?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jul 2018 08:59:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-17T08:59:57Z</dc:date>
    <item>
      <title>Bug with tAssert in 6.4.0 Studio</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Bug-with-tAssert-in-6-4-0-Studio/m-p/2348372#M115511</link>
      <description>&lt;P&gt;Hello&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I used Talend to "Create Test Case" from a DI job and wanted to amend the tAsserts to check number of lines from a component rather than using the default behaviour of file comparisons.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I do this my changing the tAssert expression to&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;((Integer)globalMap.get("tMysqlOutput_1_NB_LINE_INSERTED"))&amp;gt;100&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I get a compilation error&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN&gt;&amp;nbsp;"operator ! undefined for the argument types integer"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN&gt;looking at the code I can see that Talend has rewritten this to&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;PRE&gt;if (!((Integer) globalMap.get("tRowGenerator_1_NB_LINE")) &amp;gt; 100) {&lt;/PRE&gt; 
&lt;P class="p1"&gt;with the "!" in the wrong place.&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;When I try creating a tAssert in a normal non TestCase job, it all works fine and I can see the code is written as&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;if&lt;/SPAN&gt; (((Integer) globalMap.get(&lt;SPAN class="s2"&gt;"tRowGenerator_1_NB_LINE"&lt;/SPAN&gt;)) &amp;gt; 100) {&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;which work as it doesn't have a "!" in the wrong place?&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;This seems to be a bug?&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;I did fix by changing my expression to include outer brackets&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;(  ((Integer)globalMap.get("tMysqlOutput_1_NB_LINE_INSERTED"))&amp;gt;100  )&lt;/PRE&gt; 
&lt;P class="p1"&gt;but the help at&amp;nbsp;&lt;A href="https://help.talend.com/reader/jomWd_GKqAmTZviwG_oxHQ/bGMEXg5CMwvdt8hxpsFzbw" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/jomWd_GKqAmTZviwG_oxHQ/bGMEXg5CMwvdt8hxpsFzbw&lt;/A&gt; doesn't say to do this and I spent a good few hours on this.&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;Thanks&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;n&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 09:53:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Bug-with-tAssert-in-6-4-0-Studio/m-p/2348372#M115511</guid>
      <dc:creator>n999</dc:creator>
      <dc:date>2018-07-12T09:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with tAssert in 6.4.0 Studio</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Bug-with-tAssert-in-6-4-0-Studio/m-p/2348373#M115512</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Thanks for posting your issue here.&lt;/P&gt;
&lt;P&gt;Have you tried to use V 7.0.1 to see if this kind of&amp;nbsp;&lt;SPAN class="s1"&gt;compilation error &lt;/SPAN&gt;still repro?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 08:59:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Bug-with-tAssert-in-6-4-0-Studio/m-p/2348373#M115512</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-17T08:59:57Z</dc:date>
    </item>
  </channel>
</rss>

