Selenium2Library - How to over ride the error "Maximum limit of started keywords exceeded."

1,303 views
Skip to first unread message

E T H I E S Ethi

unread,
Nov 22, 2016, 7:57:23 AM11/22/16
to robotframework-users
I am getting below error:
"FAIL : Maximum limit of started keywords exceeded."

I want to increase the limit, please help me how should I execute the test cases without getting this error.

Log as :
....
20161122 18:17:58.559 :  INFO : </td></tr><tr><td colspan="3"><a href="selenium-screenshot-10.png"><img src="selenium-screenshot-10.png" width="800px"></a>
20161122 18:17:58.561 :  FAIL : Column #3 in table identified by 'user-table' should have contained text 'TestingR...@test.com'.
20161122 18:17:58.563 :  INFO : ${status} = FAIL
20161122 18:17:58.563 :  INFO : ${value} = Column #3 in table identified by 'user-table' should have contained text 'TestingR...@test.com'.
20161122 18:17:58.570 :  INFO : Clicking element 'xpath = //a[contains(text(),'Next')]'.
20161122 18:17:58.622 :  FAIL : Maximum limit of started keywords exceeded.
Ending test:   CR Test Directory.4 Manage User-Edit User.TestCase4.1: Search the User
...

Please let me know if require more information.
max err.jpg

Hélio Guilherme

unread,
Nov 22, 2016, 4:18:13 PM11/22/16
to robotframework-users
I really don't know how to that. You will have to look to Python source code and find where it happens.
But it looks like the code reached an important protection, because you are calling recursively Test4.1.1.
If you don't use `Run Keyword` and call the keyword directly with resource2.Test4.1.1, would you get the same error?

What you are asking seems a very risky ground to go trough.


--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Ridwan Abdullah

unread,
Nov 22, 2016, 9:58:36 PM11/22/16
to robotframework-users
Hi Ethi

Try to go through this directory C:\Python27\Lib\site-packages\robotide\lib\robot\running and open context.py with your text editor.
You need to edit the number _started_keywords_threshold at line 53 to bigger number.
I suggest you to create a backup file before you edit the source file.

Hope this helps you

Jarmo Kortelainen

unread,
Nov 23, 2016, 1:00:06 PM11/23/16
to robotframework-users

Hello,

 

We are starting a biggish project and our customer wants that all users should use Selenium 3... So my question is; does anyone know, does Selenium 3 work with robotframework-selenium2library?

Thanx,

-Jarmo

Pekka Klärck

unread,
Nov 25, 2016, 8:26:38 AM11/25/16
to E T H I E S ETHI, robotframework-users
Hi,

The limit of started keywords in Robot Framework (not in
Selenium2Library) to avoid execution crashing due to infinite
recursion. The limit is somewhat low, 42 keywords, because on some
operating system and Python interpreter combinations problems occur
pretty easily. There have been requests to increase the limit, but
that can only be done if someone tests what's the current situation on
different platforms. It could be made configurable, but that is so
rarely needed that I wouldn't like to add new configuration option for
it.

Cheers,
.peke
> --
> You received this message because you are subscribed to the Google Groups
> "robotframework-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to robotframework-u...@googlegroups.com.
> To post to this group, send email to robotframe...@googlegroups.com.
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org
Reply all
Reply to author
Forward
0 new messages