Need to assert the value which changes every time when the script is run

时间:2017-10-12 09:49:47

标签: groovy assertions

I am a beginner in groovy scripting and I am working on a script which retrieves the the value from DB and need to assert the value that is obtained from the DB. Since the value changes every time I run the script, I was trying with the regular expression which holds the constant value but still I didn't see any luck. Below is the assertion code I have used to assert.

assert findchck.find{it.code ==~ /^FIN.*/}

Please help me what is the right regular expression to be used ?

0 个答案:

没有答案