Kryotonian
3 years agoOccasional Visitor
Unable to check 'blank' property
So, I'm working on this project where initially the property value is blank. But when I run the test suite and value is received as response at the end of the execution.
My goal is to make a list of all the values received after multiple execution.
I added the following code as groovy script in the script assertion of the last step where value is received:
If(propertyValue =="")
{
Set property as value received in the response
}
Else{
Set property = current property value + new value received in response
}
But unfortunately it's not working and else part is getting executed in all cases.
My goal is to make a list of all the values received after multiple execution.
I added the following code as groovy script in the script assertion of the last step where value is received:
If(propertyValue =="")
{
Set property as value received in the response
}
Else{
Set property = current property value + new value received in response
}
But unfortunately it's not working and else part is getting executed in all cases.