Загрузка страницы

Creating Faster and More Reliable Web Tests with Blended Testing - Jan Molak, SmartCode Ltd

Creating Faster and More Reliable Web Tests with Blended Testing - Jan Molak, SmartCode Ltd

Automated acceptance tests are often implemented to exercise a fully-assembled and deployed system through its web interface. This approach makes them slow and flaky and reduces the value they could be bringing to your organisation.

Blended Testing is a technique that can improve the speed and stability of web-based test scenarios by making them take shortcuts through other interfaces of the system under test.
To use it effectively, though, we need to know when it's safe to take shortcuts and how to take them - this is where Task Analysis and the Screenplay Pattern can help.

In this talk, Jan Molak - Lead Developer of Serenity/JS and co-author of "BDD in Action, Second Edtion" will show you how to apply Task Analysis, Screenplay Pattern, and use Serenity/JS 3.0 to design and develop blended test scenarios that exercise multiple interfaces of the system under test to improve execution speed and stability.
Outline/Structure

In this practical session, we'll refactor a non-trivial web-based test to introduce business domain language and abstractions that help to swap out UI interactions for interactions with REST API.

To do that:

We'll start with an example of a typical, non-trivial web test implemented using WebdriverIO
Introduce Task Analysis and use it to identify business domain-specific tasks (e.g. "add product to basket" vs "click on img tag")
Use Serenity/JS 3.0 Screenplay Pattern APIs to implement Web and REST API-specific flavours of those tasks (e.g. PopulateProductCatalogViaAPI vs PopulateProductCatalogViaUI)

Learning Outcome

By the end of the session, you'll be able to:

Explain how to use Task Analysis to identify business-focused tasks in a traditional spaghetti test script
Use Serenity/JS Screenplay Pattern APIs to turn the test script into a test scenario using business domain vocabulary
Use Serenity/JS Web and REST modules to implement blended tests

Target Audience
Test automation engineers, developers
Prerequisites for Attendees

A basic understanding of automating test scenarios interacting with Web-based interfaces and REST APIs.
Links

Serenity/JS 3.0 will be published in November 2022.

Codebase: https://github.com/serenity-js

Project website: https://serenity-js.org

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. For more infomation check out: https://www.selenium.dev/

Видео Creating Faster and More Reliable Web Tests with Blended Testing - Jan Molak, SmartCode Ltd канала Selenium Conference
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
1 апреля 2023 г. 9:37:09
00:40:34
Яндекс.Метрика