Forum Discussion

ab2017's avatar
ab2017
New Contributor
7 years ago

Read assertion results in ServiceV

Dear community members, 

Could you please guide me how to proceed with this following situation:

 

1.  I have a mock in ServiceV which gets an input request from a service and the mock is configured to throw a response of either HTTP 200 or HTTP 400 depending on the inputs received

2.  Additionally there is an assertion in the mock which validates the input parameters of the request.

 

My intention is to read the result of the assertion and accordingly set the test to fail or pass IRRESPECTIVE of whether the service returns a HTTP 200 or HTTP 400. Which means the test should fail or pass depending on the result of input assertion.

How to read this assertion result is not known to me. I can see the result (Failed or passed) in the Transaction Log but how can I read the result of this transaction log and feed it back to my test. There is an option to export transaction log results but this is not helping me because it is showing me the results of step 1 above (of the service) but not of the assertion (step 2).

 

Any help or further info in this regard will be helpful. 

Thanks.

 

No RepliesBe the first to reply