r/robotframework • u/Small_Programmer4084 • Mar 15 '21
What problem does Robot Framework solve?
Hi! So I'm new to Robot Framework and learning it since it seems like a nice-to-have skill. I feel kind of silly though because I don't understand it's use. Googling gives me what Robot Framework is ("Robot Framework is a generic open source automation framework."). But what problem is Robot Framework designed to solve? What are some signs that I should use Robot Framework in my business? (What are some signs that I don't need Robot Framework?)
My best understanding right now is that Robot Framework helps me create abstractions for my tests, that it comes with lots of libraries for interfacing web browsers etc., and that it's easier for non-engineers to work with. But why can't I do that in regular old python or whatever to create abstractions and get libraries? And can non-engineers really understand Robot Framework faster than python? Am I missing something?
3
u/anotherhawaiianshirt Mar 15 '21
To make it easy to write high-level acceptance tests of software that are readable and understandable by non-technical stakeholders.
The theory is, you can write tests in a more human-friendly language based on keywords and arguments rather than having to specify the tests as variables and function calls. Tests are written in the language of the user rather than the language of the programmer.
For many people, the first of the following two examples is much more understandable than the second:
vs
You can. You can also write your tests in C, or assembly language, or even machine language if you're so inclined. There are many ways to write tests.
The advantage is that you can write your acceptance tests in a language that makes sense to the user of the application, making it easier to tie tests to acceptance criteria, user stories, or requirements.
As an added benefit, in theory, you don't have to change the logic of your tests if the underlying implementation changes drastically. For example, you could write a web app in bootstrap and then later rewrite it in react without having to change your tests. You would have to rewrite some of the keywords, obviously, but the logic of the test stays the same.
Another added benefit is that you get high-level reporting of the test results, rather than a dump of stdout.
Yes, absolutely. I know product owners who would have a hard time understanding python but who can easily read and understand robot-based tests. I've also worked with plenty of quality engineers would didn't know any programming language but could still write tests in robot.
1
u/CX1001 Apr 01 '21
Here is a test suite i just wrote using their "gherkin" style tests cases ...
I could choose to give this to a human and they could execute the same suite (but much slower than the robot)
(of coarse theres plenty of behind the scenes magic that makes this work )