Title / Description
Code def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ); //log.info( groovyUtils.projectPath ); // get request property def requestHolder = groovyUtils.getXmlHolder( "Plan#Request" ); def x = requestHolder.getNodeValue("//q0:Plan/request/Description"); // Update with unique ID def currentTime = System.currentTimeMillis(); requestHolder.setNodeValue("//q0:Plan/request/Description", "Test " + currentTime); log.info( "Test " + currentTime ); // set the property requestHolder.updateProperty();
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code