Forum Discussion
SmartBear_Suppo
Alumni
15 years agoHi Krish,
sure;
1) save the desired XML files to be posted to a directory
2) set up a data-driven test using a Directory DataSource pointing at this directory
3) add one property to this DataSource, name it whatever you want (the contents of the file will be read into this property)
4) set the request content of the POST request to expand this property, ie if your DataSource step is named "DataSource" and its property is named "FileContent", you would enter ${DataSource#FileContent} in the request content field - this will be replaced with the actual value of the property when the request is sent.
Does this make sense?
Let us know!
regards,
/Ole
SmartBear Stockholm
sure;
1) save the desired XML files to be posted to a directory
2) set up a data-driven test using a Directory DataSource pointing at this directory
3) add one property to this DataSource, name it whatever you want (the contents of the file will be read into this property)
4) set the request content of the POST request to expand this property, ie if your DataSource step is named "DataSource" and its property is named "FileContent", you would enter ${DataSource#FileContent} in the request content field - this will be replaced with the actual value of the property when the request is sent.
Does this make sense?
Let us know!
regards,
/Ole
SmartBear Stockholm