ContributionsMost RecentMost LikesSolutionsUnable to read the response in groovy script test stephello, I have a datasource step followed by a request followed by a script step. I want to run the script against the response to read some node values def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) def holder = groovyUtils.getXmlHolder( "stageMove_RountingPair_Request.requestContent" ) def mesLotName = holder.getNodeValue("//ax21:mesLotName") But I get NullPointerexception It is not saying which object is null. could someone please tell me what am I doing wrong? Thanks - ShashiRe: How to read parent and child nodes in groovy?Thanks for the reply. It is working perfectly as expected. - ShashiHow to read parent and child nodes in groovy?Hello, I have a response like this Can some one please help me giving me leads to code the groovy assertion to get the child elements based on its parent? Example, I need value of name under the first parent node that is ax21:stageset. In my current script i am doing def holder = groovyUtils.getXmlHolder( messageExchange.responseContent ) def name = holder.getNodeValue("//ax21:name") this gets me the last one it reads. Is there a way to specify the parent.name like stageset.name or fabstageset.name? Thanks in advance! - Shashi Difference in running testrunner standalone or from within the toolI want to understand the difference in running the soap ui test runner.bat from command line or from Test Maker versus running it from within the Soap UI tool. The reason is, I have script assertions which writes the results to a log file. It creates the log file which I run the test case from within the tool. but when I invoke it from command line or from test maker tool, it does not execute the script assertion and does not produce the file.Re: Will Soap UI no pro version and pro verison work together on a single box when ?java.lang.NoClassDefFoundError: com/eviware/soapui/tools/SoapUITestCaseRunner It is not able to load the SoapUITestCaseRunner classWill Soap UI no pro version and pro verison work together on a single box when ?I have both SOAP ui non pro version and the pro version with trail license. I get NoClassDefFoundError while invoking testrunner.bat from cmd line while using no pro version and I get System could not find the path specified while using pro version. Could this be caused by both existing together? my invoking statement from ant script is ${SOAPUI_PATH}\testrunner.bat -e ${WS_URL}/LotDTOService -r -f D:\INCA_AUTO -c "MES_Lot_TestCase" D:\INCA_AUTO\INCA_SVR8_Proj-soapui-project#trial.xml SOAPUI_PATH is set to the bin directory of soap ui WS_URL is the WSDL URLRe: Reading test data from into datasource and to feed that to the test caseI was reading a tutorial on Soap ui pro where we could create properties on response and create a transfer to transfer the value of the properties from the response to the property. that link also had a data source loop to be created to get the properties for all the requests posted to the service. I am trying to parse out the response to get some specific values from the response. Initial thought was to save the response a files and to write a java program to parse the response. But for testing maintainability is a bug thing with this approach. Is this configurable in soap ui pro by using properties and transfers? Is yes, can someone tell me how?Re: Reading test data from into datasource and to feed that to the test caseI have this resolved now. I had to change the order if the test steps (I was not aware the order matters) Now I have the responses saved for all the requests. The idea is to write programs to extract information to have test results compared with expected results. Thanks for all the information Ole and I will use the groovy site as I will be writing more and more of that.Re: Reading test data from into datasource and to feed that to the test caseI have outFile.close() right after I write the response to the file. It is not able to capture the responses. Instead if I out the same script as a script assertion, it is able to write the response to the file. But the draw back is I get only one file with the last request and response. I need to save all the responses. I want to try some try catch and finally block to handle to this situation where I can force things a bit. for that, I need some help with Groovy scripting. Can anyone point me to a good source on Groovy where I can see the usage of the scripting language and also some examples? Thanks - ShashiRe: Reading test data from into datasource and to feed that to the test caseHello, I am able to save the response into the file. I was able to do this with the assertions as well. I have moved the assertion to a test step now. But the file comes out empty. Could it be the problem where the file object is still not closed completely and the next request is trying to access the same object? Thanks - Shashi