Playwright Overview

Introduction

Testable supports executing Playwright tests in several flavors:

  1. Playwright Test
  2. Playwright Library

This document gives a general overview of how Testable integrates with Playwright.

How it Works

Playwright Test

Playwright Test Diagram

Playwright Library

Playwright Library Diagram

The code that defines your scenario can be uploaded to Testable or linked to a Git repository and cloned at test execution time.

Parameters

Parameterize your scenario and reuse it across many test configurations or via API. This can be useful to control things like environment, base URL, credentials, etc. Parameter values are accessible in your Playwright scripts as environment variables. For example, parameter Abc is accessible as environment variable PARAM_ABC.

Read more about scenario parameters here.

Environment

Testable passes various environment variables into your test that give you context (e.g. region name, global index, total number of concurrent users, etc).

See our Playwright environment page for more details.