【发布时间】:2021-10-05 13:43:16
【问题描述】:
假设我在 Utility js 文件中保存了以下函数。
function getCurrentDate(){
return 'date';
}
function getMonth(){
return 'Oct';
}
请帮助我如何在功能文件中访问这些方法。
我尝试了以下代码,但它不起作用。
* def fun = call read('Utility.js')
* def result = getData()
or
* def result = fun.getData()
【问题讨论】:
标签: karate