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.

The Robot Framework is an open source keyword based testing framework written in Python, and also usable with Jython for testing Java applications. The project is hosted on GitHub along with many other libraries by the open source community.

From the project web page:

Robot Framework is a generic test automation framework for acceptance testing and acceptance test-driven development (ATDD). It has easy-to-use tabular test data syntax and utilizes the keyword-driven testing approach. Its testing capabilities can be extended by test libraries implemented either with Python or Java, and users can create new keywords from existing ones using the same syntax that is used for creating test cases.

  • Extending Robot Framework using custom libraries
  • Advanced functionalities:
6747 questions
177
votes
39 answers

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: Message: session not created: This version of…
55
votes
2 answers

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 over a million test cases in a single suite. The…
Amol Topkar
  • 551
  • 4
  • 4
40
votes
4 answers

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. How do I run just that specific test case since I don't want…
Mysterio Man
  • 1,667
  • 1
  • 14
  • 17
30
votes
3 answers

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 "Run keyword If" keyword with one condition, but for…
user3477373
  • 345
  • 1
  • 3
  • 12
28
votes
1 answer

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?
Narendra Petkar
  • 480
  • 1
  • 4
  • 10
27
votes
9 answers

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 available. I am getting below error, Opening Robot…
dharpatel
  • 457
  • 1
  • 6
  • 8
25
votes
4 answers

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 the documentation tag. But when I try this…
siesta
  • 1,365
  • 2
  • 16
  • 21
24
votes
1 answer

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 needs to know the results_path to set up properly. I…
Leslie Chong
  • 1,245
  • 4
  • 13
  • 17
23
votes
6 answers

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
23
votes
4 answers

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'
user3170122
  • 677
  • 3
  • 9
  • 18
22
votes
2 answers

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: [Documentation] line1 ... line2 ... …
Kirill
  • 1,530
  • 5
  • 24
  • 48
21
votes
3 answers

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 generated Randomly in run time which i'll be…
Vidya S
  • 239
  • 1
  • 2
  • 5
20
votes
3 answers

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} Documentation: Logs the given message to the…
koxta
  • 846
  • 2
  • 8
  • 30
20
votes
2 answers

How to import and use user defined classes in robot framework with python

Assume I have a class in python: class TestClass(object): def __init__(self, arg1, arg2): self.arg1 = arg1 self.arg2 = arg2 def print_args(self): print arg1, arg2 I want to use robotframework to implement my tests…
Zeinab Abbasimazar
  • 9,835
  • 23
  • 82
  • 131
20
votes
6 answers

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 *** Load Test Data [Arguments] ${test case name} …
Lorkenpeist
  • 1,475
  • 2
  • 13
  • 26
1
2 3
99 100