[SoapUI] 获取当前时间包括年月日时分秒来作为命名

import java.text.SimpleDateFormat

GregorianCalendar calendar = new GregorianCalendar()

def dateFormat = new SimpleDateFormat("yyyyMMddhhmmss")
def currentTime = dateFormat.format(calendar.getTime()).toString()

context.testCase.getTestStepByName("Properties").setPropertyValue("newGroupName", "AutoSanity_AR_"+currentTime)

  

原文地址:https://www.cnblogs.com/MasterMonkInTemple/p/6672202.html