Coursera Plus Annual Nearly 45% Off
Power BI Fundamentals - Create visualizations and dashboards from scratch
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
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