无法从此列表中找到要调用的方法<init>()-Katalon

时间:2018-12-12 04:02:50

标签: java groovy katalon-studio

我正在使用Katalon Studio进行自动化,并且在调用方法时遇到此错误。我正在尝试为输入字段添加时间戳。

下面是我的方法

String todayDate() {
  Date today = new Date()
  return today.toString()
}

下面是我要调用该方法的脚本代码

myVar = todayDate()

WebUI.setText(findTestObject('ObjectRepository/ClassNotices/Page_CloudSchool  
              Teacher/input_Heading_noticeHeading'), myVar)

0 个答案:

没有答案