in SOAPUI by
Q:
How To Start And Stop Mock Services?

1 Answer

0 votes
by

This can come in handy both from the Project onLoad script (if you want to start your MockServices when the project is opened) or from a TestCase/TestSuite setup script (if you need the MockService running for your functional tests). Here from a TestCase setup script: 

def runner = testCase.testSuite.project.mockServices["My MockService"].start()

context.mockRunner = runner 

The returned runner object is required to stop the MockService... so save it to the context and use it in the tearDown script: 

context.mockRunner.stop() 

Have a look at the WsdlMockService and the WsdlMockRunner classes for more methods and properties that might come in handy.

Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

0 votes
asked Nov 25, 2019 in SOAPUI by rajeshsharma
0 votes
asked Nov 25, 2019 in SOAPUI by rajeshsharma
0 votes
asked Nov 25, 2019 in SOAPUI by rajeshsharma
0 votes
asked Jul 7, 2020 in Sql by Robindeniel
0 votes
asked Feb 23, 2020 in Big Data | Hadoop by rahuljain1
...