JSFoo 2020

JSFoo 2020

On JavaScript in the enterprise; JS for advanced developers and architects

Peter Thomas

@ptrthomas

Full-Stack Distributed Test-Automation at Scale - with Karate

Submitted Mar 5, 2020

Karate is the only open-source tool to combine API test-automation, mocks, performance-testing and even UI automation - into a single, unified framework. In this session, you will get to hear from the creator of this framework as to how it can build confidence and speed into your Continuous Delivery pipeline.

Outline

UI tests have a reputation for being “flaky”, needing more effort to write and maintain, and being time-consuming to execute. More teams are realising the value of testing at a lower layer of the architecture - which is the services or API layer, and Karate is designed to do this well.

Karate is unique that it gives you the best of both worlds - you can mix UI and API tests into the same test-script, which means that you can perform a sign-in using an API call - and then re-use the auth-token for a UI test. This can save significant time by eliminating one or more browser navigation steps - for e.g. the sign-up or login screen can be completely by-passed.

For the fastest possible execution, Karate can not only run tests in parallel on a single node - but even distribute them across multiple Docker containers or Kubernetes pods. Not many test-automation frameworks can aggregate the results of a distributed test into a single report, but Karate can do this not just for API tests - but for API performance tests and even UI automation. And for UI automation tests, a video-recording of the execution will be included in the HTML report, which is extremely useful for troubleshooting build failures.

Built-in distributed-testing is a relatively new feature of Karate, and this session will be the first time where this capability is demonstrated during a conference talk. The design of Karate allows you to easily integrate distributed-testing into your Continuous Integration pipeline, and an example using Jenkins will be walked through.

Speaker bio

Peter is a Distinguished Engineer at Intuit and the creator of the “Karate” test-automation framework. An avid open-source enthusiast, Peter’s first open-source project “CB2XML” was created on SourceForge way back in 2004 and incredibly still sees active releases by the current maintainers. A regular on the tech-conference circuit, Peter has appeared at the Ministry of Testing Dallas, DevConf.IN, Test Talks, Test Automation Guild, GraphQL Asia and Selenium Conf Tokyo. Peter also appears in the TechBeacon list of Test Automation Leaders to follow in 2019.

Comments

{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}

Hosted by

JSFoo is a forum for discussing UI engineering; fullstack development; web applications engineering, performance, security and design; accessibility; and latest developments in #JavaScript. Follow JSFoo on Twitter more