Unable to Transfer property from response to testcase level property
I want to transfer a property from an existing Response to a property named 'BenchmarkId' defined at the TestCase level. This gives an error 'Unexpected element CDATA'. See attachment.
I'm also wondering why after selecting a testcase property as the target property for a transfer it's still possible to select a Path language on the target side.
Solved! Go to Solution.
Usually when I get this kind of errors there is some data missing. Could you provide the response of the 'Get Benchmarks by SurbeyId' step?
Regarding the other question... You also have a path language and an empty field beneath because (as far as I know) you can pass property values directly into a request if - let's say - you have some variable in there or something.
This is the response:
<groupName>Commonly used benchmarks</groupName>
I know that you can pass property values direct into a request but I would expect the posibilities of defining an Xpath etc. to be disabled after selecting a Custom property as target.
I get your point but yeah... this is what we have
Now as for your problem I'm not sure but it does work for me.
Maybe you can send me the SoapUI project so I can help you?
What in your reply attracts my attention is that the Icon to select a node from the respons is enabled in your case (at least is partly green). In my case this possibility is disabled so I had to write this XPath expression myself. I doubt if this has something to do with my problem. It's not possible for me to send you the rest project becaus it's an internal project.
By the way, the same option to select from the response works fine for assertions.
Well it's quite hard for me to help you otherwise btw it looks like you're using a quite older version. Could it be a bug in there?
Thank you so far. I changed the select language to JSonPath and it's working fine now.
I found out that selecting ResponseAsXml for the source property also works fine.