0% found this document useful (0 votes)
133 views11 pages

Automationframework Playwright

Automationframework_Playwright

Uploaded by

divya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
133 views11 pages

Automationframework Playwright

Automationframework_Playwright

Uploaded by

divya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Playwright BDD Automation

Framework

Service Cloud Team


Classification: Internal
Agenda

• All about Playwright


• Features of Playwright that Set It Apart?
• Playwright Architecture
• Playwright vs Robot vs cypress vs Selenium
• Playwright Cucumber BDD framework Design
• Demo Test Execution and Report

A.P.
2 Moller - Maersk

Classification: Internal
Introduction to
Playwright
• Playwright is an open-source test Automation Library developed by Microsoft,

• Cross-platform testing: Playwright is designed to work on multiple platforms


and operating systems, including macOS, Linux, and Windows.

• Cross-browser: Playwright supports all modern rendering engines including


Chromium, WebKit, and Firefox.
• Cross-language: Use the Playwright API in TypeScript, JavaScript,
Python, .NET, Java.

• Test Mobile Web: Native mobile emulation of Google Chrome for Android and
Mobile Safari. The same rendering engine works on your Desktop and in the
Cloud.

• Its is built to enable cross browser web automation that is reliable , fast and
capable

3 A.P. Moller - Maersk

Classification: Internal
Features of Playwright that Set It Apart?

• 1. Built-in Video Recording: Playwright offers built-in video recording of test runs. This feature debugging
and diagnosing test failures, and it’s not as seamlessly integrated into other tools.

• 2. Codegen: An ability to generate tests by recording user actions, saving them in various programming
languages.

• 3. Playwright Inspector: A built-in tool for inspecting web pages, generating selectors, navigating through
test executions, visualizing click points, and exploring execution logs.

• 4. Trace Viewer: A comprehensive debugging tool that captures a wealth of information for investigating
test failures, including a test execution screencast, live DOM snapshots, action exploration, test source
code, and more.

4 A.P. Moller - Maersk

Classification: Internal
Top Benefits of Automation Testing

5 A.P. Moller - Maersk

Classification: Internal
Playwright Architecture

6 A.P. Moller - Maersk

Classification: Internal
7 A.P. Moller - Maersk

Classification: Internal
Playwright vs Robot vs cypress vs
Selenium

8 A.P. Moller - Maersk

Classification: Internal
Playwright Cucumber BDD framework Design

• Cucumber uses Gherkin, a plain-text, human-readable language,


to describe test scenarios in a structured manner. Gherkin is
based on Given-When-Then (GWT) syntax and provides a way to
define application behaviour using simple, business-oriented
keywords.

 Feature: A feature is the highest level of description in


Cucumber. It represents a specific functionality or feature of
the application being tested.
 Scenario: A scenario is a single test case that represents a
specific behaviour of the application.
 Given: The “Given” step sets the initial state of the system or
describes the preconditions for the test scenario.
 When: The “When” step represents an action or event that
occurs in the test scenario.
 Then: The “Then” step defines the expected outcome or result
of the test scenario.
 And, But: These keywords are used to add additional steps
and improve the readability of the scenarios.

9 A.P. Moller - Maersk

Classification: Internal
DEMO

10 A.P. Moller - Maersk


Thank you

11 A.P. Moller - Maersk

You might also like