Playwright Beginner Tutorial 12 | Annotation & Tags

Automation Step by Step October 31, 2022
Video Thumbnail
Automation Step by Step Logo

Automation Step by Step

@raghavpal

About

Simple Basic Beginners Step-by-Step tutorials ❤️ I create videos on Automation, Testing, DevOps, CI and related tools, technologies and platform Raghav is a teacher and founder of AutomationStepByStep.com He was an Automation Architect and has led multiple teams of Automation and DevOps Engineers. For over a decade, Raghav witnessed, worked, and delivered multiple Automation Testing Projects and worked with some awesome people in this industry ► https://automationstepbystep.com/ Some topics covered: - Jenkins - JMeter - Selenium - Appium - Cypress - Playwright - Katalon Studio - API Testing - Postman - Docker - Kubernetes - Other DevOps topics Words from Raghav We often need someone to hold our hand and help us take the first few steps before we learn to walk and run. I am on a mission to spread education and make it available to anyone willing to learn Never Stop Learning Raghav All education here is FREE FOR ALL, FOREVER Share with as many people as you can in your lifetime

Video Description

*ALL FREE COURSES* ► https://automationstepbystep.com/ *ASK RAGHAV* ► https://bit.ly/2CoJGWf 00:00 *Intro* 00:32 *What are Annotations & Tags* How to use Annotations & Tags in Playwright Step by Step hands-on demo Hooks: beforeAll beforeEach afterAll afterEach Groups: describe Annotations: only skip skip with condition fail fixme slow Tags: @smoke @reg 03:09 *will skip the test* test.skip('skip this test', async ({ page }) => { // This test will be skipped }); 05:20 *will mark test as failure* will show error if the test does not fail test('not yet ready', async ({ page }) => { test.fail(); }); 06:39 *test will be aborted* test.fixme('test to be fixed', async ({ page }) => { }); 07:36 *marks the test as slow and triples the test timeout* test('slow test', async ({ page }) => { test.slow(); }); 08:21 *runs specific tests* test.only('focus this test', async ({ page }) => { // Run only focused tests in the entire project }); 10:28 *Tags* You can tag your tests with tags like @smoke @sanity @fast @slow and only run the tests that have the certain tag test('Test full report @smoke, async ({ page }) => { // ... }); npx playwright test --grep “@smoke” Opposite of grep Skip tests with certain tag npx playwright test --grep-invert “@smoke” 13:54 *What are Annotations* Annotations are keywords that contain some logical or conditional functionalities Can be used with test blocks to control execution of tests as needed E.g. only, fail, fix, slow We can apply annotations to a single test or a set of tests STORIES BY RAGHAV ► https://automationstepbystep.com/stories/ ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you You can support my mission for education by sharing this knowledge and helping as many people as you can If my work has helped you, consider helping any animal near you, in any way you can *NEVER STOP LEARNING* Raghav Pal

You May Also Like

Must-Have Slime Essentials

AI-recommended products based on this video

Loading...
Pink Unicorn Carrying Case Compatible with Nintendo Switch Lite with Crystal Glitter Soft Protective Case Cover+Screen Protector+Stickers, Hard Storage Case Accessories Kit for Girls Birthday Gift

Pink Unicorn Carrying Case Compatible with Nintendo Switch Lite with Crystal Glitter Soft Protective Case Cover+Screen Protector+Stickers, Hard Storage Case Accessories Kit for Girls Birthday Gift

(2,003)
$37.40
PrimeFREE delivery Mon, Jun 16
Loading...
Getfitsoo Pack of 4 Colorful Luggage Tags Plastic PVC Travel Tags Suitcase Labels Business Card Holder (ZU-892K)

Getfitsoo Pack of 4 Colorful Luggage Tags Plastic PVC Travel Tags Suitcase Labels Business Card Holder (ZU-892K)

(165)
$10.25
FREE delivery Sat, Jun 14 on your first order
Loading...
4 Pack LCD Writing Tablet for Kids, 8.5 Inch Colorful Doodle Board Drawing Tablet, Educational Learning Toys Birthday Gifts for Boys Girls Age 3 4 5 6 7 8

4 Pack LCD Writing Tablet for Kids, 8.5 Inch Colorful Doodle Board Drawing Tablet, Educational Learning Toys Birthday Gifts for Boys Girls Age 3 4 5 6 7 8

(910)
$13.28
FREE delivery Sat, Jun 14 on your first order
500+ bought in past month
Loading...
HQCME 9 Pack Lined Sticky Notes, 4X6 in, 9 Pastel Colors Large Ruled Stickies Colorful Super Sticking Power Memo Pads Strong Adhesive, Sticky Notes with Lines for Home, Office

HQCME 9 Pack Lined Sticky Notes, 4X6 in, 9 Pastel Colors Large Ruled Stickies Colorful Super Sticking Power Memo Pads Strong Adhesive, Sticky Notes with Lines for Home, Office

(1,909)
$10.99
FREE delivery Sat, Jun 14 on your first order
1K+ bought in past month
Loading...
Purple Ladybug Decorate Your Own Water Bottle for Kids Craft Kits - DIY Unicorn Girls Gifts 8-12 Years Old, Arts and Crafts for Girls Age 8-10 - Fun Travel Activities for Kids

Purple Ladybug Decorate Your Own Water Bottle for Kids Craft Kits - DIY Unicorn Girls Gifts 8-12 Years Old, Arts and Crafts for Girls Age 8-10 - Fun Travel Activities for Kids

(31,188)
$15.99
FREE delivery Sat, Jun 14 on your first order
50+ bought in past month
Loading...
Sunrad Foil Art Kit for Kids Unicorns & Princesses Arts and Crafts, No Mess Art for Kids, Fun Craft Kits & Supplies, DIY Creative Activities, Travel Toys Gifts for Girls & Boys Ages 4 5 6 7 8 9+

Sunrad Foil Art Kit for Kids Unicorns & Princesses Arts and Crafts, No Mess Art for Kids, Fun Craft Kits & Supplies, DIY Creative Activities, Travel Toys Gifts for Girls & Boys Ages 4 5 6 7 8 9+

(162)
$23.99$19.72
FREE delivery Sat, Jun 14 on your first order
100+ bought in past month
Loading...
Windshield Repair kit, DIY Glass Cracked Repair Kits, Easy to Use Automotive Glass Nano Repair Fluid, Scratch Chip Cracks Repair Kit (2 Pack) (Black)

Windshield Repair kit, DIY Glass Cracked Repair Kits, Easy to Use Automotive Glass Nano Repair Fluid, Scratch Chip Cracks Repair Kit (2 Pack) (Black)

(32)
$8.99
FREE delivery Wed, Mar 25 on your first order
Loading...
Windshield Repair kit, DIY Glass Cracked Repair Kits, Easy to Use Automotive Glass Nano Repair Fluid, Scratch Chip Cracks Repair Kit (2 Pack) (Black)

Windshield Repair kit, DIY Glass Cracked Repair Kits, Easy to Use Automotive Glass Nano Repair Fluid, Scratch Chip Cracks Repair Kit (2 Pack) (Black)

(34)
$8.70
FREE delivery Fri, Feb 13 on your first order
300+ bought in past month