Forum Discussion

bartlomiejkow's avatar
bartlomiejkow
New Contributor
5 years ago

How to get xml request from mockService in grovy script in TestSuite

I have groovy script in test step, and MockOperation in MockService. How to get last request in script? Or other request which i can see in Message Viewer?

I can't use SOAP Mock Response in my test case. 

Now I check only time of last mock request:

def project = testRunner.testCase.testSuite.projectdef 
mock
= testRunner.testCase.testSuite.project.mockServices["mock"] def service = mock.getMockOperationByName("service") def req = service.getLastMockResult()

 

No RepliesBe the first to reply