AnsweredAssumed Answered

Extracting value from VSI and perform logical operation (assertions)

Question asked by pranaygupta on Oct 27, 2016

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 vsi recorder vsm

 

Example:

<accountNumber>12345</accountNumber>

<accountType>Current</accountType>

<availableAmount>2000</availableAmount>

 

<accountNumber>9999</accountNumber>

<accountType>Saving</accountType>

<availableAmount>1000</availableAmount>

Outcomes