Forum Discussion
nmrao
9 years agoChampion Level 3
Hoping that you may find the below thread & its comments helpful in this case.
http://stackoverflow.com/questions/28497207/how-to-fail-a-script-assertion-in-soapui/28497531#28497531
http://stackoverflow.com/questions/28497207/how-to-fail-a-script-assertion-in-soapui/28497531#28497531
- Gkm9 years agoContributor
Once again thank you so much nmrao :smileyhappy:
Your comments solved my problem,
def error = [] if (jsonid != dbid) {error.add("jsonid : $jsonid is not equal to dbid: $dbid")} if (jsonname != dbname) {error.add("jsonname : $jsonname is not equal to dbname: $dbname")} assert error.size() == 0," $error " if(error.size() == 0){ log.info "Script Passed" }
Related Content
- 14 years ago
- 10 months ago
- 2 years ago
- 8 years ago
Recent Discussions
- 5 days ago
- 9 days ago