Back to Browse

How To Group Tests Using Markers | pytest Framework Tutorial | Part-V | TestMu AI

2.9K views
Feb 15, 2023
27:06

Watch this comprehensive video tutorial to learn how to group multiple tests using markers in pytest. Start FREE Testing: https://accounts.lambdatest.com/register?utm_source=YouTube&utm_medium=Organic&utm_campaign=Feb15&utm_term=UFgpt_s6bN4&utm_content=LT_Sign_Up ๐Ÿ“ข In this Part 5 of the pytest framework tutorial series, ๐‘น๐’†๐’™ ๐‘ฑ๐’๐’๐’†๐’” (@RexJonesII), a seasoned QA Engineer, Trainer, YouTuber, and Blogger, deep dives into how a marker in pytest allows grouping of tests with the pytest.mark decorator. He also demonstrates how to create a Selenium test script and use marks to run smoke test. ๐Ÿ“Œ ๐†๐ข๐ญ๐‡๐ฎ๐›: https://github.com/RexJonesII/PytestTutorials โžก How do I group tests using markers in pytest? Markers are simple decorators that can be added to a test function to assign it to a specific group. You can group tests using markers in pytest by adding markers to test functions. To add a marker to a test function, use the @pytest.mark syntax followed by the name of the marker used. โžก What is the purpose of grouping tests using markers in pytest? Grouping tests using markers in pytest is a way to organize test suites and run specific subsets of tests based on their classification. By adding markers to test functions, it allows labeling them as belonging to specific categories, such as "smoke tests," "integration tests," "performance tests," etc. ๐Ÿ“Œ ๐‹๐ž๐š๐ซ๐ง ๐ฆ๐จ๐ซ๐ž: ๐Ÿ“How to use marks to run a subset ๐Ÿ“How to register custom markers ๐Ÿ“How to mark the whole class or module ๐•๐ข๐๐ž๐จ ๐‚๐ก๐š๐ฉ๐ญ๐ž๐ซ๐ฌ ๐Ÿ‘€ 00:00 Introduction 01:02 View Built In pytest Markers 02:47 Create Selenium Test Script 10:02 Use Marks To Run Smoke Test 13:38 Register Custom Marks In The pytest.ini File 22:10 Mark The Whole File ๐ŸŽ“ ๐ฉ๐ฒ๐ญ๐ž๐ฌ๐ญ ๐‹๐ž๐š๐ซ๐ง๐ข๐ง๐  ๐‡๐ฎ๐›: https://bit.ly/3X1wjiP ๐‘๐ž๐ฅ๐š๐ญ๐ž๐ ๐๐ฅ๐จ๐ ๐ฌ๐Ÿ“ โžก PyTest Tutorial โ€“ Python Selenium Test in Parallel: https://bit.ly/3IzwE8p โžก Selenium Python Tutorial: Getting Started With Pytest: https://bit.ly/40UMnWD โžก pytest Tutorial: Executing Multiple Test Cases From Single File: https://bit.ly/3WOu4iB ๐Ÿ’ฌ ๐’๐ž๐ฅ๐ž๐ง๐ข๐ฎ๐ฆ ๐๐ฒ๐ญ๐ก๐จ๐ง ๐Ÿ๐ŸŽ๐Ÿ ๐œ๐ž๐ซ๐ญ๐ข๐Ÿ๐ข๐œ๐š๐ญ๐ข๐จ๐ง: https://bit.ly/3vvcQvl Sign Up for TestMu AI! Itโ€™s FREE ๐Ÿ™Œ Perform scalable and reliable cross-browser compatibility testing of your website and web app on the latest mobile and desktop browsers: https://accounts.lambdatest.com/register?utm_source=YouTube&utm_medium=Organic&utm_campaign=Feb15&utm_term=fKlS2h-yhVw&utm_content=LT_Sign_Up_2 For questions: [email protected] ๐Ÿ˜ƒ ๐„๐ฑ๐ฉ๐ฅ๐จ๐ซ๐ž: ๐ŸŽฌ Most Recent Videos: https://bit.ly/3PRAPyo ๐Ÿ“ Blog: https://bit.ly/3yGVsUc ๐ŸŽ“ Learning Hub: https://bit.ly/3fr6l4Z ๐ŸŽฅ TestMu AI Customers: https://bit.ly/2TB7pvD ๐Ÿš€ Webinars: https://bit.ly/37i41co ๐Ÿ› ๏ธ Product Updates: https://bit.ly/3717NGO ๐Ÿ’ฌ TestMu AI Certifications: https://bit.ly/3XwW0b0 ๐‚๐จ๐ง๐ง๐ž๐œ๐ญ ๐ฐ๐ข๐ญ๐ก ๐“๐ž๐ฌ๐ญ๐Œ๐ฎ ๐€๐ˆ: ๐Ÿ‘ฅ COMMUNITY: https://bit.ly/3Aiz5oO ๐Ÿ› ๏ธ YOUTUBE: https://bit.ly/3rH2Yfh ๐ŸŒŽ LINKEDIN: https://bit.ly/3xA6F84 ๐Ÿ‘ฅ FACEBOOK: https://bit.ly/37mbQOa ๐ŸฆTWITTER: https://bit.ly/3Cn0g3A ๐Ÿ–ผ๏ธ GITHUB: https://bit.ly/3jowfYs ๐Ÿ”ด NEWSLETTER: https://bit.ly/3juhxzc ๐Ÿ“ธ PINTEREST: https://bit.ly/2VCXI05 #pytestframework #lambdatest #lambdatestyourapps #pytest #seleniumtestscript #pytesttutorial #grouptestinpytest #smoketest #pytestmarkers Disclaimer: This video features materials protected by the Fair Use guidelines of Section 107 of the Copyright Act. All rights reserved to ยฉ 2023 TestMu AI. Any illegal reproduction of this content will result in immediate legal action.

Download

1 formats

Video Formats

360pmp466.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

How To Group Tests Using Markers | pytest Framework Tutorial | Part-V | TestMu AI | NatokHD