Golden test framework with Java/Selenium/TestNG/Maven/Log4j2

所在平台: Udemy

课程主页: https://www.udemy.com/course/golden-test-framework-with-javaseleniumtestngmavenlog4j2/

课程评论:没有评论

第一个写评论        关注课程

课程简介

Coursera 课程《Java/Selenium/TestNG/Maven/Log4j2 黄金测试框架》课程总结: 本课程旨在教授学员如何使用 IntelliJ, Java, Selenium WebDriver, TestNG, Maven 和 Apache Log4j2 构建一个完整的自动化测试框架。课程分为两个部分: **第一部分:基础知识和框架构建基础** * **Java 基础:** 教授开始自动化所需的足够 Java 知识。 * **软件环境搭建:** 讲解所需软件的安装和配置。 * **Selenium WebDriver 基础:** 介绍 Selenium WebDriver 的基本用法和常用 Chrome 选项 (ChromeOptions)。 * **HTML 基础:** 讲解用于 Web 自动化所需的 HTML 知识。 * **元素定位:** 掌握使用 XPath 和 CSS 选择器定位网页元素。 * **HTML 元素处理:** 学习如何处理下拉菜单、输入框、复选框、框架 (frames)、弹窗 (alerts)、表格 (tables)、列表 (lists)、日期选择器 (date pickers)、窗口切换等常见的 HTML 元素。 * **Java 工具类开发:** 演示如何创建实用的 Java 工具类,例如用于动态生成测试用例所需日期的格式化工具。 * **枚举 (Enums) 的应用:** 学习为静态下拉菜单创建枚举类并将其集成到框架中。 **第二部分:基于 Page Object Model (POM) 的实际框架构建** * **Maven 集成:** 在掌握基础知识后,学习集成 Maven。 * **Page Object Model (POM) 设计模式:** 深入讲解 POM 设计模式,这是自动化多页面应用程序的关键。通过将自动化逻辑与测试脚本分离,提高框架的可维护性,使测试脚本更易读,更偏向脚本化,即使编程经验较少的同事也能轻松创建测试。 * **断言 (Assertions) 的使用:** 学习使用不同类型的断言,并理解硬断言 (hard assertions) 和软断言 (soft assertions) 的区别。 * **智能等待 (Smart Waits) 的实现:** 介绍和实现智能等待机制。 * **全局属性文件:** 学习设置全局属性文件,用于管理用户名、密码等敏感信息。 * **截图 (Screenshots):** 学习如何在测试过程中进行截图。 * **JavaScript Executor 的使用:** 掌握使用 JavaScript Executor 执行 JavaScript 代码。 * **TestNG XML 控制:** 学习通过 TestNG XML 文件来控制测试用例的执行。 * **TestNG 参数化:** 学习 TestNG 的参数化技术。 * **DataProvider 注解:** 掌握 DataProvider 注解的使用,实现数据驱动测试。 * **TestNG Listeners 的实现:** 学习如何实现 TestNG Listeners。 * **命令行执行测试:** 学习如何从命令行执行测试,为与 CI/CD 工具(持续集成/持续交付)集成打下基础。 * **Log4j2 日志框架:** 学习使用 Log4j2 进行日志记录,包括 XML 和 properties 文件的配置,以及实现每个测试运行后生成新的日志文件。 * **组件集成:** 在整个过程中,会将以上所有组件集成到一个可工作的测试框架中。 课程完成后,学员将能够使用所有必要的组件,独立创建完整的 Web 应用程序自动化测试框架。课程还将持续更新,加入新的主题。

课程评论(0条)

课程详情

In this course i will teach you to build a test framework with IntelliJ using Java, Selenium WebDriver, TestNG, Maven and Apache Log4j2.The course is divided in to two parts. The first part is the lessons part. In this part I will teach you the basics of selenium, testNG and the foundations of building our framework.Once the foundations are set we can carry on to the second part.In the second part we will build a test framework based on automating a real website.The framework will be built according to the Page Object Model (POM) design pattern. The POM is a concept that is used a lot to automate multiple page applications. Here we segregate the automation from our tests. This makes the framework more maintainable. Your tests will also be easier to read and will be more script based. Even a collegue with less programming experience can create some tests in this framwork.After this course you will be able to create a whole framework for automated testing of webapplications with all its necessary components.I will also keep updating the course with new subjects in the future.Here is a more detailed overview of the subjects i will teach:- Enough Java knowledge to start automating- Setting up the software needed - Basic methods of Selenium WebDriver- Some handy ChromeOptions - HTML knowledge for automating web applications- Finding elements with xpath and css- Handle basic html elements such as dropdowns, inputfields, checkboxes, frames, alerts, tables, lists, date pickers, switching windows, etc- Creating handy tools with java such as a dynamic date formatter for your test cases- Creating enums for static dropdowns and implementing them in the framework- Integrating Maven after learning basics- How to build a Page Object Model Designed framework- Usage of different Assertions - Difference between hard and soft assertions- Implementing smart wait's- Setup global properties file for usernames and passwords etc- Take screenshots- Using the JavaScript Executor- Controlling test cases with the testNG xml- TestNG Parameterization- DataProvidor annotation- Implement TestNG listeners- Executing tests from the command line so we can link the project to a tool for CI/CD (Continuous Integration / Continuous Delivery)- Setting up log4j2 for logging with an xml and a properties file.- Create new logging files after each test run- Integrating all of above components in a working framework while teaching

课程标签

0人关注该课程

主题相关的课程