LambdaTest Community

Find answers, support, and inspiration from other users

Questions 2
LambdaTest Community
Answered

Which is the best test framework for end to end web automation testing written in JavaScript?

Can anyone please suggest me some of the best test framework for end to end web automation testing written in JavaScript..

Up Vote Down Vote 1 Votes
Posted 2 months ago

Answers 2


You should have a go at these frameworks, they will definitely fit your need.

Galen Framework

If your automation efforts are focused on user experience design (UX) or layout testing, Galen Framework might be a perfect fit for your needs.

Created specifically for UX testing, Galen has a special syntax and rules you can use to describe and verify your application’s layout. It also lets you specify your browser size, then run tests against your application to verify layout specifications. Galen tests also generate detailed HTML reports with screenshots, and it includes a visual image comparison with a cool heat map feature.

You can write tests in a simple text file using the Galen syntax, JavaScript, or Java.

CasperJS

This is the most starred framework in our rating. A special thing about this framework is that it’s tailored to be used with headless browser engines (Phantom JS or Slimer JS). On one hand, your tests run much faster compared to real browsers. And you don’t need to install browsers in your continuous integration system. On the other hand, the behavior of headless browsers sometimes differs from real browsers, which makes it impossible to detect browser-specific issues. Nevertheless, these considerations may not affect your choice of framework because you can run tests in Phantom JS with many other frameworks by using plugins or other simple mechanisms. Another advantage of CasperJS is support for CoffeeScript syntax in test code.

Serenity

Serenity recently added integration with REST Assured, the popular open-source Java library for testing RESTful APIs. It creates another wrapper around REST Assured that makes Serenity Selenium tests flow seamlessly. And Serenity's awesome reporting feature also includes REST information, which means you can easily see and validate all requests and response details in your test reports without having to explicitly add any extra logging code.

Serenity takes care of many things you would normally have to code from scratch if you were creating your own BDD framework. It’s one of the better open-source frameworks available, although I might be a bit biased: It’s the tool I use for my own day-to-day test automation efforts.

Serenity has also created a JavaScript version called SerenityJS. Since many front-end developers are also responsible for testing, a JavaScript version of an automated test tool is very helpful.

Up Vote Down Vote 1 Votes
Posted 2 months ago

Jest Automation is a great framework for end to end web automation testing. Also another framework that is efficient to work with is Appium. Appium is Automation for iOS and Android Apps. Appium is an open source test automation framework for use with native, hybrid, and mobile web apps. It drives iOS and Android apps using the WebDriver protocol.

Appium can be classified as a tool in the "Mobile Testing Frameworks" category, while Jest is grouped under "Javascript Testing Framework".

Some of the features offered by Appium are:

  • Works on native and hybrid mobile apps
  • Write mobile tests using any language or framework
  • Open source

On the other hand, Jest provides the following key features:

  • Familiar Approach: Built on top of the Jasmine test framework, using familiar expect(value).toBe(other) assertions
  • Mock by Default: Automatically mocks CommonJS modules returned by require(), making most existing code testable
  • Short Feedback Loop: DOM APIs are mocked and tests run in parallel via a small node.js command line utility.

QAppassure, by MOZARK is a great platform for Appium and Selenium framework. You can use a platform like QAppAssure to automate your tests, which allows you to test on-cloud and on-field devices, across 100+ device, make and models, Integrate with Jira, CI/CD tools, and also use Appium, Calabash, Espresso, UIAutomator, XCUITest. It also makes migration easy.

Up Vote Down Vote 1 Votes
Posted 2 months ago