Forum Discussion

kamahade's avatar
kamahade
Regular Contributor
14 years ago

Combine Mock and RealResponse

Hello,

I want to run a testsuite which have several testcases with +ve and -Ve scenarios. For a failure scenarios, I want to call a mock service and for a +ve scenarios, I want to call a real service. Any suggestions for implementing this ?

    Can a Mock service act like a proxy between a real and mock operation?


How Do I get a testRunner within mockoperation ? Can I switch between Mock and Real within Mock ? Or can I call mock from a normal groovy script ?
No RepliesBe the first to reply