Forum Discussion
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.
Thanks
You can just try to add a test case with two separate groovy scripts, and both and try.
- duccio_fabbri9 years agoNew Contributor
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?
- nmrao9 years agoChampion Level 3
Hope you did not forget to change the value for "name" variable which is the service name as per your environment.
If you add the above statement as second last statement in your second script, then it should be true. At the same time, the same statement is added at the end, you expect nullpoint because, mockRunner is stopped.- duccio_fabbri9 years agoNew Contributor
It should... or it shouldn´t....anyway it returns:
Thu Sep 15 16:41:19 CEST 2016:INFO:++++ ERROR: Cannot invoke method isRunning() on null object
Thanks Rao for your time.
Related Content
- 2 years ago
- 4 years ago
- 2 years ago
- 8 years ago
- 4 years ago
Recent Discussions
- 15 years ago