Learn Playwright with Javascript

所在平台: Udemy

课程主页: https://www.udemy.com/course/learn-playwright-with-javascript/

课程评论:没有评论

第一个写评论        关注课程

课程简介

**Playwright with JavaScript 课程总结** 本 Coursera 课程“Learn Playwright with Javascript”专注于教授学员如何使用 Playwright 这款强大的工具进行高效且 robust 的 Web 及 API 自动化。课程内容涵盖了从入门到高级的广泛主题,旨在帮助专业人士和爱好者精通 Playwright 的各项功能。 **核心内容概览:** * **Playwright 基础:** 介绍 Playwright 及其在 Web 自动化中的重要性,并提供跨平台安装和设置的详细指南。 * **测试创建与执行:** 教授如何编写基本的测试脚本,并在不同浏览器中运行和优化测试。 * **定位器 (Locators):** 深入讲解 XPath, CSS, Property 等各种定位器及其在 Playwright 中的应用,以及 Playwright 内置的便捷定位器。 * **自动化脚本生成:** 利用 Playwright 的 Test Generator 工具(Record and Play)加速脚本创建流程。 * **断言 (Assertions):** 介绍断言的概念,区分 Hard vs Soft Assertions 及其适用场景,确保测试结果的准确性。 * **Web 元素交互:** 提供处理输入框、单选按钮、复选框、下拉菜单(包括多选、Bootstrap、自动建议、隐藏下拉)的实用技巧。 * **高级 Web 场景处理:** 涵盖处理对话框/警报、多窗口、Frame(包括内嵌 Frame)、Web 表格、日期选择器、鼠标操作(hover, right-click, double-click, drag-and-drop)以及键盘操作。 * **文件上传:** 教授自动化文件上传的策略。 * **Playwright 高级特性:** 介绍 Playwright hooks、测试分组、截图、录制视频、使用 Trace Viewer 进行测试分析、测试标签化和注解。 * **设计模式与报告:** 讲解 Page Object Model(POM)模式以实现可扩展、可维护的测试自动化,并探索不同的报告选项,特别是 Allure 报告的生成与解读。 * **API 测试:** 演示如何利用 Playwright 进行 API 测试。 * **JavaScript 基础 (附加讲座):** 提供 JavaScript 基础知识,作为课程的补充。 通过理论与实践相结合的方式,本课程旨在使学员能够熟练运用 Playwright 应对复杂的 Web 自动化挑战,并在不断发展的软件测试领域保持领先地位。

课程评论(0条)

课程详情

Course Mastering Web & API Automation with PlaywrightCourse Description: Playwright has emerged as a powerful tool in the realm of web automation, offering a comprehensive solution for testing and interacting with web applications across various browsers. This course is designed for professionals and enthusiasts eager to leverage Playwright's capabilities for efficient and robust web automation. With a focus on practical application, participants will gain hands-on experience in creating, running, and optimizing tests using Playwright.Course Contents:IntroductionOverview of Playwright and its significance in web automation.InstallationStep-by-step guide on installing and setting up Playwright for different programming languages.How to create & Run tests in PlaywrightCreating a basic test script and executing it in different browsers.Locators - XPath, CSS, PropertyIn-depth exploration of various locators and their usage in Playwright.Built-in LocatorsUnderstanding Playwright's built-in locators for efficient element identification.Record and Play scripts - Test GeneratorUtilizing the test generator to automate script creation for accelerated workflow.AssertionsIntroduction to assertions for validating expected outcomes.Hard vs soft assertionsDifferentiating between hard and soft assertions and their suitable applications.Handle Web ElementsPractical guidance on interacting with input boxes, radio buttons, checkboxes, and dropdowns.Handling multi-select dropdownTechniques for handling multi-select dropdowns in web applications.Handling bootstrap drop-downStrategies for dealing with Bootstrap dropdown menus.Handling Auto-suggest dropdownImplementing automation for auto-suggest dropdowns.Handling hidden dropdownTechniques to interact with hidden dropdowns in web pages.Handling Dialogs/AlertsManaging pop-up dialogs and alerts during automation.Handle Multiple windowsStrategies for automating scenarios involving multiple browser windows.Handling framesTechniques for working with frames within web pages.Handling inner framesIn-depth exploration of handling nested frames.Handling web tableStrategies for interacting with and validating data in web tables.Handling date pickersTechniques for handling date pickers in web applications.Handling mouse actionsPerforming mouse actions such as hover, right-click, double-click, and drag-and-drop.Keyboard actionsAutomating interactions using keyboard actions.Upload filesStrategies for automating file uploads in web applications.Playwright hooksLeveraging Playwright hooks for advanced automation scenarios.Grouping testsOrganizing and executing tests in logical groups.Capture screenshotsImplementing screenshot capture for test result documentation.Recording videosRecording test execution for comprehensive analysis.Tracing tests with trace viewerUtilizing trace viewer for in-depth test analysis.Tagging testsImplementing test tagging for better organization and filtering.AnnotationsAdding annotations for improved test documentation.Page Object ModelIntroduction to the Page Object Model for scalable and maintainable test automation.ReportersExploring different reporting options for test results.Allure reportsGenerating and interpreting reports using Allure.API testing with PlaywrightExtending Playwright for API testing.JavaScript Fundamentals(Bonus Lectures)Join us in this comprehensive journey to master web automation with Playwright and stay ahead in the ever-evolving landscape of software testing.

课程标签

0人关注该课程

主题相关的课程