Hi chikki,
Operators in Groovy work really nice so you can compare two arrays very easily. Since operators have been overridden, it's not necessary to compare two array's sizes and then iterate through them if they're of equal length. All you need to use is
== operator.
To get a hold of it, try this in Groovy console:
a = [1,2,3,4] b = [1,2,3,1] c = [1,2,3,4] d = [1,2,3]
println "a == c: " + (a == c) println "a == b: " + (a == b) println "a == c: " + (a == c) println "c == b: " + (c == b)
|
Each of your test requests (SOAP, REST, HTTP) can have assertions assigned to it. Assertions are run on response message after test request has been executed and response is available.
You should use
Script Assertion for your job.
Cheers!
/Nenad Nikolic a.k.a. Shonzilla