Questions Tagged [Robotframework]

Questions Tagged [Robotframework]

The Robot Framework is a generic test automation framework for acceptance testing and acceptance test-driven development (ATDD). It is a keyword-driven testing framework that uses tabular test data syntax. The Robot Framework is written in Python.

6,827 questions
185 votes
39 answers
492k views

SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 81

I am currently new to robot framework.I am currently using latest window version of chrome and chromedriver which is 80 but when i try to run the test it gives the message "SessionNotCreatedException: ...
55 votes
2 answers
3k views

Running a test suite with over a million test cases

We have a distributed test environment with the robotremoteserver starting a bunch of other applications and working with them as part of the test. The test that I am trying to run requires me to run ...
41 votes
4 answers
96k views

How to run specific test cases from a test suite using Robot Framework

I am new to Robot and am learning to write logic and test cases. I have a test suite, "mytestsuite.robot", which has a lot of test cases. I have a couple of errors in one of my test cases. ...
31 votes
3 answers
173k views

How to write multiple conditions of if-statement in Robot Framework

I have trouble writing if conditions in Robot Framework. I want to execute Run Keyword If '${color}' == 'Red' OR '${color}' == 'Blue' OR '${color}' == 'Pink' Check the quantity I can use this "...
28 votes
9 answers
53k views

Error: Opening Robot Framework log failed

If I open any .html file that generated by Robot Framework and try to convert it in any other format(for example, docx formate) using either any python code or inbuilt command line tool that are ...
28 votes
1 answer
57k views

How to create a custom Python code library for the Robot Framework

I already have Python source files for some custom tasks. Can I create a custom library of these tasks as keywords and use in the Robot Framework?
26 votes
4 answers
43k views

Is it possible to have a variable span multiple lines in Robot Framework?

I have a very long regex that I would like to put into a variable to test with. I'd like to be able to put it on multiple lines so that it's not so unreadable. I saw you could do multiple lines with ...
  • 1,375
25 votes
4 answers
89k views

Simplest way to concatenate two strings in robot framework .?

Given two strings 'a' , 'b', what is the simplest way to concatenate them and assign to a new variable in robot framework.? I tried this simple pythonic way, but it didn't work ${var}= 'a' + 'b'
24 votes
1 answer
20k views

Robot Framework: access Robot's global variables from Python library code?

I have some settings-type global vars that I'd like to be able to access from Python code. For example: pybot --variable RESULTS_PATH:/wherever/this/points test.txt Now, my module logger.py file ...
23 votes
6 answers
120k views

Return results in Robot Framework keyword?

How can I return the results after running a keyword? Example: mykey word [Arguments] input ${results}= getme input But I want to use these results: ${results} = mykey word newinput
22 votes
2 answers
46k views

How to make multi-lines test setup or teardown in RobotFramework without creating new keyword?

I need to call two teardown keywords in test case but must not create new keyword for that. I am interesting if there is a such syntax for keywords as for documentation or loops for example: [...
  • 1,530
22 votes
3 answers
62k views

How to print variables values in Robotframework log

I have a RF test and I need to print the variables values, not the name. I am trying with "log to console Num: ${Num}" but log.html only shows: **KEYWORD** BuiltIn . Log To Console Num:, ${Num} ...
  • 876
21 votes
3 answers
95k views

Json handling in ROBOT

I have a Json file in which there is a field which I need to edit and save the file for next usage. But the field which I need to edit is as shown below, The value I need to assign fr the field is ...
20 votes
6 answers
31k views

Robot Framework get name of current test case

I have a set of test data that is categorized by test case, and I would like to have a test setup keyword that loads the data for each test case. Something like this would work: *** Keywords *** ...
20 votes
3 answers
66k views

How to test for blank text field when using robotframework-selenium?

How can I specify blank/empty value for a text field when using the robotframework-seleniumlibrary with a TSV file? For example, I have the following: Textfield Value Should Be identifier=name1 ...

15 30 50 per page
1
2 3 4 5
…
456
Sophia Al-Mansoor
Author

Sophia Al-Mansoor

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.