Forum Discussion

rkiran416's avatar
rkiran416
New Contributor
15 years ago

Groovy script for working with attachments by modifying data

Hi All,

I have a SOAP Request where I will be attaching the xml file by modifying a value each time in xml file and executing the request. I need a groovy script for this scenario? Can somebody help me?

Thanks In Advance,
Kiran.
  • MrMax's avatar
    MrMax
    Occasional Contributor
    I have a similar issue, I have a groovy script that will take data from a .csv file but cannot get assertions to run with the groovy script any ideas?
  • It is better to proceed and succeed the Test Request with Property Transfer. Copy desired values to Request from Properties and copy Response values back to Properties. Proceed and succeed the Property Transfer steps with Groovy Script that prepares and compares Properties values. Initialization Groovy Script can be used to read in .xml or .csv files. However, if possible, stick with simple and use .INI style .prop files that can be automatically loaded into Properties upon TestStep run.