I’m using WebUI.comment(’ any text ') for show a custom step in the report.
You know another way for specify a step?
Thanks
I’m using WebUI.comment(’ any text ') for show a custom step in the report.
You know another way for specify a step?
Thanks
I do the following
import com.kms.katalon.core.logging.KeywordLogger as KeywordLogger
//create a log
GlobalVariable.log = new KeywordLogger()
I then have a keyword report file which i call to report, I use KeywordUtil.markFailed for instances I want the script to be marked as a fail as the log doesn’t do this.
@Keyword
def repReporting(int intStatus, String strDetails){
switch (intStatus){
//passed
case 0:
GlobalVariable.log.logPassed("Pass " + strDetails)
break
//failed
case 1:
GlobalVariable.log.logFailed("Fail " + strDetails)
KeywordUtil.markFailed("Fail " + strDetails)
break
//Warning
case 2:
GlobalVariable.log.logWarning("Warning " + strDetails)
break
//Error
case 3:
GlobalVariable.log.logError("Error " + strDetails)
KeywordUtil.markError("Error " + strDetails)
break
//Info
case 4:
GlobalVariable.log.logInfo("Info " + strDetails)
break
//default
default:
GlobalVariable.log.logInfo("Info " + strDetails)
break
}
}
Thanks you for answer!!!