Contributions
Re: How to update tag value in external xml using groovy script?
Yes Rup. I am actually looking for data driven testing. I am trying to use external xml stored on local disc. I will update the node values using xpath. After updating the xml, I will save it in different folder and at the end I will upload both request xml and response xml to the test case in ALM. It helps me keeping track of request and response used for specific test case. Please let me know if you have any easier way to do this. Really appreciate your help. Thanks! Cheers, Vikram8.4KViews0likes5CommentsRe: How to update tag value in external xml using groovy script?
Thanks Rup!! This is what I was looking for. But how to parameterize both xpath and and node value. Lets say, I am taking this xpath (envelopeNode.Body.Add.intA) as a input parameter from excel sheet and then modifying the value to '20'. def sIntA=envelopeNode.Body.Add.intA // Lets say, this value is taken from excel sheet (I have a code to get the value from excel sheet) My aim is to get the Node's xpath from excel sheet, get the Node's value from excel sheet, update the xml with this node and save updated xml in a different folder. Please suggest.8.5KViews0likes7CommentsHow to update tag value in external xml using groovy script?
I am trying to update values of node <tem:intA> and <tem:intB> in the following xml using below groovy script code. I used below groovy script code to update the tag values. But I am getting an error "Java.lang.NullPointerException: Cannot invoke method getNodeValue() on null object error at line 36". Am I using the wrong xpath? I am not sure whats going wrong. Can someone please help me?8.5KViews0likes9CommentsRe: How to import external java classes in SoapUI 5.0.0 ?
Hi Rupert, There are more than 200 java classes at this location. Not able to get all of them in one screenshet. But, yes ITDConnection class is present at this location "C:\Program Files (x86)\SmartBear\SoapUI-5.0.0\bin\ext\DDDD"12KViews0likes5CommentsHow to import external java classes in SoapUI 5.0.0 ?
I am trying to import some external java classes in my groovy script. All these classes are located under "C:\Program Files (x86)\SmartBear\SoapUI-5.0.0\bin\ext\DDDD" folder. I am getting an error "unable to resolve class ITDConnection@ line 4, column 15 ITDConnection itdc= ClassFactory.createTDConnection()" for below code import com4j.*; import DDDD.*; ITDConnection itdc = ClassFactory.createTDConnection() itdc.initConnectionEx(url)12KViews1like8Comments