Compare list of dictionary in Robot Framework
<p>I have two list of list of dictionary and i want to compare the vale of first list dictionary to second list of dictionary</p>

<p>For example:</p>

<pre><code>Dictionary A contains [{Name:C}, {Name:A}, {Name:B}]
Dictionary B contains [{Name:A}, {Name:B}, {Name:C}]
</code></pre>

<p>How to take A's 1st Dictionary {Name:C} and check if it exists in Dictionary B. </p>

<p>If I understand your question correctly, you should be able to do this using the built in Collections library. This code took the values in one dictionary and checked to see if the value exists in the other. </p>

<pre><code>*** Settings ***
Library  Collections

*** Variables ***
&amp;{DICTONARY_ONE} =  name1=a  name2=b  name3=c  name4=d
&amp;{DICTONARY_TWO} =  name1=c  name2=a  name3=d  name4=b

*** Test Cases ***
Dictonary Test
    @{dictonary2_list} =  Get Dictionary Values  ${DICTONARY_TWO}
    :For  ${item}  in  @{dictonary2_list}
    \   Dictionary Should Contain Value  ${DICTONARY_ONE}  ${item}
</code></pre>

<p>If this is not quite what you are after, there should be something in collections that will let you do what you need. Here is a link to the documentation.<br>
<a href="http://robotframework.org/robotframework/latest/libraries/Collections.html" rel="nofollow">http://robotframework.org/robotframework/latest/libraries/Collections.html</a></p>

<p>I hope that helps.</p>

python list dictionary robotframework