is it possible compare between Response (Soap /Json) and Data source using java

Hi ,
My scenarios is to compare between response (SOAP/Rest) and database using any of the scripting language Like Java / Groovy /Jython (Mostly Using Java ) , how can i compare those , i m entirely new to Programming Language (Know Basic Concept very well )

Comments

  • Ramiro MartinezRamiro Martinez Posts: 47 admin

    Hi Pavancenturylink,

    I suggest using the DB tool to send a DB query to your database and extract the data from the "results XML" using the XML data bank.

    You would then configure an XML/JSON assertor to your SOAP/REST response, add an assertion that fits the data, and parameterize the expected Value with the previously extracted data.

    For additional details, please see the documentation for the DB tool, XML data bank, and XML/JSON Assertor.
    Documentation can be found by navigating to:
    Help>Help Contents
    And searching the tool's name.

    Best regards,

    Ramiro Martinez

  • PavancenturylinkPavancenturylink Posts: 2

    Thanks Ramiro , But i would like to compare through Script

  • jakubiakjakubiak Posts: 314 ✭✭✭

    This forum is not really the place to discuss how to write code. If you can provide more specific details about what you are trying to do within SOAtest, we might be able to provide you a better answer about how to do it.

Sign In or Register to comment.