Re: No keyword with name 'Run ls -l' found.

624 views
Skip to first unread message

Ed Manlove

unread,
Apr 30, 2013, 7:06:57 AM4/30/13
to adrian.s...@gmail.com, robotframe...@googlegroups.com
Adrian,

You need to correct the 'spacing' between your keyword "Run" and it's
arguement "ls -l". For .tvs files (which I don't use and prefer .txt) it
looks like the spacing is tab -separated from a spreadsheet program
[1]. Mostly likely you have both the keyword, "Run", in the same
spreadsheet column as the arguement, "ls -l". Again I haven't used .tsv
files but the error message states it is looking for a keyword "Run ls
-l" when the keyword is only "Run".

Ed

[1]
http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html#tsv-format

On 04/30/2013 02:23 AM, Adrian Skoczylas wrote:
> I can't run any command.
> I download robot framework jar file and start testing by: java -jar
> /home/robotFramework/robotframework-2.7.7.jar tests.tsv
> My test file look:
> Library OperatingSystem
>
> *Test Case*
> Insert [Tags] test1
> [Timeout] 4 minutes
> Run ls -l
>
>
> What is wrong?
>
>
> ==============================================================================
> Tests
> ==============================================================================
> Insert
> | FAIL |
> No keyword with name 'Run ls -l' found.
> ------------------------------------------------------------------------------
> Tests
> | FAIL |
> 1 critical test, 0 passed, 1 failed
> 1 test total, 0 passed, 1 failed
>

Adrian Skoczylas

unread,
Apr 30, 2013, 7:33:52 AM4/30/13
to robotframe...@googlegroups.com, adrian.s...@gmail.com
Hi,

I correct spacing and now i get:
==============================================================================
Tests
==============================================================================
Insert :: Insert and extract test case                                | FAIL |
No keyword with name 'Run' found.

------------------------------------------------------------------------------
Tests                                                                 | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed

For file:

Library    OperatingSystem

*Test Case*
Insert    [Documentation]    Insert and extract test case               
    Run    ls -l   

Do you know what is the problem? Robot don't see Run command :(

Adrian Skoczylas

unread,
Apr 30, 2013, 7:43:27 AM4/30/13
to robotframe...@googlegroups.com
There was missed:
*Setting*
Library OperatingSystem

Now it works :). Thanks for help.

Ed Manlove

unread,
Apr 30, 2013, 8:07:43 AM4/30/13
to adrian.s...@gmail.com, robotframe...@googlegroups.com
Adrian,

Make sure you have a test table heading for the *Settings* section; which contains the Library settings. So you file should look something like

*Setting*
Library��� OperatingSystem

*Test Case*
Insert��� [Documentation]��� Insert and extract test case��� ��� ��� ���
��� Run��� ls -l���


From the documentation ...

"The TSV format can be used in Robot Framework's test data for all the same purposes as HTML. In a TSV file, all the data is in one large table. Test data tables are recognized from one or more asterisks (*), followed by a normal table name and an optional closing asterisks. Everything before the first recognized table is ignored similarly as data outside tables in HTML data." [emphasis mine]

Ed

[1] http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html#tsv-format



On 04/30/2013 07:33 AM, Adrian Skoczylas wrote:
Hi,

I correct spacing and now i get:
==============================================================================
Tests
==============================================================================
Insert :: Insert and extract test case������������������������������� | FAIL |

No keyword with name 'Run' found.
------------------------------------------------------------------------------
Tests���������������������������������������������������������������� | FAIL |

1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed

For file:

Library��� OperatingSystem

*Test Case*
Insert��� [Documentation]��� Insert and extract test case��� ��� ��� ���
��� Run��� ls -l���

Do you know what is the problem? Robot don't see Run command :(

W dniu wtorek, 30 kwietnia 2013 13:06:57 UTC+2 u�ytkownik Ed Manlove napisa�:
Adrian,

You need to correct the 'spacing' between your keyword "Run" and it's
arguement "ls -l". For .tvs files (which I don't use and prefer .txt) it
looks like the spacing is tab -separated from a spreadsheet program
[1]. �Mostly likely you have both the keyword, "Run", in the same
spreadsheet column as the arguement, "ls -l". Again I haven't used .tsv
files but the error message states it is looking for a keyword "Run ls
-l" when the keyword is only "Run".

Ed

[1] ďż˝
http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html#tsv-format

On 04/30/2013 02:23 AM, Adrian Skoczylas wrote:
> I can't run any command.
> I download robot framework jar file and start testing by: java -jar
> /home/robotFramework/robotframework-2.7.7.jar tests.tsv
> My test file look:
> Library � �OperatingSystem
>
> *Test Case*
> Insert � �[Tags] � �test1
> � � [Timeout] � �4 minutes
> ďż˝ ďż˝ Run ls -l
>
>
> What is wrong?
>
>
> ==============================================================================
> Tests
> ==============================================================================
> Insert ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝
> | FAIL |
> No keyword with name 'Run ls -l' found.
> ------------------------------------------------------------------------------
> Tests ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝ ďż˝
> | FAIL |
> 1 critical test, 0 passed, 1 failed
> 1 test total, 0 passed, 1 failed
>
--
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.
Visit this group at http://groups.google.com/group/robotframework-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
ďż˝
ďż˝

Reply all
Reply to author
Forward
0 new messages