Groovy web console

subscribe to the feed Subscribe
to this
site
Element contained in List (via #groovywebconsole)
tweet this snippet Tweet
this
script

Element contained in List

Published 2 months ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
// (testName.indexOf('WebApp')!=-1 || testName.indexOf('importLicense')!=-1 || 
//  testName.indexOf('importTunnel')!=-1 || testName.indexOf('override')!=-1)

// the code above can be replaced by the code below
def testName = 'override'
println testName in ['testA','testB']
println testName in ['WebApp','importLicense','importTunnel','override']