Writing
soapUI: Dynamic timestamp
Add a property, e.g. currentTimestamp, then add the following: ${=new java.text.SimpleDateFormat(“yyyy-MM-dd’T’HH:mm:ss”).format(new Date())} It will create the date in this format: 2013-03-12T11:03:05 Happy SOAP’ing!
soapUI: One liner random number Groovy script
Add the following in a Groovy Script step; for example, called “Random”: context.randomValue = String.valueOf((int)(Math.random()*9999999)) Use in request like so: ${Random#result}
soapUI: Set a value to NULL
Just do the following below. Add the following in the header, like so: xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:nil=”true” And then: <childtag xsi:nil=”true” /> That’s it!
soapUI: Run each test suite with testrunner.sh
I was encountering “permspace” “Out.Of.Memory” errors, and I believe it’s because of a memory leak with the UI/Java. In any case, this worked for me: 1. Create a text file with the test suite names — will automate this soon by “capturing” the names from the XML project file. 2. Loop through it via the…
SVN Fix: Could not use external editor to fetch log message
In case you encounter the following error using SVN — on my Mac, for me: svn: E205007: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the –message (-m) or –file (-F) optionssvn: E205007: None of the environment variables SVN_EDITOR, VISUAL or EDITOR are set, and no…
soapUI Error: “ERROR:com.eviware.soapui.support.SoapUIException: Failed to init connection for drvr [oracle.jdbc.driver.OracleDriver]
I was encountering the following error in soapUI when one of the test steps was to check the database. com.eviware.soapui.support.SoapUIException: Failed to init connection for drvr [com.microsoft.sqlserver.jdbc.SQLServerDriver], connectionString [jdbc:sqlserver://server:port;databaseName=DB name;user=username;password=#####] The issue was because my soapUI installation didn’t have the appropriate ODBC jar file. 1. Get it from Oracle 2. Place it in your $SOAPUI/bin/ext…