Latest Ext JS 7.8 is now available. Learn more

Rapidly Build Testing Automation To Supercharge Javascript App Quality

July 29, 2021 158 Views

The need to find and fix quality issues early in the development cycle has always been baked into the core philosophy of every serious development team, even in the face of intense delivery pressure. The evolution of web technology introduced a new urgency for software quality. Sencha Test is the most comprehensive unit and end-to-end testing solution for Ext JS, including support for end-to-end testing of apps in a number of js frameworks such as ExtAngular, Angular, ExtReact and React. Deliver higher quality apps and reduce testing time & cost with powerful automation through Sencha Test.

What are the benefits of a testing framework?

  • Reduces barriers to testing by providing a professionally designed, documented and supported testing framework for Ext JS and ExtReact apps
  • Shortens testing startup time by delivering pre-authored tests for complex Ext JS and ExtReact example apps
  • Automates testing by allowing scheduled, unattended test runs that leverage CI
  • Empowers users to develop a large number of tests with an easy-to-use JavaScript built-in editor
  • Improves code quality, accelerates time to market, and ensures a consistent end-user experience

In this article we will learn more about Sencha Test and how you can use it to increase the quality if your software output.

With Sencha Test, you can create end-to-end tests quickly, and execute them on multiple browsers simultaneously. Cross-browser testing is critical to ensuring quality for organizations, and test automation is a requirement to meet delivery timelines. Sencha Test helps you build an end-to-end testing plan without having to cobble together testing tools.

Is there an IDE I can use to write Javascript tests?

Sencha Test Studio is the graphical user interface that allows you to write Jasmine tests in a built-in Sencha Test editor. You can write tests using JavaScript and store them in your team’s preferred source control system. Test Studio allows you to create tests directly in Sencha Test, or code in a separate IDE, and execute the test immediately. The iterative unit testing process helps you create more robust code by constantly testing it along the way.

What tools can I use to automate Javascript tests?

Using Test Runner, you can run selected unit and functional tests on any or all of the browsers on a local machine, a connected mobile device, or on a browser farm. The local Test Runner can be used for test creation and debugging. An external browser farm or a Selenium grid is used by the Sencha Test Command Line Interface (CLI) to run the same tests on a Continuous Integration (CI) system – allowing you to schedule automated test runs nightly or at a convenient time, with minimal configuration.

Sencha Test Command Line Interface (CLI) helps you achieve the full power of automated test runs. Once tests are authored and checked into the source control repository, you can launch them from your Continuous Integration (CI) system. The CI system can invoke the CLI automatically, once it senses a change to the application code or the test files in the source control repository.

How can I access historical Javascript test results easily?

The Test Archiver enables you to track historical testing trends in your projects as well as compare results between runs. Automated visual analysis allows you to identify runs where screens do not render correctly or visual glitches are present. The archiver leverages the full power of Sencha Test Studio to make it easy to understand test results and quickly identify failures.

How can I deploy automation with Sencha Test?

  • Test Authoring
    Write unit and functional tests in JavaScript using page object functions to keep test code clean. Store tests in a source CMS. Utilize powerful APIs to target specific Ext JS and ExtReact components in the app.
  • Visual Screen Comparison
    Minimize time spent verifying images on hundreds of screens. Review images that are captured from previous test runs and compared to each subsequent test run.
  • Test Automation
    Automate your test runs. Test real-time app changes from the CI system. Leverage our TeamCity and Jenkins integrations. Use any build tool that can invoke a command-line utility to rust tests.
  • Test Execution
    Test flexibility at its finest – any browser, local machine or browser farm. End-to-end WebDriver testing with built-in Selenium server and embedded Chrome browser. Reduce testing time with simultaneous tests with Selenium Grid or browser farms like Sauce Labs.

How can I deploy end-to-end functional testing with Sencha Test?

How can I find out more about writing Javascript tests with Ext JS?

Cross-browser testing is critical to ensuring high-quality apps, and test automation is a requirement to meet delivery timelines. Sencha Test is the only dedicated testing solution for Ext JS and ExtReact apps. Now that you have seen how Sencha Test helps developers and test automation engineers create unit and functional tests quickly, and execute them on multiple browsers simultaneously check out the product page for more information.

Head over to the Sencha Test product page to find out more information including additional videos and download the latest version.

Recommended Articles

View More