ContributionsMost RecentMost LikesSolutionsRe: SoapUI integration with seleniumRCHere is the warpper class: package tools; import com.thoughtworks.selenium.*; import java.util.regex.Pattern; public final class Browser { private static Browser instance; private Selenium selenium; private boolean inuse; private Browser (String host,int port, String browserType, String url) { this.selenium = new DefaultSelenium(host, port, browserType, url); this.selenium.start(); inuse = true; } public static Browser getInstance(String host, int port, String browserType, String url) { if (instance == null) { instance = new Browser(host,port,browserType,url); } return instance; } public void open(String url) { this.selenium.open(url); } public xxxx() {}..... } Here is how you call it in a groovy test step in soapUI: import com.thoughtworks.selenium.*; import tools.*; Browser selenium = Browser.getInstance(host,port,type,url); selenium.open(url); selenium.xx .... and so you can use your selnium handle throughout your soapUI project. Make suer to close it when you're done using it or when you encounter exception.SoapUI integration with seleniumRCI was able to integrate Selenium-RC with SoapUI by directly using the java client driver provided by thoughtworks (DefaultSelenium class). Only tweak that I did was to create my own wrapper class around it and make it a singleton. This allowed me to use the Selenium handle across test steps thus allowing me to implement my automation in a more modular fashion. Without the wrapper I am forced to code my entire UI scenario in a single step as i can't pass the selenium handle around. Singleton solves this problem, but the problem with making it a singleton is that you can have only one instance running and so cannot have multiple browser sessions going on simultaneously. I am not a java programmer, and so the wrapper class singleton implementation is basic and solves my purpose. i just wanted to share this information in this forum as I spent quite sometime looking around for such a solution.Re: xml parsing with groovyI got it working. The change was: def on = holder1.getNodeValue("//ns:XData/ns:OrderNumber");xml parsing with groovyI am extracting a row of data from database, and one of the field value is an escaped xml body. I am trying to parse this xml using groovy to get a particular field. her's how my script looks: import com.eviware.soapui.support.XmlHolder; //Parse table row returned def holder = new XmlHolder(messageExchange.responseContentAsXml); //Store the field value that has xml in 'xml_data' def xml_data = holder.getNodeValue("//Results//ResultSet//Row[1]//XML_DATA"); //Start parsing of xml_data def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context); def holder1 = groovyUtils.getXmlHolder(xml_data); holder1.namespaces["ns"] = "http://www.xxx.com/xx/yy; //Pull out the field 'OrderNumber' from the nested xml def on = holder1.getNodeValue("//ns:XData/OrderNumber"); log.info("xml_data: " + xml_data); log.info("orderNumber: " + on); This results in following: Thu Jul 15 15:11:14 EDT 2010:INFO:xml_data: <?xml version="1.0" encoding="UTF-8"?>{XML Body output} Thu Jul 15 15:11:14 EDT 2010:INFO:orderNumber: it does not reutrn the field value to me. Am i approaching this correctly?Re: GroovyCastException while Executing ScriptI am facing the same issue. Were you able to find the cause of this?