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

Karma

844
528
+ 1
177
Selenium

9.9K
7.5K
+ 1
517
Add tool

Karma vs Selenium: What are the differences?

Karma: Spectacular Test Runner for JavaScript. Karma is not a testing framework, nor an assertion library. Karma just launches a HTTP server, and generates the test runner HTML file you probably already know from your favourite testing framework. So for testing purposes you can use pretty much anything you like; Selenium: 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.

Karma and Selenium can be categorized as "Browser Testing" tools.

"Test Runner" is the primary reason why developers consider Karma over the competitors, whereas "Automates browsers" was stated as the key factor in picking Selenium.

Karma 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 Karma with 10.7K GitHub stars and 1.61K GitHub forks.

According to the StackShare community, Selenium has a broader approval, being mentioned in 776 company stacks & 440 developers stacks; compared to Karma, which is listed in 119 company stacks and 57 developer stacks.

Advice on Karma and Selenium
Needs advice
on
WebdriverIO
Selenium
and
Jest
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 ยท 66.9K views
Recommends
Selenium

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

See more
Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Karma
Pros of Selenium
  • 60
    Test Runner
  • 33
    Open source
  • 27
    Continuous Integration
  • 22
    Great for running tests
  • 17
    Test on Real Devices
  • 11
    Backed by google
  • 5
    Easy Debugging
  • 2
    Remote Control
  • 168
    Automates browsers
  • 153
    Testing
  • 101
    Essential tool for running test automation
  • 24
    Record-Playback
  • 24
    Remote Control
  • 8
    Data crawling
  • 7
    Supports end to end testing
  • 6
    Functional testing
  • 6
    Easy set up
  • 4
    The Most flexible monitoring system
  • 3
    Easy to integrate with build tools
  • 3
    End to End Testing
  • 2
    Integration Tests
  • 2
    Comparing the performance selenium is faster than jasm
  • 2
    Record and playback
  • 2
    Compatible with Python
  • 2
    Easy to scale
  • 0
    Integrated into Selenium-Jupiter framework

Sign up to add or upvote prosMake informed product decisions

Cons of Karma
Cons of Selenium
  • 1
    Slow, because tests are run in a real browser
  • 1
    Requires the use of hacks to find tests dynamically
  • 6
    Flaky tests
  • 1
    Slow as needs to make browser (even with no gui)

Sign up to add or upvote consMake informed product decisions

What is Karma?

Karma is not a testing framework, nor an assertion library. Karma just launches a HTTP server, and generates the test runner HTML file you probably already know from your favourite testing framework. So for testing purposes you can use pretty much anything you like.

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 Karma?
What companies use Selenium?
See which teams inside your own company are using Karma or Selenium.
Sign up for Private StackShareLearn More

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

What tools integrate with Karma?
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 Karma and Selenium?
Jasmine
Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it's suited for websites, Node.js projects, or anywhere that JavaScript can run.
Jest
Jest provides you with multiple layers on top of Jasmine.
Mocha
Mocha is a feature-rich JavaScript test framework running on node.js and the browser, making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases.
Protractor
Protractor is an end-to-end test framework for Angular and AngularJS applications. Protractor runs tests against your application running in a real browser, interacting with it as a user would.
BrowserStack
Live, Web-Based Browser Testing Instant access to all real mobile and desktop browsers. Say goodbye to your lab of devices and virtual machines.
See all alternatives
Reviews of Karma and Selenium
CTO at Apna Inc
Review of
Selenium

we at www.cloudqa.io use selenium hub and node architecture to execute our test cases its a very powerful tool to automate web applications.

How developers use Karma and Selenium
Kang Hyeon Ku uses
Selenium

๊ฐ€์žฅ ๊ฐ•๋ ฅํ•œ ์›น UI / UX ํ…Œ์ŠคํŠธ ํˆด ์ด์ง€๋งŒ, ๋ฌธ์ œ๋„ ๋งŽ๋‹ค. iframe ์•ˆ์— ์žˆ๋Š” ๊ฑด ์ž˜ select ๊ฐ€ ์•ˆ๋˜๊ธฐ๋„ ํ•˜๊ณ , ํ™”๋ฉด์ด ์ž‘์•„ ์ปดํฌ๋„ŒํŠธ๊ฐ€ ํ™”๋ฉด์— ๋ณด์ด์ง€ ์•Š์œผ๋ฉด ๋˜ select ํ•  ์ˆ˜ ์—†๋‹ค. ํ•˜์ง€๋งŒ ๋ธŒ๋ผ์šฐ์ €๋ฅผ ์žˆ๋Š” ๊ทธ๋Œ€๋กœ ์ œ์–ด ํ•  ์ˆ˜ ์žˆ๋‹ค๋Š” ๊ฒŒ ๊ฐ€์žฅ ํฐ ๋งค๋ ฅ์ด๋‹ค.

ps. selenide ์™€ ๊ฐ™์ด ์“ฐ๋ฉด ์ฝ”๋“œ๊ฐ€ ๋งŽ์ด ๊ฐœ์„ ๋œ๋‹ค.

samdfonseca uses
Selenium

Maintaining and expanding automated regression tests is one of my primary responsibilities at CrowdTwist. We use Selenium to test the front-end parts of our platform.

Ralic Lo uses
Selenium

Used Selenium web-driver for automated QA testing in continuous integration and continuous deployment.

Owen Miller uses
Selenium
  • Navigating our site for tests
  • Navigating other sites that discriminate against non-human visitors
Ataccama uses
Selenium

Selenium is a great way to automatically test if a build is sane and can be deployed.

Riderman De Sousa Barbosa uses
Karma

All services, directives and controllers from angular are tested using Karma.

Ron Apelbaum uses
Karma

I use Karma as a test runner for javascript unit tests

Giovanni Candido da Silva uses
Karma

Run unit and integration tests on real browsers

Glib Ischenko uses
Karma

Running Unit tests for Angular UI

Typeform uses
Karma

Testing frontend of admin part