robotframework-sudslibrary icon indicating copy to clipboard operation
robotframework-sudslibrary copied to clipboard

How to verify WSDL objects?

Open winko opened this issue 9 years ago • 0 comments

Hi everybody!

I wonder how to verify WSDL objects within the Suds Library?

What I have started with is following scenario:

  1. create my own reference WSDL object with "${channelMatching_expected} = Create Wsdl Object".
  2. Than make a SOAP call with "${channelMatchings_current}= Call Soap Method"
  3. and eventually I verify if ${channelMatching_expected} and ${channelMatchings_current} are the same

The problem is in the step 3. It does not matter whether I use "Should Be Equal" or "Should Be Equal As Strings", both fail:

--- first
+++ second
@@ -1,141 +1,141 @@
 (Matchings){
    Matching[] = 
       (Matching){
-         _Options = 0
          _Type = "room type"
          _ID = 51
          _Matching = "STSTMDT"
+         _Options = 0
       },

The reason is not that the WSDL objects are different, but that the subobjects/elements within a WSDL object are in different order (see _Options in the example above). As I know WSDL as any XML does not care about the order of elements, right?

The question is, do I am missing something, or do I have to implement my own verify procedure?


PS: I have posted the same question on robotframework user group: https://groups.google.com/forum/#!topic/robotframework-users/NJwfDO5bA1Q

winko avatar Sep 07 '15 14:09 winko