Need advice about which tool to choose?Ask the StackShare community!
Karma vs Watir: 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; Watir: Selenium abstraction in ruby. Watir, pronounced water, is an open-source (BSD) family of Ruby libraries for automating web browsers. It allows you to write tests that are easy to read and maintain. It is simple and flexible. Watir drives browsers the same way people do. It clicks links, fills in forms, presses buttons. Watir also checks results, such as….
Karma and Watir can be primarily classified as "Browser Testing" tools.
Some of the features offered by Karma are:
- Test on Real Devices
- Remote Control
- Testing Framework Agnostic
On the other hand, Watir provides the following key features:
- The test scripts are written in Ruby language
- It supports multiple domains and has a test recorder
- It can find elements by its name, index, ID or value.
Karma is an open source tool with 10.8K GitHub stars and 1.61K GitHub forks. Here's a link to Karma's open source repository on GitHub.
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 Watir
Sign up to add or upvote prosMake informed product decisions
Cons of Karma
- Slow, because tests are run in a real browser1
- Requires the use of hacks to find tests dynamically1