<?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: Validate request against response by assertion gets wrong value for a field of the request in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Validate-request-against-response-by-assertion-gets-wrong-value/m-p/2213517#M10744</link>
    <description>&lt;P&gt;Hey there,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;another useful information may be, that the same data-access show two different results.&lt;/P&gt; 
&lt;P&gt;The following two red equals reading from&amp;nbsp;&lt;STRONG&gt;${"project"."scenario"."webcall1"."&lt;U&gt;request&lt;/U&gt;"."body"."fieldname"}&lt;/STRONG&gt;.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto von 2020-06-12 08-29-01.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZug.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156952i36FB297AF0EC2C1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZug.png" alt="0683p000009MZug.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any advice? Or how to post a bug-ticket?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Best regards and thanks in advance,&lt;/P&gt; 
&lt;P&gt;Karsten&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jun 2020 07:33:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-06-12T07:33:19Z</dc:date>
    <item>
      <title>Validate request against response by assertion gets wrong value for a field of the request</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Validate-request-against-response-by-assertion-gets-wrong-value/m-p/2213516#M10743</link>
      <description>&lt;P&gt;Moin,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;at first, I couln'd choose my version at the mandatory version labels.&lt;/P&gt; 
&lt;UL&gt; 
 &lt;LI&gt;Service:&amp;nbsp;API Tester&amp;nbsp;&lt;/LI&gt; 
 &lt;LI&gt;Version:&amp;nbsp;25.2.0&lt;/LI&gt; 
&lt;/UL&gt; 
&lt;P&gt;I want to validate a field of the response against the corresponding field of the request. The value in this field is mirrored by the server.&lt;/P&gt; 
&lt;P&gt;The webcall itself is fine and all values are as expected. The validation by assertion of the specific field is also ok if I compare the reponse's field against itself.&lt;/P&gt; 
&lt;P&gt;But if I try to validate the response against the request, I get a wrong value for the request's specific field.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Let me try to give an example.&lt;/P&gt; 
&lt;P&gt;What I want to do:&lt;/P&gt; 
&lt;P&gt;if $requestField1 == $responseField1 &amp;gt; OK&lt;/P&gt; 
&lt;P&gt;if $requestField1 != $responseField1 &amp;gt; NOT OK&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Simple thing.&lt;/P&gt; 
&lt;P&gt;In this webcall's field Talend API Tester sends e.g. "uuid1" and the server responds correctly with "uuid1".&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But the assertion-component show an expected value like "uuid2" which isn't used anywhere in the webcall. The wrong value is used to compare and i get a NOT OK-result (displayed by the &lt;STRONG&gt;red&lt;/STRONG&gt; equals).&lt;/P&gt; 
&lt;P&gt;If I compare the response's field with the response, everything is fine, but this test is useless (displayed by the &lt;STRONG&gt;green&lt;/STRONG&gt; equals).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto von 2020-06-11 12-14-29.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZl1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133481i46A960663AC8CC29/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZl1.png" alt="0683p000009MZl1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How I access the values:&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;$.fieldname&lt;/STRONG&gt; should compared to &lt;STRONG&gt;${"project"."scenario"."webcall1"."&lt;U&gt;request&lt;/U&gt;"."body"."fieldname"}&lt;/STRONG&gt; - last variable shows wrong value which is not used in the webcall "0476..." vs "12cf..."&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The same assertion with the response shows the correct value on both sides:&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;$.fieldname&lt;/STRONG&gt; should compared to &lt;STRONG&gt;${"project"."scenario"."webcall1"."&lt;U&gt;response&lt;/U&gt;"."body"."fieldname"}&lt;/STRONG&gt; - "0476..." vs "0476..."&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My question is, why there is a difference in the stored request's body to the body which is used in the real webcall respectively how I should access the request's data correctly.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Best regards and thanks in advance,&lt;/P&gt; 
&lt;P&gt;Karsten&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Validate-request-against-response-by-assertion-gets-wrong-value/m-p/2213516#M10743</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T02:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Validate request against response by assertion gets wrong value for a field of the request</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Validate-request-against-response-by-assertion-gets-wrong-value/m-p/2213517#M10744</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;another useful information may be, that the same data-access show two different results.&lt;/P&gt; 
&lt;P&gt;The following two red equals reading from&amp;nbsp;&lt;STRONG&gt;${"project"."scenario"."webcall1"."&lt;U&gt;request&lt;/U&gt;"."body"."fieldname"}&lt;/STRONG&gt;.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto von 2020-06-12 08-29-01.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZug.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156952i36FB297AF0EC2C1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZug.png" alt="0683p000009MZug.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any advice? Or how to post a bug-ticket?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Best regards and thanks in advance,&lt;/P&gt; 
&lt;P&gt;Karsten&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 07:33:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Validate-request-against-response-by-assertion-gets-wrong-value/m-p/2213517#M10744</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-12T07:33:19Z</dc:date>
    </item>
  </channel>
</rss>

