Learn AI, Data Science & Business — Earn Certificates That Get You Hired
Get 20% off all career paths from fullstack to AI
Overview
AI, Data Science & Cloud Certificates from Google, IBM & Meta — 40% Off
One plan covers every Professional Certificate on Coursera. 40% off Coursera Plus Annual.
Unlock All Certificates
Learn data-driven testing techniques in Playwright Python through this comprehensive 20-minute tutorial. Master the fundamentals of parameterizing tests by replacing hard-coded values with variables and utilizing the @pytest.mark.parametrize() fixture. Discover how to extract test data from external sources including CSV and JSON files to create more maintainable and scalable test suites. Follow along with practical demonstrations that guide you through creating a simple test, parameterizing it with variables, and then progressively implementing data retrieval from both CSV and JSON file formats. Explore complete code examples including functions for reading CSV data using Python's csv.DictReader and parsing JSON data with the json.load() method. Gain hands-on experience with file handling, data structure manipulation, and pytest parameterization techniques essential for building robust automated testing frameworks with Playwright Python.
Syllabus
Playwright Python 10 | Data Driven Testing
Taught by
Automation Step by Step