*** Settings ***
Library XML
*** Test Cases ***
XML Elements Should Match
${a} Parse Xml <units>mm[Hg]</units>
${b} Parse Xml <units>mm[Hg]</units>
Elements Should Match ${a} ${b}
XML Elements Should Be Equal
${a} Parse Xml <units>mm[Hg]</units>
${b} Parse Xml <units>mm[Hg]</units>
Elements Should Be Equal ${a} ${b}
Created
October 29, 2019 12:52
-
-
Save testautomation/0055823cf9e4eec6d241d99d8327e4af to your computer and use it in GitHub Desktop.
XML - Elements Should Match vs. Elements Should Be Equal (Robot Framework / #robotframework)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
result from above example
Pattern matching
Some keywords, for example
Elements Should Match
, support so called[http://en.wikipedia.org/wiki/Glob_(programming)| glob patterns where:
*
?
[chars]
[!chars]
[a-z]
[!a-z]
Unlike with glob patterns normally, path separator characters
/
and\
and the newline character\n
are matches by the above wildcards.Support for brackets like
[abc]
and[!a-z]
is new in Robot Framework 3.1For details check XML Library Docs.