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

Behat

148
65
+ 1
2
Selenium

15.4K
12.3K
+ 1
525
Add tool

Behat vs Selenium: What are the differences?

  1. Programming Language: Behat is written in PHP, which is used for behavior-driven development, while Selenium supports multiple programming languages like Java, C#, Python, etc.
  2. Syntax: Behat uses Gherkin syntax for writing test cases in a natural language style, while Selenium uses WebDriver API for interacting with the browser.
  3. Testing Levels: Behat is primarily used for acceptance testing and high-level testing scenarios, while Selenium is more versatile and can be used for unit testing, regression testing, etc.
  4. Integration: Behat is often integrated with tools like Mink and Symfony for web application testing, while Selenium is typically used standalone or integrated with various frameworks like TestNG or JUnit.
  5. Community Support: Behat has a smaller community compared to Selenium, which has a larger user base and extensive documentation available for support.

In Summary, Behat and Selenium differ in their programming language, syntax, testing levels, integration options, and community support.

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 · 216.5K 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
  • 175
    Automates browsers
  • 154
    Testing
  • 101
    Essential tool for running test automation
  • 24
    Record-Playback
  • 24
    Remote Control
  • 8
    Data crawling
  • 7
    Supports end to end testing
  • 6
    Easy set up
  • 6
    Functional testing
  • 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)
    • 2
      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!

    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