Hello,
i get an error message with NullPointerException if I try to run test case from another project, like:
def workspace = testRunner.getTestCase().getTestSuite().getProject().getWorkspace()
def SimulatorProject = workspace.getProjectByName(inproject)
if (SimulatorProject == null) {
log.info "Input parameter ERROR: Project " + inproject + " is not found in workspace"
testRunner.fail("Input parameter ERROR: Project " + inproject + " is not found in workspace")
return
}
def SimulatorTS = SimulatorProject.getTestSuiteByName(intestsuite)
def SimulatorTC = SimulatorTS.getTestCaseByName(intestcase)
def runner = SimulatorTC.run(properties, false)
This happens after switching from SoapUI 5.1.2 to Ready!API. I guess this connected with new feature TestRunHistory which probably seems to work not properly.
Anybody same experience or ideas how to fix the problem?
I trying first set Test History Limit Size to 0 in preferences. But this hang up Ready!API totally.
Hi Ustim80,
I’ve moved this question to our internal team. While we are waiting for feedback from them, I think our community members will join this conversation to share their thoughts.
Hi,
I’ve got a reply from our R&D Team – they were unable to reproduce the issue.
They used the following code:
def workspace = testRunner.getTestCase().getTestSuite().getProject().getWorkspace() def inproject = "REST Sample Project" def SimulatorProject = workspace.getProjectByName(inproject) if (SimulatorProject == null) { log.info "Input parameter ERROR: Project " + inproject + " is not found in workspace" testRunner.fail("Input parameter ERROR: Project " + inproject + " is not found in workspace") return } def intestsuite = "Test account creation" def SimulatorTS = SimulatorProject.getTestSuiteByName(intestsuite) def intestcase = "accountcreation TestCase" def SimulatorTC = SimulatorTS.getTestCaseByName(intestcase) def runner = SimulatorTC.run(null, false)
Could you please check if the issue is reproduced with this code? If it’s not reproduced, to move forward, could you please contact our Ready! API Support Team ( http://support.smartbear.com/product-list/ ) and send them your test project?
Hallo Tanya,
thank you for answer.
I've create already a troubleshoot ticket and sent yesterday my test project to your troubleshooting team.
Now I just waiting for response.
Best regards,
Anton
Thanks Anton.
Please let us know the solution you’ll find working with our Support Team.
User | Count |
---|---|
6 | |
5 | |
5 | |
2 | |
1 |