Groovy
markinlqx
这个作者很懒,什么都没留下…
展开
-
Groovy 读取SQL Server数据
//Groovy 读取SQL Server数据import groovy.sql.Sql def username = "sa" def password = "sasa" def url = "jdbc:sqlserver://ServerName\\InstanceName" def driver = "com.microsoft.sqlserver.jdbc.SQLServerDriver"原创 2012-09-09 09:32:01 · 2215 阅读 · 0 评论 -
SoapUI 读取Response节点值
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) def response = context.expand( '${MyRequest#ResponseAsXml}' ) def holder = groovyUtils.getXmlHolder(response) def NodeValue= hol原创 2012-09-09 09:44:01 · 1761 阅读 · 0 评论 -
SoapUI 获取当前运行项目所在目录
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) def projectPath= groovyUtils.getProjectPath() log.info projectPath原创 2012-09-09 09:47:11 · 1311 阅读 · 0 评论 -
The difference between null and isEmpty in Groovy
If the print result of data from SQLServer Data Base is null, you should use null; if the print result of data from SQLServer Data Base is nothing, you should use isEmpty. for example: lo原创 2012-11-06 19:36:58 · 307 阅读 · 0 评论 -
Groovy Convert between string and date
Reference: http://java.dzone.com/articles/groovy-jdk-gdk-date-and http://www.javabeat.net/2008/09/sample-code-for-simpledateformat/ //String to Date import java.util.Date def newDate ='原创 2013-04-03 13:38:37 · 3090 阅读 · 0 评论 -
Groovy get current time
def now= new Date() println now def longType= now.time println longType def gCalendar= new GregorianCalendar() println gCalendar.time println gCalendar.time.time println System.currentTimeMilli原创 2013-04-03 16:34:39 · 1002 阅读 · 0 评论 -
SoapUI offen use script
1.1. Get and Set propertiesGetting properties from groovy is straight-forward; all objects that contain properties have a getPropertyValue / setPropertyValue methods. The following examples are from i原创 2013-03-21 13:41:47 · 1161 阅读 · 0 评论 -
Groovy 学习资料
Book:Groovy in action Down load address: http://download.csdn.net/detail/markinlqx/4459750 http://groovy.codehaus.org/api/ http://docs.oracle.com/javase/6/docs/api/原创 2013-04-03 16:25:05 · 484 阅读 · 0 评论