AnsweredAssumed Answered

Random integer number - VSM logic is preferred

Question asked by Raghu24 on Mar 11, 2018
Latest reply on Mar 15, 2018 by Prem_Bairoliya

Hi,

 

I need to generate an 8 digit random number every time and send it in one of the soap response element tag.. so my api takes that random and stores in the database.. because our api automation scripts use that random and fetch the database for other details.. hence this random should not be same if I am redeploying the virtual service... 

 

So how do I handle this logic.. any regular expression way to mention inside the soap response ? or add groovy logic in VSM ? ..  I never tried logic in match script so dont know how exactly that works but quite good in writing logic in VSM.. so suggest me how to handle in VSM please.. 

 

thank you

Outcomes