|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/playwright-python-pytest/
课程评论:没有评论
课程名称:Playwright Python 和 Pytest 网页自动化测试 课程概述:Playwright 是微软推出的一款现代、高效且可靠的浏览器自动化工具,能够在多个现代浏览器中进行测试和自动化,包括 Chromium、Firefox 和 Webkit。Pytest 是一个流行的 Python 测试框架,提供了一种简单而灵活的方式来编写和运行测试。本课程将教您如何将 Playwright 的功能与 Pytest 框架结合使用,借助 pytest-playwright 插件。 本课程专为初学者设计!即使您对网页自动化一无所知,也没关系!我们将逐步讲解 Playwright 和网页自动化的基础知识,包括: - 定位网页元素的不同方法,如角色、文本、CSS 选择器和 XPath 等 - 对网页元素执行操作,如点击和填写表单 - 事件处理,包括自动等待、页面导航和下载等 - 使用您的 Google 帐户进行身份验证 作为额外福利,我们还将开发一个脚本,自动检查邮箱中的新邮件并反馈结果,即自动邮箱检查! 在掌握网页自动化后,我们将开始测试部分。如果您对自动化测试或测试完全陌生,也不用担心!您将从编写基础测试开始,逐步到部署自动化测试,包括: - Pytest 的测试基础 - Playwright pytest 插件 - Playwright 工具,如迹象查看器和代码生成器 - 使用 expect() 进行网络优先断言 - 解决现代测试问题的 UI 测试平台 - 使用测试钩子实现的 Playwright fixtures 和自定义设置/拆卸 - 实现页面对象模型(POM) - 处理网络事件 - REST API 测试、身份验证和 API 请求上下文 - 优化技术,如并行执行 - 将自动化测试部署到 CI - 使用预定义测试数据参数化测试 - 基于行为的开发(BDD)与 Python behave 以及更多内容… 通过本课程,您将能够编写自动化测试,并使用 Playwright 和 Pytest 进行快速、可靠和高效的测试与自动化。
Playwright is a modern, fast and reliable browser automation tool from Microsoft that enables testing and automation across all modern browsers including chromium, firefox and webkit. Pytest is a popular Python testing framework that offers a simple and flexible way to write and run tests. In this course, you will learn how to blend Playwright capabilities into the Pytest framework with the use of pytest-playwright plugin.This course is designed for beginners in mind! It's alright if you don't anything about web automation! We will cover all the basics of Playwright and Web Automation Essentials, step by step -Different method to locate web elements like role, text, css selectors, xpath, etc.Perform actions on web elements like clicking, filling forms, Events like Auto-waiting, page navigation, downloads, etc.Authentication with your google accountAs a bonus, we will develop a script to automatically check for new emails in our inbox and report them back i.e. automated mail checking!After learning web automation, we will start with testing. Again, it's alright if you're new to automation testing or testing at all! You'll go from writing a basic test to deploying automated tests -Basics of testing with pytestPlaywright pytest pluginPlaywright Tools like trace viewer, codegen, etc.Web-first assertions using expect( )Solve modern testing problems with UI Testing PlaygroundPlaywright fixtures, custom setup/teardown using test hooks, , etc.Implement Page Object Model (POM)Handle network eventsREST API Testing, authentication and API request contextOptimizations techniques like ParallelismDeploy automated tests to CIParameterize tests with predefined test dataBehaviour Driven Development with python behaveand more...By the end of the course, you will be able to write automated tests and perform fast, reliable, and capable testing and automation using Playwright and Pytest.