How to transfer a message from an Assertion to a DataSink
I am a Ready! API (1.4.1) SoapUI NG user and I need help regarding the transfer of a message from an Assertion to a DataSink.
Here is my scenario.
I run a web service thay returns all the products a client may have. There may be more than one element return and his 'Health' product may be returned in anyone. I cannot tell in which element it will be, if it even exists.
In this case it is in the second element.
Ultimately, I have an assertion to check whether the word 'Health' is found anywhere with the returned XML. Here I am doing it with an Assertion Step. I am not failing the Assertion as I only want to know whether a client has Health or not. I want to continue with the DataLoop but I want a report where I write the Message from the Assertion to a file next to the Client Number.
So Property Transfer offers me the chance to use the Assertion as Source, but I cannot choose a Property from the Assertion. The Property dropdown is disabled.
So ultimately, I just want a result to be returned. Whether it is the Test Step passed or failed, or the Assertion status, or anything that can tell me whether I found the value or not.
Re: How to transfer a message from an Assertion to a DataSink
As you don’t know the exact response those value you want to write to a file, I would suggest that you create your own script that will search for the needed value in the entire request and post the results to a file. You can find a sample of how to work with Excel via Groovy here or here.
--------- Tanya Gorbunova SmartBear Community Manager