Forum Discussion

zarana's avatar
zarana
Occasional Contributor
16 years ago

[RESOLVED] How to run MockServices programaticaaly from within a test case

Hello

Can anyone please help me find the code for running a mockservice from within a test case.

Thanks
  • Hello,

    testCase.testSuite.project.getMockServiceByName("Test").start() should do the trick...

    Let me know does it helps,
    robert
  • zarana's avatar
    zarana
    Occasional Contributor
    Hey Robert

    I am pretty new to SOAPUI. Can you please explain in detail.

    In PrinterDCP testsuite for testcase1 I am trying to start MockService1 which has operation PrinterStatusSummaryEvent.

    What exactly should be code that i need to put in groovy script test step pf testcase1

    Thanks in advance