TestNG Beginner's Guide
暫譯: TestNG 初學者指南
Varun Menon
- 出版商: Packt Publishing
- 出版日期: 2013-05-20
- 售價: $1,880
- 貴賓價: 9.5 折 $1,786
- 語言: 英文
- 頁數: 276
- 裝訂: Paperback
- ISBN: 1782166009
- ISBN-13: 9781782166009
海外代購書籍(需單獨結帳)
商品描述
Write robust unit and functional tests with the power of TestNG
Overview
- Step-by-step guide to learn and practise any given feature
- Detailed understanding of the features and core concepts
- Learn about writing custom reporting
In Detail
Unit/Functional testing has now become part of every development life cycle. Junit was once the main framework that was used by developers for the purpose of Unit testing when it came to Java. But Junit had certain limitations in terms of execution and features. This book explains about the features and usage of TestNg, a new framework that overcomes Junit’s limitations and provides a lot of extra features.
TestNg Beginner’s Guide is a practical, hands-on guide that aims to increase your knowledge of TestNg. This step-by-step guide will help you to learn and understand the different TestNg features, and you will learn about the advantages and how to use and configure each feature according to your needs.
This book explains the various features of the TestNG testing framework. It provides a step-by-step guide that explains the different features with practical examples and sample programs.You will also learn about how to use and configure each feature based on different test scenarios. We will also take a look at extending TestNG to add custom logging and test-reports. If you are a beginner in TestNG or test frameworks, then this book will help you in learning, practising, and getting started with TestNg.
What you will learn from this book
- Learn about TestNG and its advantages over other frameworks
- Configure/write test-suites in TestNG
- Learn about different Before/After annotations and how to use each one of them
- Pass values to your tests at runtime and make Data-driven tests
- Run tests in parallel
- Define and configure test-suites at runtime
- Extend TestNG to handle test-execution and generate custom reports.
- Include and exclude tests based on the search criteria to your test-suite
Approach
This book is written in a friendly, beginner’s guide style with plenty of step-by-step instructions with appropriate examples.
Who this book is written for
This book is great for developers and testers who are new to TestNg and want to learn how to use TestNG for writing their application as well as functional tests. This book assumes that you have experience in Java and OOPs concepts and have worked with certain IDE.
商品描述(中文翻譯)
撰寫強健的單元測試和功能測試,利用 TestNG 的強大功能
概述
- 逐步指南,學習和實踐任何給定的功能
- 對功能和核心概念的詳細理解
- 學習如何撰寫自定義報告
詳細內容
單元測試/功能測試現在已成為每個開發生命週期的一部分。Junit 曾經是開發人員在 Java 中進行單元測試時使用的主要框架,但 Junit 在執行和功能方面有某些限制。本書解釋了 TestNG 的功能和用法,這是一個克服 Junit 限制並提供許多額外功能的新框架。
TestNG 初學者指南是一個實用的、動手操作的指南,旨在增強您對 TestNG 的知識。這本逐步指南將幫助您學習和理解不同的 TestNG 功能,您將了解其優勢以及如何根據您的需求使用和配置每個功能。
本書解釋了 TestNG 測試框架的各種功能。它提供了一個逐步指南,通過實際示例和範例程式碼解釋不同的功能。您還將學習如何根據不同的測試場景使用和配置每個功能。我們還將探討擴展 TestNG 以添加自定義日誌和測試報告。如果您是 TestNG 或測試框架的初學者,那麼本書將幫助您學習、實踐並開始使用 TestNG。
您將從本書中學到什麼
- 了解 TestNG 及其相對於其他框架的優勢
- 在 TestNG 中配置/撰寫測試套件
- 了解不同的 Before/After 註解以及如何使用每一個
- 在運行時向測試傳遞值並進行數據驅動測試
- 並行運行測試
- 在運行時定義和配置測試套件
- 擴展 TestNG 以處理測試執行並生成自定義報告
- 根據搜索條件包含和排除測試到您的測試套件中
方法
本書以友好的初學者指南風格撰寫,提供大量逐步指導和適當的示例。
本書的讀者對象
本書非常適合對 TestNG 新手的開發人員和測試人員,想要學習如何使用 TestNG 來撰寫他們的應用程序和功能測試。本書假設您對 Java 和物件導向程式設計(OOP)概念有一定的經驗,並且曾使用過某些 IDE。