Test case contains no keywords

4,814 views
Skip to first unread message

sala...@gmail.com

unread,
Sep 10, 2013, 11:01:54 AM9/10/13
to robotframe...@googlegroups.com
i wrote a keyword and when i run into normally in robot framework and pass the values to they keyword it works.
when i try to use they keyword as a template for my Test case i get an error when i run it that " Test case contains no keywords".
I have no idea why this is happening due to the face that i have another robot framework test that has templates and works.
Any Ideas?

Avihay Eyal

unread,
Sep 11, 2013, 8:53:56 AM9/11/13
to robotframe...@googlegroups.com
Maybe that keyword defined in a different file? Did you forget to add it as resource?

Prashant Abbigeri

unread,
Oct 21, 2018, 2:29:53 PM10/21/18
to robotframework-users
I have the same issue as well, please let me know if anyone gets a solution for this 

Thanks 

Amar Kaldate

unread,
Jan 7, 2020, 12:39:31 AM1/7/20
to robotframework-users
I also encountered the same problem. It got resolved by inverting simple formatting mistake I did while writing the user keyword. In my user keyword, I missed a single TAB before [Documentation] setting.

============================================================================
IMPORTANT NOTICE: The information in this e-mail and any attached files is CONFIDENTIAL and may be legally privileged or prohibited from disclosure and unauthorised use. The views of the author may not necessarily reflect those of Zymr, Inc. It is intended solely for the addressee, or the employee or agent responsible for delivering such materials to the addressee. If you have received this message in error please return it to the sender then delete the email and destroy any copies of it. If you are not the intended recipient, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication, or any action taken or omitted to be taken in reliance upon this message or its attachments is prohibited and may be unlawful. At present the integrity of e-mail across the Internet cannot be guaranteed and messages sent via this medium are potentially at risk. All liability is excluded to the extent permitted by law for any claims arising as a result of the use of this medium to transmit information by or to Zymr, Inc.

Jirayu Kaewprateep

unread,
Jan 7, 2020, 12:59:55 AM1/7/20
to robotframework-users
What else can be the delim?

Aliasger Kiranawala

unread,
Jan 7, 2020, 1:14:46 AM1/7/20
to robotframework-users
Multiple reasons:
1. Spaces and tabs should be proper.
2. Make sure no copy paste from any document, sometimes ASCII keywords cause such issue.
3. Check for spelling mistakes.

Jirayu Kaewprateep

unread,
Jan 7, 2020, 1:18:28 AM1/7/20
to robotframework-users
I found the error once, some alphabet exists but we cannot see.

Rajul Mathur

unread,
Jun 13, 2020, 4:47:25 PM6/13/20
to robotframework-users
"Test case contains no keywords" may also occur if the spaces are not correctly given before the step:
For Eg:

*** Settings ***
Library SeleniumLibrary

*** Variables ***

*** Test Cases ***
This is Login Test Script
[documentation] Login Script
[tags] BasicTest

Open Browser https://google.com chrome
Close Browser

*** Keywords ***

If you observe above the documentation, tags Open Browser and close browser lines have a tab space from the start.
I was also facing this issue but when I did the indentation it is resolved for me.
Hope this helps.

Regards,
Rajul Mathur

On Tuesday, September 10, 2013 at 8:31:54 PM UTC+5:30, sala...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages