Need advice about which tool to choose?Ask the StackShare community!
Advice on Karma, Nightwatchjs, and Selenium
Shivam Gupta
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 ............................ ............................ .............................
Replies (1)
Prashanth Marappa
Senior Software Engineer at Mphasis · | 1 upvotes · 230.4K views
with the help of selenium we can automate react js for functional testing
Manage your open source components, licenses, and vulnerabilities
Learn MorePros of Karma
Pros of Nightwatchjs
Pros of Selenium
Pros of Karma
- Test Runner61
- Open source35
- Continuous Integration27
- Great for running tests22
- Test on Real Devices18
- Backed by google11
- Easy Debugging5
- Remote Control2
Pros of Nightwatchjs
- Open source3
- Testing2
- Automates browsers2
- Better cross browser (use selenium)1
- Cross-Browser Testing1
- Multiple Browser Support1
- Parallel Test Running1
Pros of Selenium
- Automates browsers177
- Testing154
- Essential tool for running test automation101
- Record-Playback24
- Remote Control24
- Data crawling8
- Supports end to end testing7
- Easy set up6
- Functional testing6
- The Most flexible monitoring system4
- End to End Testing3
- Easy to integrate with build tools3
- Comparing the performance selenium is faster than jasm2
- Record and playback2
- Compatible with Python2
- Easy to scale2
- Integration Tests2
- Integrated into Selenium-Jupiter framework0
Sign up to add or upvote prosMake informed product decisions
Cons of Karma
Cons of Nightwatchjs
Cons of Selenium
Cons of Karma
- Slow, because tests are run in a real browser1
- Requires the use of hacks to find tests dynamically1
Cons of Nightwatchjs
- No automatic wait2
- Less flexibility1
- Limited native mobile app support1
- Limited browser support1
- Configuration complexity1
Cons of Selenium
- Flaky tests8
- Slow as needs to make browser (even with no gui)4
- Update browser drivers2
Sign up to add or upvote consMake informed product decisions
4
60
4.6K
288
67
20
22
100.6K
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 Nightwatchjs?
Nightwatch.js is an easy to use Node.js based End-to-End (E2E) testing solution for browser based apps and websites. It uses the powerful Selenium WebDriver API to perform commands and assertions on DOM elements.
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 Karma, Nightwatchjs, and Selenium as a desired skillset
What companies use Karma?
What companies use Nightwatchjs?
What companies use Selenium?
What companies use Karma?
What companies use Nightwatchjs?
What companies use Selenium?
Sign up to get full access to all the companiesMake informed product decisions
What tools integrate with Karma?
What tools integrate with Nightwatchjs?
What tools integrate with Selenium?
What tools integrate with Karma?
What tools integrate with Nightwatchjs?
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, Nightwatchjs, 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.
Git
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.