0

I'm getting error as Maximum Limit of started keywords exceeded.

In Robot framework when executed the test case and validate the data against the Database byrunning a query. Can some one help me what is issue about?

enter image description here

Guy Avraham
  • 3,482
  • 3
  • 38
  • 50
  • pls share the test case code, so someone can take a look further. there are many posts around this error, and one of the recent is [maximum-limit-of-started-keywords-exceeded](https://stackoverflow.com/questions/64749100/maximum-limit-of-started-keywords-exceeded) – simpleApp Dec 22 '21 at 13:08

1 Answers1

1

Your test calls the keyword Get Value, which calls the keyword Get Value. You've created an infinite recursion. Get Value calls Get Value which calls Get Value which calls Get Value which calls ...

The best solution is the simplest one: don't create a keyword that calls itself. If there is already a keyword with a given name, don't create another one with the same name. While you can make it work having two with the same name, it will make your test cases harder to understand.

If you have another keyword called Get Value and you simply must have two keywords with the same name, you can give the fully qualified name so robot doesn't call the same keyword again. For example, if your Get Value is trying to call the Get Value from robot.myTest, call it like this:

*** Keywords ***

Get Value

robot.myTest.Get Value
Yunus Kocatas
  • 286
  • 2
  • 9