I am learning Groovy to use it in Soap UI.
I want to know the basic difference between []
and ()
and where it would be used.
[]
- I understand it is an array..
Typical eg.,
()
usage:
def r = testRunner.testCase.testSuite.getTestCaseByName("Session").getTestStepByName("InvalidLoginAttempt").run(testRunner, context);
[]
usage:
def r = testRunner.testCase.testSuite.testCases["Login"].getTestStepByName("InvalidLoginAttempt").run(testRunner, context);