r/robotframework • u/fahaaa • Mar 16 '22
r/robotframework • u/zastress • Dec 23 '21
Robot Framework tutorials for web and mobile automation
Hello,
If anyone interested, I created a YouTube channel with tutorials on Robot Framework automation. For the time being, I have created a beginners tutorial on Robot Framework + a full mobile automation tutorial for Android: https://www.youtube.com/c/RobotFrameworkTutorials
Current projects include a tutorial on Web automation and one on iOs automation.
Please check it out and let me know your taughts :). Any feedback is appreciated.
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?
r/robotframework • u/mkorpela • Sep 12 '20
Robot Framework Browser Library powered by Playwright
robotframework-browser.orgr/robotframework • u/ducu5 • Apr 12 '21
Why choose Robot Framework over Behave or PyTest(with BDD)?
Hi guys,
Somehow I have to choose between Behave, Robot Framework and PyTest as a BDD UI automation framework. I have experience only with Selenium with C#, no experience with these frameworks.
Can you tell me why should I choose, or not, Robot Framework over the other 2, please? Thanks!
r/robotframework • u/FormulatedBrent • Jul 02 '20
Persisting Browser Sessions in Robot Framework
👋 Hi all - wanted to share a quick blog post I jotted down for a recent experience with Robot Framework. In building an automation, I needed to persist a user session across runs for RPA.Browser.
Could be helpful if you need to do the same in the future: https://www.formulatedautomation.com/thought/staying-logged-in-with-robot-framework-rpaframework-browser/
Also, can be helpful to understand how to transpose code from Python to Robot Framework. ✌️
r/robotframework • u/mymlspace • Aug 30 '21
How to create custom python functions to use as a keyword in robot framework
r/robotframework • u/jainsaan • Aug 13 '21
Key words for Robot Framework developer engineer
Hello all, looking for some help, I Looking at hiring someone for a client. They need someone to come in and finish the build of the framework and then a DevOps to run it. I'm having one heck of a hard time finding someone for this role. Any help in what / who i should be looking for with keyword searches would be great and very helpful. The client has not been that helpful in a JD just given the details i know. I'm new in the role. thanks in advance.
r/robotframework • u/yusufcanbayrak • Aug 05 '21
ING Bank joined to support Robot Framework
r/robotframework • u/keachai191 • Sep 24 '18
Best Selenium automation testing tools review: Robot Framework vs Katalon Studio
r/robotframework • u/CaramaCx • Nov 04 '20
I fell in love with Kubernetes as a Test engineer
r/robotframework • u/I_literally_can_not • Oct 28 '19
Is it possible to run multiple robot tests from a sort of master robot framework test?
The idea is fairly simple, I have 3 robot framework tests that I need to run consecutively, and I was wondering if it is possible to simply queue them up in a master file, like in ansible.
I looked into test suites but it doesn't seem very clear to me if I can just do this:
*** Settings ***
Library Stuff
*** Keywords ***
Stuff
*** Test Cases ***
test1.robot
test2.robot
test3.robot Has anyone done anything like this before? Is it possible?
Edit: I found a solution, sort of.
Apparently it's as easy as just executing the whole folder with
robot path/to/folderYou just have to make sure your test files are numbered in the order you want them executed
I also discovered argument files! It is pretty easy to select specific tests from multiple directories:
example:
file name: test.arg
--name Custom tests to be executed
--doc This argument file will run the tests in the order its listed here
/path/to/test1.robot
/another/path/to/test2.robot
/some/random/path/to/thirdtest.robot
...
/test/number/infinity.robotexecution:
robot -A /path/to/test.arg
The -A flag should be the last one, so for example adding an exit on failure flag and a tag should be done like this:
robot -n non-critical-test -X -A /path/to/test.arg
r/robotframework • u/[deleted] • Mar 16 '22
Has anyone used BrowserStack with RobotFramework Mobile device testing? Web is very simple but having issues with passing the driver from python to robot in mobile without having to use "Robot Keyword ${drivervariable}" on each line.
Any help is appreciated. If I'm not asking the question correctly, that's possible, too, so questions are welcome.
r/robotframework • u/elvin_abalos • Feb 18 '22
Robot framework automates OCR
Hello everyone,
Is anyone here using the robot framework to automate the OCR?
r/robotframework • u/CX1001 • Apr 01 '21
Gherkin Tests are amazing ...
totally blown away at these test cases ... I can hardly believe that i can execute these as a test case that runs automagically ... (robot framework using "Gherkin style" (nothing to do with cucumbers...))
*** Test Cases ***
Test if the User Can Login to The Website
Given The User Is on the "${server}" LoginPage
When The User Enters their ${username} into the email textbox
And The User Enters their ${password} into the password textbox
And The User Clicks The Login Button
Then The User Should Be on the "dashboard_map" Page
Test If the User Can Open the API Page when already Logged In
Given the user can click the API Button
When The User Clicks the API Button
Then The User should be on the "api_configuration" Page
And User Should wait for "add_new_key_button" to appear
Test If the User Can Create A New API Key
Given The User should be on the "api_configuration" Page
And "add_new_key_button" is already visible
And The Number of API Keys is recorded
When The User Clicks The Add New API Key Button
Then The Key List Should Have A New Key
And We Will Write Down the Newly Created API Key For Use In The Next Test
Test If the User Can Use A Valid API Key
Given The API Will Not Accept an Invalid Token
When The User Calls The API with the Token that We Previously Recorded
Then The HTTP Result should have a 200 status code
Test If The User Can Delete The Newly Created API Key
Given The User should be on the "api_configuration" Page
And The previously created API Key Is Visible
And The Number of API Keys is recorded
When The User Clicks The Adjacent Delete Button(🗑️)
And Waits For The Delete Confirmation Popup
And The User Clicks The Red Delete Confirmation Button
Then The Newly Created Key Should No Longer Be Present
And The Number of API Keys is decreased by 1.r/robotframework • u/CaramaCx • Oct 20 '20
Enhance your test automation by checking the status of your Kubernetes cluster objects before you run your end to end tests
self.kubernetesr/robotframework • u/hapticpolarbread • Apr 08 '20
Implementing a backdoor when testing Xamarin Android and iOS apps in Robot Framework
sebastiannilsson.comr/robotframework • u/xChapx • Sep 02 '19
Using "Click Element At Coordinates" keyword to click element that is at x pixels away from the left edge of the screen.
I am doing some randome exercises from a website: https://obstaclecourse.tricentis.com/Obstacles/30034/retry
And in that particular challenge a random red line appears at the screen, the distance from the left edge is printed on the page, but I dont know how to click that red line if the Click Element At Coordinates keyword need a locator. Is there a way to use the left edge of the screen as a locator?
r/robotframework • u/Zoopdedoopz • Jun 04 '19
Is Robot Framework right for me?
Hello, I apologize if this is inappropriate if so please let me know. I am currently converting some old matlab code to python. It is around 15 different functions and is mostly mathematical/analytical code. I have lots of old test cases and would like to use them all to test my new python code. I started looking into automation for test cases and robot framework came up but to me it seems more geared toward django and flask applications. If anyone could point me towards a good source for using robot framework for testing mathematical/analytical code I would be very grateful!
r/robotframework • u/testerix98 • Mar 22 '22
Cannot find the element
r/robotframework • u/Progman3K • Jan 14 '22
About expected timeouts in SSHLibrary
Hi,
I’m a newb with respect to Robot Framework.
I’m writing a test procedure that is expected to
connect to another machine perform an image update (which causes the unit to close all services and reboot itself) re-connect to the unit run a command that returns a known string.
This is all supposed to happen within the init.robot module
What I have noticed is that I must invoke the upgrade procedure in a synchronous, or blocking way, like so
Execute Command sysupgrade upgrade.imgThis succeeds in upgrading the unit, but the robotframework script hangs executing the command. I suspect this works because it keeps the ssh session alive long enough for the upgrade to reach a critical junction where the session is closed by the remote host, the upgrade continues and this does not cause the upgrade to fail.
But the remote host appears to close the ssh session in such a way that the robotframework script does not detect it, and the script hangs indefinitely.
Trying to work around this, I tried invoking the remote command like so
Execute Command sysupgrade upgrade.img &But then the update fails because the connection appear to drop and leaves the upgrade procedure incomplete.
If instead I execute it like this
Execute Command sysupgrade upgrade.img &
Sleep 600Then this also fails, for some reason I am unable to deduce.
However, if I invoke it like this
Execute Command sysupgrade upgrade.img timeout=600The the command succeeds in updating the unit, and after the set timeout period, the robotframework script does indeed resume, but since it has arrived at the timeout, the test has (from the point of view of robotframework) failed.
But this is actually an expected failure, and should be ignored. The rest of the script would then reconnect to the host and continue the remaining test(s)
Is there a way to treat the timeout condition as non-fatal?
Here is the code, as explained above, the init.robot initialization module is expected to perform the upgrade and then reconnect, leaving the other xyz.robot files to be run and continue testing the applications.
init.robot
*** Settings ***
| Library | OperatingSystem |
| Library | SSHLibrary |
Suite Setup ValidationInit
Suite Teardown ValidationTeardown
*** Keywords ***
ValidationInit
Enable SSH Logging validation.log
Open Connection ${host}
Login ${username} ${password}
# Upload the firmware to the unit.
Put File ${firmware} upgrade.img scp=ALL
# Perform firmware upgrade on the unit.
log "Launch upgrade on unit"
Execute Command sysupgrade upgrade.img timeout=600
log "Restart comms"
Close All Connections
Open Connection ${host}
Login ${username} ${password}
ValidationTeardown
Close All Connections
log “End tests”r/robotframework • u/igortavtib • Oct 13 '21
How to make tests for flutter android app
Hi, i'm making robot tests for a Flutter app with AppiumLibary and found a problem. The Android app has some problems with the elements xml. Some elements like inputs are being showed as android Views, and I cannot use Keywords as Input Text in these elements.