Forum Discussion
SmartBear_Suppo
11 years agoSmartBear Alumni (Retired)
Hi Marek,
It's really odd that this just fails silently. I think this looks incorrect, though, but I may be missing something:
def newTestCase = testRunner.testCase.testSuite.project.testSuites["customProjectDefects"].testCases[testCaseName]
The interface com.eviware.soapui.model.testsuite.TestSuite doesn't expose a method named getTestCases(), but the method getTestCaseByName(String). Can you try replacing this line with
def newTestCase = testRunner.testCase.testSuite.project.testSuites["customProjectDefects"].getTestCaseByName(testCaseName)
Let us know if that works for you
Regards,
Manne Fagerlind
It's really odd that this just fails silently. I think this looks incorrect, though, but I may be missing something:
def newTestCase = testRunner.testCase.testSuite.project.testSuites["customProjectDefects"].testCases[testCaseName]
The interface com.eviware.soapui.model.testsuite.TestSuite doesn't expose a method named getTestCases(), but the method getTestCaseByName(String). Can you try replacing this line with
def newTestCase = testRunner.testCase.testSuite.project.testSuites["customProjectDefects"].getTestCaseByName(testCaseName)
Let us know if that works for you
Regards,
Manne Fagerlind
Related Content
- 12 years ago
- 10 months ago
- 10 months ago