Forum Discussion
Cizo89
11 years agoFrequent Contributor
Hi Manne,
this is strange, now I'm receiving NullPointerExceptions for all my 5 attempts - with and also without your solution.
These NPEs weren't for sure appearing before.
But back to your advice.
Although you're correct, that there is no method named getTestCases() in Interface com.eviware.soapui.model.testsuite.TestSuite, but that line works correctly.
I'm using this line since I've started working with SoapUI (2,5 years ago).
If you want to check it, try this (it's returning "true" for me):
this is strange, now I'm receiving NullPointerExceptions for all my 5 attempts - with and also without your solution.
These NPEs weren't for sure appearing before.
But back to your advice.
Although you're correct, that there is no method named getTestCases() in Interface com.eviware.soapui.model.testsuite.TestSuite, but that line works correctly.
I'm using this line since I've started working with SoapUI (2,5 years ago).
If you want to check it, try this (it's returning "true" for me):
tc1 = testRunner.testCase.testSuite.project.testSuites["temp"].testCases["test"]
tc2 = testRunner.testCase.testSuite.project.testSuites["temp"].getTestCaseByName("test")
log.info(tc1 == tc2)
log.info(tc1)
log.info(tc2)
log.info(tc1.getClass() == tc2.getClass())
log.info(tc1.getClass())
log.info(tc2.getClass())
log.info(tc1.getConfig() == tc2.getConfig())
log.info(tc1.getConfig())
log.info(tc2.getConfig())
Related Content
- 12 years ago
- 10 months ago
- 10 months ago