I am running into an issue where I’m getting an error when I am trying to develop a method to generate a simulation.log whenever I receive a status other than 200 and receive “KO”. I was wondering if there is any solution in solving this issue?
Error:
scala:8: not found: type ExtraInfo
def getExtraInfo(extraInfo : ExtraInfo): String = {
Code:
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
{
""
}
}