Cucumber vs Selenium
comparison of testing frameworks
What are the differences between Cucumber and Selenium?

Cucumber

Selenium

Ruby

Python

Category

Acceptance Testing

Web Automation

General info

An automation tool for Behavior-Driven Development

The specifications are written in plain texts, which allows them to be easily understandable for all stakeholders. Cucumber Framework also supports languages beyond Ruby e.g. Java, JavaScript and Scala.

Selenium is an open source tool used to test web applications

Selenium is a powerful testing tool which can send standard Python commands to different browsers, despite variations in browser design. It also provides extensions to emulate user interaction with browsers, a distribution server for scaling browser allocation, and the infrastructure for implementations of the W3C WebDriver specification that lets you write interchangeable code for all major web browsers

xUnitSet of frameworks originating from SUnit (Smalltalk's testing framework). They share similar structure and functionality.

No

No

Client-sideAllows testing code execution on the client, such as a web browser

Yes

You can test the front-end part like the GUI using cucumber and selenium, they integrate well to test your front-end.

Yes

It is primarily a browser automation tool which tests front-end components and functionality

Server-sideAllows testing the bahovior of a server-side code

Yes

You can test back-end components such as APIs using rest & soap clients, and databases using whatever client libraries were provided by the libraries that existed in those stacks

Yes

It can perform Unit tests and can test various components and behaviours in the backend using a BDD or TDD approach

FixturesAllows defining a fixed, specific states of data (fixtures) that are test-local. This ensures specific environment for a single test

Knapsack Pro in Queue Mode will split tests in a dynamic way across parallel CI nodes to ensure each CI node finishes work at a similar time.
Thanks to that your CI build time is as fast as possible. It works with many supported CI servers.

We are using CircleCI and we noticed that builds were being limited by the slowest parallelized container. Knapsack Pro was really east to setup and we saw huge improvements right away. Thank you for making this tool!

I just logged into my account expecting it to say that I needed to add a credit card and was so surprised and delighted to see the trial doesn't count usage by calendar days but by testing days! This is incredible! I love it!!!

I just wanted to say that I really appreciate that small but very huge feature. Thank you for being so thoughtful :)