Forum Discussion
detica1
12 years agoNew Contributor
i found the answer to my own problem:
//Start mock service (put this is the setup scipt section)
def project = testRunner.testCase.getTestSuite().getProject();
def mockService = project.getMockServiceByName("SMS Notification MockService");
mockService.start();
//Stop mock service (put this in the teardown script section)
def project = testRunner.testCase.getTestSuite().getProject();
def mockService = project.getMockServiceByName("SMS Notification MockService");
def mockRunner = mockService.getMockRunner();
mockRunner.stop()
Related Content
- 4 years ago
Recent Discussions
- 24 hours ago