Forum Discussion

chsekhar's avatar
chsekhar
New Contributor
6 years ago

Validate multiple values from Database.

Hi all, I have a bit of a challenge. I am new to soap UI and Groovy scripting. I am comparing few values from my output to the database values. So my test case contains: 1. DataSource which will retu...
  • HimanshuTayal's avatar
    HimanshuTayal
    6 years ago

    You can use if condition and setting desired values at your script level.

     

    for ex: if DB return 1 then 

     

    def dbVal = "YOUR DB QUERY"

    if(dbVal == "1"){

    dbVal = "true"

    }

    else{

    dbVal = "false"

    }