question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No keyword with name 'NOTHING' found.

See original GitHub issue

Prerequisites I want disable of taking Screenshot when something failed!

Steps to reproduce the issue

  1. Clone the WebDemo or use your failed test cases
  2. Look at http://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Register Keyword To Run On Failure about NOTHING keyword
  3. Disable Run-on-failure functionality by changing resource.robot, add the KEYWORD:
...
*** Keywords ***
Register Keyword To Run On Failure
    NOTHING
...
  1. Try run test case with:
...
*** Test Cases ***
Valid Login
    [Setup] Register Keyword To Run On Failure
...

CLI Error message:

No keyword with the name 'NOTHING' found.

Expected behavior: When test case fails, no screenshot was taken.

Actual behavior: Test failed with:

[17:22:08] storenth@storenth-MacBookAir:~/Documents/robot_demo/WebDemo$ pip3 list | grep robot
robotframework (3.1.1)
robotframework-seleniumlibrary (3.3.1)
[17:22:52] storenth@storenth-MacBookAir:~/Documents/robot_demo/WebDemo$ robot login_tests/gherkin_login.robot 
==============================================================================
Gherkin Login :: A test suite with a single Gherkin style test.               
==============================================================================
Valid Login                                                           | FAIL |
Setup failed:
**No keyword with name 'NOTHING' found.**
------------------------------------------------------------------------------
Gherkin Login :: A test suite with a single Gherkin style test.       | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
Output:  /home/storenth/Documents/robot_demo/WebDemo/output.xml
Log:     /home/storenth/Documents/robot_demo/WebDemo/log.html
Report:  /home/storenth/Documents/robot_demo/WebDemo/report.html

Environment: robotframework (3.1.1) robotframework-seleniumlibrary (3.3.1) https://github.com/robotframework/WebDemo#running-demo

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ombre42commented, Jan 24, 2019
*** Keywords ***
Register Keyword To Run On Failure
    NOTHING

Couple of things wrong here. First this is creating a keyword that masks the SeleniumLibrary keyword. You should choose a different name. The other is that you are putting the argument on its own line. Robot thinks you are trying to call a keyword named NOTHING.

Your setup keyword should look more like:

*** Keywords ***
Setup On Failure
    Register Keyword To Run On Failure    NOTHING
0reactions
storenthcommented, Feb 2, 2019
*** Keywords ***
Register Keyword To Run On Failure
    NOTHING

Couple of things wrong here. First this is creating a keyword that masks the SeleniumLibrary keyword. You should choose a different name. The other is that you are putting the argument on its own line. Robot thinks you are trying to call a keyword named NOTHING.

Your setup keyword should look more like:

*** Keywords ***
Setup On Failure
    Register Keyword To Run On Failure    NOTHING

thanks a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve this error "No keyword with name 'and' found"
The entire expression needs to fit in a single cell of the test case table. The solution is to put only one space...
Read more >
No keyword with name 'From Pdf' found - Robot Framework
Hi, i am getting “No keyword with name 'From Pdf' found” on try to get list from pdf file. it works when i...
Read more >
"No Keyword with name" error while using AutoIt Library ...
1 Answer 1 · Open cmd in "Run as administrator" mode · run the command pip install robotframework-autoitlibrary · Now clone the autoit...
Read more >
Keyword Documentation - Robot Framework Hub
Keywords Arguments Documentation Add Location Strategy strategy_name, strategy_keyword, persist=False Capture Page Screenshot filename=selenium‑screenshot‑.png Close Browser Closes the curr...
Read more >
No keyword with name 'Open Available Browser' found
Hello, I have installed rpaframework (use 'pip install rpaframework').howerver ,when I execute ' robot xxx.robot ' in command line mode ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found