jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niraj <niraj.khatm...@gmail.com>
Subject Need help on on Groovy or condition
Date Mon, 06 May 2019 10:58:43 GMT
Hi,

Can someone please tell me what is wrong in below code? I am trying to
verify if testName is not equal to test 1 or test 2. Both expressions are
not working.


${__groovy(!vars.get('testName').contains("test1"))} ||
${__groovy(!vars.get('testName').contains("test2"),)}

${__groovy(!vars.get('testName').contains(" test1 ")||(" test2 ),)}

Thanks in advance,
Niraj

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message