|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/cypress-web-automation-testing-from-zero-to-hero/
课程评论:没有评论
课程名称:Cypress:从零到英雄的网页自动化测试 课程概述: 本课程将全面讲解Cypress框架,让您深入了解如何使用该框架的所有关键功能。Cypress是一个现代化的基于JavaScript的框架,具备开箱即用的所有必要工具:测试运行器、断言库、报告工具等等。我们将在课程中将其轻松整合到前端应用中,测试将在与应用程序同一运行循环中执行,因此速度非常快!如果您之前从未使用过JavaScript,也不用担心。Cypress的自动化测试写作更像是遵循Cypress命令的顺序来执行浏览器中的某些操作,而不是真正的编程。对于编程新手,课程中还包含JavaScript基础部分。 我们将从网页UI自动化的基本概念开始,让您打下扎实的基础(从零开始)。即使将来使用其他网页自动化框架,您在本课程中学到的基础知识将伴随您终生,且非常有用。我保证,您将在构建网页上任何元素的定位器方面成为英雄,这是UI自动化中最重要的一部分,我会详细讲解这个内容。 与许多其他自动化框架不同,Cypress还可以与API进行交互,您可以使用Cypress进行API测试的自动化。如果您对API不熟悉,课程中会从零开始讲解Cypress与API交互的功能。虽然不建议基于Cypress构建API自动化框架,但其API能力在端到端测试中非常有用,我们将在课程中探讨这些用例。 此外,我们将讨论页面对象的使用,这对于测试的维护至关重要。当您的测试数量达到200-300个时,代码的可维护性变得至关重要。合理的页面对象结构是代码重用(无需复制粘贴代码)和可维护性的关键。 课程还将涵盖不同的高级主题,例如环境变量、多报告设置、Cypress重试失败测试的配置,最后,我们将在Docker容器中运行测试。如果您对Docker是首次接触,也无需担心,我们将讨论一些基本的Docker概念。 课程结束时,相信您一定会成为Cypress方面的英雄!
This class will give you a complete understanding of what is Cypress framework and you will learn how to use all key framework capabilities. Cypress is a very modern JavaScript-based framework. It has everything you need right out of the box: Test Runner, Assertion libraries, reporters and so on. It s very nicely and easily can be integrated into the front-end application (this is what we will do in the class) and your tests will be executed in the same run loop as your application. That's why this framework is very fast! And don't worry if you never used JavaScript before. Writing automation tests in Cypress looks more like knowing what sequence of the Cypress commands you should call to perform certain actions in the browser. It s not really programming. It's a kind of scripting following Cypress rules. For those who is new to the programming - there is a section about JavaScript fundamentalsWe will start with the very basic concepts of Web UI Automation so you will have the right foundation from the beginning (From Zero). Even if you will use any other framework for web automation in the future, the basics from this class will remain with you forever and will be very useful. I promise that you will be a HERO in building locators for any web element on the page. This is one of the most important parts of UI Automation and I have dedicated many minutes to a detailed explanation of that.Unlike many other Automation frameworks, Cypress can interact with APIs as well and you can automate API testing with Cypress actually. So again, if you don't know what API is about, we will start with Zero and learn everything you need to know about Cypress's capabilities for API interaction. I would not recommend building API automation framework based on Cypess, but its API capability is very useful in E2E testing and we will cover the use cases for that in this class.And we definitely go through Page Objects, which is very important to use! When you have 10 to 20 tests, you can maintain your code as is, but when you have 200-300 tests, the maintainability of the test framework is a number one priority. The right structure of page objects is a key to code reusability (no copy/pasting your code) and maintainability.Also, we will go through different advanced topics such as environment variables, setting up multiple reporters, cypress retry for failed tests, and eventually, we will run tests in Docker Container. If that will be your first experience with Docker, no worries, we will talk about basic Docker concepts as well.By the end of the class, trust me, you will be a Cypress Hero:)