No keyword with name 'NOTHING' found.
See original GitHub issuePrerequisites I want disable of taking Screenshot when something failed!
Steps to reproduce the issue
- Clone the WebDemo or use your failed test cases
- Look at http://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Register Keyword To Run On Failure about NOTHING keyword
- Disable Run-on-failure functionality by changing resource.robot, add the KEYWORD:
...
*** Keywords ***
Register Keyword To Run On Failure
NOTHING
...
- 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:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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:
thanks a lot!