我遇到了一个问题,当我尝试开发一种方法来生成simulation.log 时,每当我收到200 以外的状态并收到“KO”时,我就会遇到错误。我想知道是否有解决此问题的解决方案?
错误:
scala:8: not found: type ExtraInfo
def getExtraInfo(extraInfo : ExtraInfo): String = {
代码:
def getExtraInfo(extraInfo : ExtraInfo): String = {
if (isDebug
|| extraInfo.response.statusCode.get != TestData.successStatus
|| extraInfo.status.eq(Status.apply("KO"))) {
",URL:" + extraInfo.request.getUrl +
" Request: " + extraInfo.request.getStringData +
" Response: " + extraInfo.response.body.string
}
else
{
""
}
}