Service Virtualization

Extracting value from VSI and perform logical operation (assertions)

  • 1.  Extracting value from VSI and perform logical operation (assertions)

    Posted 10-27-2016 09:21 AM

    I have recorded one REST API. I wan to extract two different values of recorded response in VSI and perform addition on extracted value. Once done with addition, the resultant value (output) needs to replace the old value.

     

    Extract Current amount and Saving amony perform addition (Saving available amount = Current Available amount + Saving available amount) and replace the existing Saving amount with new added value.

     

    In short -> I want to trasnfer 2000 from SAVING TO CURRENT -> Final should see: Curent Balance: 0 & Saving Balance: 3000. Kindly let me know what needs to be done in VSI or VSM Arif_Muhammad #vsirecorder #vsm

     

    Example:

    <accountNumber>12345</accountNumber>

    <accountType>Current</accountType>

    <availableAmount>2000</availableAmount>

     

    <accountNumber>9999</accountNumber>

    <accountType>Saving</accountType>

    <availableAmount>1000</availableAmount>