Check for empty value in groovyscript
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2023
12:44 PM
02-06-2023
12:44 PM
Check for empty value in groovyscript
In Groovy script in Ready API , trying to extract a value from Response and based on it if it null or not, need to write next few steps.
But value which is returning is [].
Then if I check with null or "" it does not work .
How do I check if value is [].
Please suggest
Solved! Go to Solution.
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2023
06:58 PM
02-06-2023
06:58 PM
You are getting JSON Array in response with no elements in ti.
So, you can check the size is zero or not.
Regards,
Rao.
