|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/selenium-java-test-framework/
课程评论:没有评论
## 课程总结:Selenium Java Test Framework & Best Practices - Masterclass 本课程面向希望构建**可读、可维护、可扩展**的 Selenium 自动化框架的学习者,特别强调**行业最佳实践**。课程内容基于 **Selenium 4.x.x**,支持最新的 **Java 21** 和相关库。 **核心亮点:** * **从零开始构建框架:** 使用真实的电子商务实践网站,一步步教授如何从头开始搭建 Selenium 自动化框架。 * **50+ 行业最佳实践:** 详细介绍并演示多种被广泛认可的自动化实践,帮助学员避免常见的“坏味道”。 * **设计模式与 OOP 运用:** 深入讲解如何应用设计模式(如 Page Object Model、Singleton、Factory 等)以及面向对象编程(OOP)概念,提升框架的健壮性和可维护性。 * **API 集成:** 演示如何将 API 集成到自动化框架中,用于跳过 UI 登录、注入测试数据、设置应用程序状态等,这是 Selenium 推荐的最佳实践。 * **代码规范:** 强调并实践 Single Responsibility Principle (SRP) 和 Do Not Repeat Yourself (DRY) 原则。 * **循序渐进的学习路径:** 先从常见的“坏实践”入手,然后逐步“纠正”并演示如何通过实际编码实现最佳实践,并详细解释“是什么”、“为什么”和“如何做”。 * **就业导向:** 培养学员像自动化负责人一样思考、规划、设计框架、编写优化和干净的代码,掌握良好的编程和自动化实践。 * **响应迅速的答疑:** 讲师在 Q&A 部分非常活跃,承诺在 24 小时内(通常在 3-12 小时内)回复学生提问。 **主要涵盖主题:** * **项目设置:** Maven 项目搭建。 * **基础与实践:** 自动化测试实现,坏实践分析与纠正。 * **核心设计模式:** Page Object Model (POM)、Page Factory、POJOs、Composition vs Inheritance、Factory 模式。 * **同步与优化:** 等待技术与最佳实践,测试优化。 * **驱动与配置:** WebDriverManager 自动驱动管理,Maven 和 TestNG/JUnit 的配置与驱动。 * **并行执行:** TestNG、Maven 和 JUnit 的并行执行策略。 * **多环境支持:** 配置和驱动框架以支持多个测试环境。 * **API 集成:** 使用 API 注入 Cookie、设置测试数据和应用程序状态。 * **测试重构:** 将端到端测试转换为原子测试,利用 TestNG Data Provider。 * **报告与集成:** Allure 报告生成,与 GitHub 集成,Jenkins 自动化触发 (Web Hooks, SCM Polling)。 * **其他实用技巧:** 截图(包括全页截图)、OOP 概念在自动化中的应用。 **技术栈:** * **核心:** Selenium, Java, TestNG, JUnit, Maven * **API & 数据:** Rest Assured, Jackson Data bind API * **报告:** Allure * **集成:** GitHub, Jenkins **包含内容:** * 所有讲座代码和笔记均可下载。 * 讲师在 Q&A 部分提供全程支持。 本课程将帮助学员不仅掌握 Selenium 的使用,更能构建出真正高效、易于维护的自动化测试框架。
Course Updates:Nov 2023: The course fully supports latest Selenium version 4.15.0, latest Java 21, and latest versions of all supporting libraries.*This course use Selenium 4.x.x for framework development*Why this course? Do you want to learn how real automation frameworks are built using Selenium by following 50+ industry best practices? Did you learn Selenium in the past, but still figuring out how to go about developing a framework that is Readable, Maintainable and Scalable?Is your team struggling with implementing automation frameworks that really works?Did you learn many bad automation practices in the past that simply doesn't work and want to unlearn all those practices? Then you are at the right place. This course is exactly what you were looking for!I'll take you through an exciting journey of developing Selenium automation framework from scratch using a dedicated live e-commerce practice website!I'll teach you 50+ industry best practices to follow while developing Selenium automation frameworks.I'll teach you about design patterns and how to efficiently use OOP concepts in the framework.I'll show you how to integrate APIs with the automation framework and use those to skip login through UI, to set the test data and to set the application state. All of these are Selenium recommended best practices.I'll show you how to follow Single Responsibility Principle (SRP) and Do Not Repeat Yourself principle (DRY) which are a must while developing the frameworkI'm VERY RESPONSIVE in the Q & A section. I respond to queries within 24 hours. If the time zone difference is not that huge, I can respond within 3-12 hours.We will start with the bad practices first. This is what most of us do when we first start with developing automation frameworks.Then I'll make you unlearn all these bad practices step-by-step by implementing many of the industry best practices using LIVE coding. I'll not only explain you the "what", but also the "why" and "how" while explaining each and every concept. By the end of this course, you are surely going to be confident enough to build Selenium automation frameworks from scratch for any live website. You are going to think like an automation lead, plan and design the automation framework, write optimized and clean code and follow good programming and automation practices.What topics are covered in this course? MANY. Here's the list:Setup the Maven projectHow to automate tests using bad practicesLet's talk bad practicesImplement Page Object Model designCreate Data objects as Java Objects using POJOsSynchronization [Wait] techniques and best practicesOptimizing testsImplement Page Factory and discuss the Pros and ConsAutomatic driver management using WebDriverManagerConfigure and drive framework using MavenSupport multiple browsersConfigure and drive framework using TestNGConfigure and drive framework using Maven and TestNG bothImplement Parallel execution using TestNG and MavenConfigure and drive framework using JUnit [specially for JUnit folks]Parallel execution using JUnit [without ThreadLocal]Implement Singleton Design Pattern for Config propertiesHow to support multiple test environmentsDiscuss issues with writing end to end testsConvert to Atomic testsIntegrate APIsUse APIs to inject cookies to browser and skip login through UIUse APIs to set test dataUse APIs to set application stateRefactor tests to use APIsTestNG Data ProviderReuse Page Objects using CompositionComposition Vs InheritanceDifferent ways to handle Parallel execution issuesFactory design pattern using InterfaceFactory design pattern using Abstract classHow to take screenshotHow to take full page screenshot using AShotWhen to use OOP concepts in automation frameworksAllure Reporting and generate feature rich reportsIntegrate the framework with GitHubAuto-trigger automation from Jenkins using GitHub Web Hooks, SCM Polling and Build FrequencyTechnology stack: SeleniumJavaTestNGJUnitMavenRest AssuredJackson Data bind APIAllureGitHubJenkinsWhat else is included in the course? All the code/notes used in the lectures are available for downloadYou will get my full support in the Q & A