Need advice about which tool to choose?Ask the StackShare community!

Behat

102
62
+ 1
2
Selenium

14.3K
11.3K
+ 1
523
Add tool

Behat vs Selenium: What are the differences?

Developers describe Behat as "A BDD framework for testing your business expectations". It is an open source Behavior-Driven Development framework for PHP. It is a tool to support you in delivering software that matters through continuous communication, deliberate discovery and test-automation. On the other hand, Selenium is detailed as "Web Browser Automation". Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.

Behat can be classified as a tool in the "Testing Frameworks" category, while Selenium is grouped under "Browser Testing".

Behat and Selenium are both open source tools. It seems that Selenium with 14.9K GitHub stars and 4.97K forks on GitHub has more adoption than Behat with 3.05K GitHub stars and 519 GitHub forks.

According to the StackShare community, Selenium has a broader approval, being mentioned in 777 company stacks & 443 developers stacks; compared to Behat, which is listed in 13 company stacks and 7 developer stacks.

Advice on Behat and Selenium
Needs advice
on
JestJestSeleniumSelenium
and
WebdriverIOWebdriverIO
in

we are having one web application developed in Reacts.js. in the application, we have only 4 to 5 pages that we need to test. I am having experience in selenium with java. Please suggets which tool I should use. and why ............................ ............................ .............................

See more
Replies (1)
Prashanth Marappa
Senior Software Engineer at Mphasis · | 1 upvotes · 183.9K views
Recommends
on
SeleniumSelenium

with the help of selenium we can automate react js for functional testing

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Behat
Pros of Selenium
  • 1
    BDD Acceptance Testing
  • 1
    Easy Ubiquitous language integration reusing code
  • 173
    Automates browsers
  • 154
    Testing
  • 101
    Essential tool for running test automation
  • 24
    Remote Control
  • 24
    Record-Playback
  • 8
    Data crawling
  • 7
    Supports end to end testing
  • 6
    Functional testing
  • 6
    Easy set up
  • 4
    The Most flexible monitoring system
  • 3
    End to End Testing
  • 3
    Easy to integrate with build tools
  • 2
    Comparing the performance selenium is faster than jasm
  • 2
    Record and playback
  • 2
    Compatible with Python
  • 2
    Easy to scale
  • 2
    Integration Tests
  • 0
    Integrated into Selenium-Jupiter framework

Sign up to add or upvote prosMake informed product decisions

Cons of Behat
Cons of Selenium
    Be the first to leave a con
    • 8
      Flaky tests
    • 4
      Slow as needs to make browser (even with no gui)
    • 1
      Update browser drivers

    Sign up to add or upvote consMake informed product decisions

    What is Behat?

    It is an open source Behavior-Driven Development framework for PHP. It is a tool to support you in delivering software that matters through continuous communication, deliberate discovery and test-automation.

    What is Selenium?

    Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.

    Need advice about which tool to choose?Ask the StackShare community!

    Jobs that mention Behat and Selenium as a desired skillset
    Pinterest
    San Francisco, CA, US; , CA, US
    CBRE
    United States of America Texas Houston
    CBRE
    United States of America Texas Richardson
    CBRE
    United States of America Texas Richardson
    What companies use Behat?
    What companies use Selenium?
    See which teams inside your own company are using Behat or Selenium.
    Sign up for StackShare EnterpriseLearn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Behat?
    What tools integrate with Selenium?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    Blog Posts

    What are some alternatives to Behat and Selenium?
    PHPUnit
    PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks.
    Cucumber
    Cucumber is a tool that supports Behaviour-Driven Development (BDD) - a software development process that aims to enhance software quality and reduce maintenance costs.
    Codeception
    Full-stack testing framework for PHP. Run browsers tests, framework tests, APIs tests, unit tests with ease.
    PhpSpec
    It is a tool which can help you write clean and working PHP code using behaviour driven development or BDD. BDD is a technique derived from test-first development.
    Cypress
    Cypress is a front end automated testing application created for the modern web. Cypress is built on a new architecture and runs in the same run-loop as the application being tested. As a result Cypress provides better, faster, and more reliable testing for anything that runs in a browser. Cypress works on any front-end framework or website.
    See all alternatives