Create XML File With Variable Information
I have a SOATest test suite with a test will drop an XML message on a message queue. The processing of this message is what the test suite will be testing. The issue is that I need to replace one of the elements in the XML message with a value that is generated at run time earlier in the test suite. That value is stored in a Writable Data Source but I am not sure how to insert that value into the XML file at the correct location. I have done a lot of searching both online and in the SOATest Help section but not found something that would work.
Could I have the beginning and ending parts of the file saved to a relative file path and then append the variable value to the first part and then append the second part to that? That seems more complicated than it should be.
Or could I have the file defined in the test as text and then some how place the variable information in the correct location in the text and save it as XML?
Thanks for any assistance.