imran9561186681
4 years agoNew Contributor
Assertion failed: value's type is invalid
I am new to groovy and automation. While doing the data driven I am getting the error message while running my groovy script. Below is code I am executing. Also while running the steps I have ...
- 4 years agoWhen data is read from csv, it is a string and you are comparing with integer(from json), that's why it is failing.
Convert csv value to integer before comparing.
Refer below how to convert
https://www.baeldung.com/groovy-convert-string-to-integer