codeforequity-at / botium-core

The Selenium for Chatbots - Bots Testing Bots
https://www.botium.ai
MIT License
229 stars 64 forks source link

RETRY operation did not work on botium-cli #716

Open ram-d opened 1 year ago

ram-d commented 1 year ago

Hi,

One or two tests in my automation are failing with an api error and I wanted to use the retry operation but it did not work on botium-cli. I tried with 'RETRY_USERINPUT_ONERROR_REGEXP' set to the error message and retry count set to 1 in the botium capabilities. I also tried with RETRY_USERSAYS_ONERROR_REGEXP but the result was the same. Can you please help with the right example on how to use the retry operation on botium-cli?

Thanks, Ram

ujja commented 1 year ago

Hello,

I suppose error is coming on conversation, not on establishing connection? In this case this has to work:

"Capabilities": {
  "CONTAINERMODE": "...",
  "RETRY_USERSAYS_NUMRETRIES": 1,
  "RETRY_USERSAYS_ONERROR_REGEXP": "<text to filter the error message, like 'timeout error'>"
}
ram-d commented 1 year ago

Hi @ujja , I tried this and it didn't work.

"RETRY_USERSAYS_ONERROR_REGEXP": "Hmm … something did not work. Please try again in a bit.", "RETRY_USERSAYS_NUMRETRIES": 1,

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.