Contributions
Re: Issue with WsdlMockRunner isRunning()
Your snippets are OK! I tried and they work perfectly. But please, try to add this line to your second snippet: log.info("wsdlMockService.getMockRunner().isRunning() returns: "+wsdlMockService.getMockRunner().isRunning()) I receive an error. Same line, after snippet 1, returns "true". Is it ok?1.7KViews0likes3CommentsRe: Issue with WsdlMockRunner isRunning()
Thank you for your hint. I tried but I have the same issue. After the line: wsdlMockService.getMockRunner().stop() the istruction: wsdlMockService.getMockRunner().isRunning() returs the error: Thu Sep 15 13:20:32 CEST 2016:INFO:---- ERROR: Cannot invoke method isRunning() on null object If I comment the line with .stop(), no error. I don´t understand if this is by design or not. Thanks1.7KViews0likes5CommentsIssue with WsdlMockRunner isRunning()
When a mock service is stopped, it seems getMockRunner() returns "null". Is it ok?! Here is my code: def wsdlMockService = testRunner.testCase.project.mockServices["ServiceSoapBinding MockService"] wsdlMockService.start() try{ if (wsdlMockService.getMockRunner().isRunning()) log.info("+++++++++ Mock is running") else log.info("+++++++++ Mock is NOT running")} catch(Exception e) { log.info("++++ ERROR: " + e.getMessage())} wsdlMockService.getMockRunner().stop() try{ if (wsdlMockService.getMockRunner().isRunning()) log.info("------- Mock is running") else log.info("------- Mock is NOT running")} catch(Exception e) { log.info("---- ERROR: " + e.getMessage())} RESULTS: Wed Sep 14 23:55:35 CEST 2016:INFO:+++++++++ Mock is running Wed Sep 14 23:55:35 CEST 2016:INFO:---- ERROR: Cannot invoke method isRunning() on null object1.7KViews0likes7Comments