Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Detect Errors - Begin, End Patterns #4365

hjubi ·

Hello,

I have question. Can I access somehow e.g. via groovy script to the list of "begin patterns" of current step? I want to get all begin patterns, convert to an array and check if error message (step.getErrorMessage()) contains "detect errors" from pattern list, if so then return true.

Cheers!

  • replies 1
  • views 790
  • stars 0
robinshen ADMIN ·

Please use below:

groovy:
if (step.errorDetection != null) {
  logger.info(step.errorDetection.beginPatterns);
  logger.info(step.errorDetection.endPatterns);
}