
Groovy
markinlqx
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Groovy 读取SQL Server数据
//Groovy 读取SQL Server数据import groovy.sql.Sqldef username = "sa"def password = "sasa"def url = "jdbc:sqlserver://ServerName\\InstanceName"def driver = "com.microsoft.sqlserver.jdbc.SQLServerDriver"原创 2012-09-09 09:32:01 · 2304 阅读 · 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 · 1813 阅读 · 0 评论 -
SoapUI 获取当前运行项目所在目录
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )def projectPath= groovyUtils.getProjectPath()log.info projectPath原创 2012-09-09 09:47:11 · 1373 阅读 · 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 · 340 阅读 · 0 评论 -
Groovy Convert between string and date
Reference:http://java.dzone.com/articles/groovy-jdk-gdk-date-andhttp://www.javabeat.net/2008/09/sample-code-for-simpledateformat///String to Dateimport java.util.Datedef newDate ='原创 2013-04-03 13:38:37 · 3173 阅读 · 0 评论 -
Groovy get current time
def now= new Date()println nowdef longType= now.timeprintln longTypedef gCalendar= new GregorianCalendar()println gCalendar.timeprintln gCalendar.time.timeprintln System.currentTimeMilli原创 2013-04-03 16:34:39 · 1059 阅读 · 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 · 1210 阅读 · 0 评论 -
Groovy 学习资料
Book:Groovy in action Down load address:http://download.youkuaiyun.com/detail/markinlqx/4459750http://groovy.codehaus.org/api/http://docs.oracle.com/javase/6/docs/api/原创 2013-04-03 16:25:05 · 524 阅读 · 0 评论