Robot Framework

Robot Framework

DevOps / Build, Test, Deploy / Testing Frameworks
Chief Product Officer at InfoDesk·
Needs advice
on
CypressCypress
and
Robot FrameworkRobot Framework

In which situations should we use Cypress or Robot Framework? Are both good choices to get tenured manual testers into the practice of automating their work for tests of APIs and functional tests of web applications? Cypress looks great for functional testing of web applications and Robot Framework looks great for everything else.

Background: We have over a thousand functional test cases for our web applications being executed manually by a QA team. Our front ends interface with APIs written in Java with various frameworks over the years (e.g. Spring, Spring Boot, Java EE). I think our testers could learn enough of the basic coding in JS, Java, and Python required to automate most of those cases.

READ MORE
5 upvotes·87.4K views
Replies (1)

Both Cypress and Robot Framework are solid tools, but they serve slightly different purposes, and the choice often depends on the skills of your QA team, your tech stack, and the long-term goals for test automation.

Cypress: Best for Functional Web Testing Cypress is an excellent choice for end-to-end functional testing of modern web applications, especially with JavaScript-heavy front ends (like React, Angular, or Vue). If a large portion of your thousand functional test cases are web UI-based, Cypress will:

Provide a fast, browser-native testing experience.

Allow testers to write and debug tests easily with a rich developer-friendly UI.

Offer automatic waits, retry-ability, and deep DOM control.

However, Cypress has some limitations:

Limited support for cross-browser testing (though improving).

Not ideal for API-first testing or systems that require more than browser-level access (like CLI, mobile, databases, etc.).

That said, testers with some JavaScript knowledge (or even beginner-level) can be productive quickly with Cypress, especially if they focus on UI automation.

Robot Framework: Broad, Keyword-Driven Automation Robot Framework, on the other hand, shines when:

You're testing APIs, services, or integration layers.

You want a keyword-driven approach that is more readable and less "code-like".

You're working with various back-end services (e.g., REST, SOAP, databases, filesystems, etc.).

It's more versatile for testing beyond the web UI and integrates well with Python libraries, Java, and others. Robot Framework might be better if your testers aren't yet confident with JavaScript or if you have API-heavy applications that need deep validation beyond the UI layer.

For Manual Testers Transitioning to Automation Since your QA team has been manually executing tests and interfaces with Java-based APIs, consider the following hybrid approach:

Start with Robot Framework: Its readability and keyword-driven format make it beginner-friendly. Testers can start automating API tests quickly using the RequestsLibrary or RESTinstance, with minimal Python knowledge.

Introduce Cypress gradually for UI automation. It's great for fast feedback on UI changes and is very popular in modern frontend CI pipelines.

Suggested Strategy: Use Cypress for web UI regression suites, especially high-traffic or high-risk workflows.

Use Robot Framework for backend/API validation, system integrations, or even cross-platform scenarios.

Upskill testers gradually—start with Robot Framework for ease of use, then move to Cypress or even native code frameworks as confidence grows.

READ MORE
Accelerate Business Efficiency with Robotic Process Automation (RPA) Services | S-Square (s-squaresystems.com)
3 upvotes·35 views
Needs advice
on
CodeceptJSCodeceptJS
and
Robot FrameworkRobot Framework

Is it acceptable to compare CodeceptJS with Robot Framework? What are the pros and cons for them?

READ MORE
2 upvotes·22.6K views
Replies (1)
Recommends
on
CodeceptJS

I am not familiar with Robot Framework but I have briefly looked at CodeceptJS. I have tested some test codes (in CodeceptJS syntax) and ran it using the different helpers (Nightmare, Playwright, Puppeteer, TestCafe and WebdriverIO). Nightmare complained about 'I.switchTo" when working with iFrames. There was a locator that did not work with TestCafe but worked with Playwright, Puppeteer and WebdriverIO. So, I had to tweak the locator to make it work for all 4. The first helper CodeceptJS worked on was WebdriverIO. They added Protractor some years after and have now discontinued it because Protractor itself is no longer being developed. They added Playwright around 2 years ago. Imagine, say, using the WebdriverIO now. Then a few years after Playwright is a better choice. You can use most, if not all, of the same test code in CodeceptJS syntax and run it using Playwright. I am very surprised why CodeceptJS is not popular. One guess is that there are some who wants the newest kid on the block. Another is that there are not much responses to questions in the forums. Community support is a big thing when selecting a testing framework. I encourage CodeceptJS users to be supportive.

READ MORE
3 upvotes·1 comment·141 views
arun kumar
arun kumar
·
August 3rd 2023 at 9:24AM

If your requirement is to test API,DB,SSH and UI , u can choose RF. If you just want to test UI extensively may be selenium/Cypress can be a good choice. RF also support a bit of Desktop automation. Its a great tool to be used, but in you organization some one should be there to put the right framework with Robot for the team to use

·
Reply
QA Engineer ·
Needs advice
on
JestJest
and
Robot FrameworkRobot Framework

Jest and Robot Framework are both named 'Testing Framework' on many sites that I visit. Both aim at testing the client-side of a web application.

I am aware there are differences in their implementation (JavaScript vs Python) and their purpose (Unit test vs Acceptance test). Still, they seem to overlap a lot. Is there a use case to implement BOTH testing frameworks? Suppose a team has written lots of Jest test cases, and code coverage is really good. Is there still a reason to add Robot Framework on top of that?

READ MORE
6 upvotes·47.9K views