Forum Discussion

skaushik9's avatar
skaushik9
Occasional Contributor
5 years ago
Solved

Soapui - updating response xml file

My requirements is mentioned below
1) I am able to ready multiple rows from excel file using groovy script
2) I want to add dynamic child nodes based on data from step 1 in response xml using groovy script
3) then execute the test case using groovy script

Can I get code to achieve this?
  • nmrao's avatar
    nmrao
    5 years ago
    Please check the similar thread on updating xml

4 Replies

    • skaushik9's avatar
      skaushik9
      Occasional Contributor
      Roa- Thanks for above.

      Note - I am testing response message generates from WSDL in SOAPUI (web service)

      Can you also guide on code for below steps in one groovy script
      1) Groovy code for getting access to response XML which exist as part of WSDL response message
      2) Add new nodes based on namespace in response XML using Groovy script
      3) Using groovy script post the modified XML so that it gets executed after Groovy script modifies it

      Thanks in advance
      • nmrao's avatar
        nmrao
        Champion Level 3
        Please check the similar thread on updating xml