I'm aware of the Run Keyword and Continue on Failure / Run Keyword And Ignore Error / Run keyword and return status Builtin keywords but I have a very wide set of test cases that should not be stopped for any reason on a specific scenario and I was wondering if there is an option not to make the execution stop on a failure by default, without having to manage it through these keywords and adding a non-business related syntax in my upper layer keywords.
Is there a way to configure Robot Framework so the execution is not stopped by a failure
3.2k views Asked by Albert Montes Cobo AtThere are 2 answers
Bryan Oakley
On
Generally speaking, robot simply isn't designed to work the way you want. It's designed to exit a test when a keyword fails unless you explicitly run that keyword with one of the special keywords (eg: run keyword and continue on failure).
In some very limited cases, you can get this behavior by using a template that calls run keyword and continue on failure for every test step. This technique will only work if your test case is made up strictly of keywords, and doesn't try to save keyword results to variables.
For example, consider this test:
*** Test cases ***
Example
log step one
log step two
fail something went wrong
fail something else went wrong
log last step
If you run the above test, it will stop on the first failure. However, by adding a test template that uses run keyword and continue on failure, all the steps will run before continuing to the next test:
*** Test cases ***
Example
[Template] Run keyword and continue on failure
log step one
log step two
fail something went wrong
fail something else went wrong
log last step
This is what the report looks like with the above test:
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in TESTING
- Using ES Modules with TS, and Jest testing(cannot use import statement outside module)
- Mocking AmazonS3 listObjects function in scala
- How to refer to the filepath of test data in test sourcecode?
- No tests found for given includes: [com.bright.TwitterAnalog.AuthenticationControllerSpec.Register user with valid request](--tests filter)
- Error WebMock::NetConnectNotAllowedError in testing with stub using minitest in rails (using Faraday)
- How to use Mockito for WebClient get call?
- Jest + JavaScript ES Modules
- How to configure api http request with load testing
- How can I make asserts on outbound HTTP requests?
- higher coefficient of determination values in the testing phase compared to the training phase
- Writing test methods with shared expensive set-up
- Slow performance when testing non-local IP services with Playwright
- uiState not updating in Tests
- Incorrect implementation of calloc() introduces division by zero and how to detect it via testing?
- How to test Creating and Cancelling Subscription in ThriveCart in Test Mode
Related Questions in AUTOMATED-TESTS
- Generating wakeup and Error frame In LIN bus using CAPL script in Canoe tool
- Running Test in Azure failed at Cypress: "The plugins file is missing or invalid"
- Playwright - Firefox tests time out, but Chromium tests don't
- Automation testing for Flutter app in complex environment
- Karate mvn clean test does not work as I partially or totally run my features
- Base image question using playwright when performing visual comparison
- im using xpath and cant interact with the textbox
- I want to generate PDF automation report in XUnit using selenium driver and .net in visual studio?
- Run Robot in Jenkinsfile does not fetch the correct test.robot file from Github
- How to use threadpoolexecutor to run two tests and send the result of one as a parameter to the other in python
- How can I integrate a custom Mocha reporter into my test suite to filter out or ignored specific test cases from the test report based on tags?
- Optimizing Test Scenarios in Robot Framework: Reducing Redundancy and Enhancing Efficiency
- How to inject a QR code image for end-to-end testing a QR code scanning app
- how to log request object in playwright API testing
- throwing a StaleElementReferenceException during dictionary iteration in a for loop
Related Questions in ROBOTFRAMEWORK
- Unresolved library: AppiumLibrary
- Problem opening .robot from .exe generated with pyinstaller
- RPA using robotframework in springboot
- RobotFramework hangs after xx lines of log
- Unable to invoke Chrome and other browsers dynamically by giving the values in settings
- how to mention tags in robotframework while writing scripts
- What is tags in robot framework and how to define it?
- CreateProcess Error = 5 Access Denied in Robotframework Pycharm
- No keyword with name 'Open Application' found
- Error while importing Database Library in robot framework in Pycharm
- How to fail robot framework execution in listener?
- Run Robot in Jenkinsfile does not fetch the correct test.robot file from Github
- Import Variables in Suite Setup does not import variables for all the test suite
- "Importing test library 'SSHLibrary' failed: ModuleNotFoundError: No module named 'SSHLibrary'
- How do I scroll down the child popup scrollbar using the robot framework?
Related Questions in ATDD
- How to decide which scenarios to cover in "Acceptance tests" and which in "Unit tests"
- Ignore certain cucumber tags during Jenkins Run
- Compose keywords with Robot
- It is not possible to have ' in a saved variable in Robot Framework?
- Cucumber framework throwing an error while running tests
- cucumber-protactor-typescript correct way to set up sleep and element by css
- How to get JSON output with Karate & Junit5?
- Rerun Failed test cases from output.xml using jython in robot/RIDE
- What is best practice from verifying many fields in cucumber/Gherkin?
- Is there a way to configure Robot Framework so the execution is not stopped by a failure
- writing ATDDs for batch job
- When using automation tests to drive the design of your automation framework, what is this called?
- Is there any After keyword is available like Background for running cucumber steps
- Redirect URL test using Cucumber Protractor and Typescript
- React Native Acceptance Testing
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)

Although it feels a bit counter intuitive that you should want to continue when you've encountered an erronous situation, given that you may no longer be in control of the application. This in itself should be prevented. However, that said.
Given that you are already familiar with the family of Run and continue keywords, there is not much else to suggest and to answer the question with an affirmative: No.
The only approach is to wrap the keywords in a Run and Continue keyword.