Testng 简明教程

TestNG Tutorial

TestNG 是一个在 JUnit 和 NUnit 的基础上开发的测试框架,但是它引入了一些新功能,使其更强大、更易于使用。TestNG 旨在涵盖所有类别的测试:单元、功能、端到端、集成等,并且它需要 JDK 5 或更高版本。本教程将提供对 TestNG 框架的良好理解,该框架对于测试企业级应用程序,使其具有鲁棒性和可靠性是必需的。

TestNG is a testing framework developed in the lines of JUnit and NUnit, however it introduces some new functionalities that make it more powerful and easier to use. TestNG is designed to cover all categories of tests: unit, functional, end-to-end, integration, etc., and it requires JDK 5 or higher. This tutorial provides a good understanding on TestNG framework needed to test an enterprise-level application to deliver it with robustness and reliability.

Audience

本教程为希望按照简单、轻松的步骤学习 TestNG 框架功能并在实践中实施的软件专业人士而设计。

This tutorial is designed for software professionals interested in learning the features of TestNG Framework in simple and easy steps and implement it in practice.

Prerequisites

在继续本教程之前,您应具备 Java 编程语言、文本编辑器和程序执行等方面的基本了解。由于您将使用 TestNG 来处理所有级别的 Java 项目测试,因此,如果您具备软件开发和软件测试流程方面的先前知识,将很有帮助。

Before proceeding with this tutorial, you should have a basic understanding of Java programming language, text editor, and execution of programs, etc. As you are going to use TestNG to handle all levels of Java project testing, it will be helpful if you have a prior knowledge of software development and software testing processes.