Automation Testing Using Junit

所在平台: Udemy

课程主页: https://www.udemy.com/course/automation-testing-using-junit/

课程评论:没有评论

第一个写评论        关注课程

课程简介

**Coursera 课程总结:使用 JUnit 进行自动化测试** 本课程旨在教授学员如何使用 JUnit 这一 Java 单元测试框架,将其融入日常 Java 项目的单元测试开发中。课程内容全面,从环境搭建直至与持续集成工具的整合,帮助学员掌握 JUnit 的核心功能和实际应用。 **课程主要内容包括:** 1. **JUnit 框架类详解:** 深入学习 `JUnitCore`、`Result`、`Failure` 等核心类,理解其在测试执行中的作用。 2. **断言 (Assertion) 的运用:** 掌握如何使用各种断言方法来验证测试结果的准确性。 3. **JUnit 代码执行流程:** 理解 JUnit 测试用例的执行原理和过程。 4. **数据驱动测试:** 学习如何从数据库和 CSV 文件读取测试数据,实现数据驱动的测试方法。 5. **批量执行测试用例:** 掌握配置和执行多个测试用例的技巧。 **此外,课程还涵盖了以下重要主题:** * **Ant 构建工具基础:** * `build.xml` 文件的作用。 * Ant 的目标 (target) 概念及不同类型的目标。 * 如何编写用于 JUnit 测试的目标。 * 通过 Ant 工具整合和执行 JUnit 测试。 * **Jenkins 持续集成工具:** * Jenkins 的配置方法。 * 如何在 Jenkins 中执行 JUnit 测试。 * 将 Ant 与 Jenkins 进行整合,实现自动化测试流程。 * **Eclipse 插件应用:** * 使用 Eclipse 插件方便地运行 JUnit 测试。 * `@RunWith` 和 `@SuiteClasses` 注解的使用,用于组织和运行测试套件。 本次课程提供视频讲座中展示的源代码供学员下载,方便学习和实践。

课程评论(0条)

课程详情

JUnit is a unit testing framework for the Java programming language. JUnit has been important in the development of test-driven development, and is one of a family of unit testing frameworks collectively known as xUnit that originated with JUnit. This tutorial will teach you how to use JUnit in your day-2-day life of any project unit testing while working with Java programming language. The Video includes from setting up the environment till integration with CI tools In this training course, attendees will learn the following 1. Working with Junit framework classes such as JUnitCore, Result, Failure class etc. 2. How to use Assertion. 3. How the execution of code take place in Junit. 4. Reading the test data from Database & CSV Files (Data Driven Testing) 5. How to do batch execution of testcases. Basic of Ant build Tool 1. What is build.xml. 2. What is a target, different type of target present in Ant. 3. How to write target for Junit. 4. Integration execution of Junit using Ant tool. Continuous Integration Tool Jenkins 1. Configuring the Jenkins. 2. Execution of Junit from Jenkins. 3. Integration of Ant with Jenkins. Eclipse Plugin 1. Run the Junit using eclipse plugin 2. @Runwith & @SuiteClasses Annotation And source code shown as part of video lecture will be provided for download

课程标签

0人关注该课程

主题相关的课程