Forum Discussion

Mircea_Untea's avatar
Mircea_Untea
Occasional Contributor
15 years ago

Call (testRunner )TestCase from Dispatching Mock Services

Hi ,


I see testRunner can not be invoke from Dispatch Scripts.
It is a way  to call TestCase from Mock Service, (Dispatch Script) ?

10x
Cata
  • Hi!

    Sure.. just get hold of the testCase and run it;

    def testCase = mockOperation.mockService.project.testSuites[".."].testCases[".."]
    def runner = testCase.run( null, false )
    log.info( runner.status )

    regards!

    /Ole
    eviware.com