Cargando…

TestNG beginner's guide /

This book is written in a friendly, beginner's guide style with plenty of step-by-step instructions with appropriate examples. 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...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Menon, Varun (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt Publishing, 2013.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; Acknowledgement; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started; Testing and test automation; TestNG; Features of TestNG; Downloading TestNG; Prerequisites; Installing TestNG onto Eclipse; Time for action
  • installing TestNG onto Eclipse; Writing your first TestNG test; The Java project; Time for action
  • creating a Java project; Time for action
  • creating your first TestNG class; Running your first test program; Time for action
  • running tests through Eclipse; Summary.
  • Chapter 2: Understanding testng.xmlAbout testng.xml; Creating a test suite; Time for action
  • creating a test suite; Running testng.xml; Using command prompt; Time for action
  • running testng.xml through the command prompt; Using Eclipse; Time for action
  • executing testng.xml using Eclipse; Time for action
  • configuring Eclipse to run a particular TestNG XML file; Creating multiple tests; Time for action
  • testng XML with multiple tests; Adding classes, packages, and methods to test; Sample project; Creating a test with classes; Time for action
  • creating a test with classes.
  • Creating a test using packagesTime for action
  • creating a test with packages; Creating a test with methods; Time for action
  • creating a test with methods; Creating a test with packages, classes, and methods; Time for action
  • creating a test suite with package, class, and test method; Including and excluding; Include/exclude packages; Time for action
  • test suite to include a particular package; Time for action
  • test suite to exclude a particular package; Include/exclude methods; Time for action
  • test suite to exclude a particular method; Using regular expressions to include/exclude.
  • Prerequisite
  • creating a sample projectTime for action
  • using regular expressions for test; Summary; Chapter 3: Annotations; Annotations in TestNG; Before and After annotations; Time for action
  • running the Before and After annotations; Time for action
  • Before and After annotation when extended; Test annotation; Time for action
  • using test annotation on class; Disabling a test; Time for action
  • disabling a test method; Exception test; Time for action
  • writing an exception test; Time for action
  • writing a exception test verifying message; Time test.
  • Time for action
  • time test at suite levelTime for action
  • time test at test method level; Parameterization of test; Parameterization through testng.xml; Time for action
  • parameterization through testng.xml; Time for action
  • providing optional values; DataProvider; Time for action
  • using Test annotation on Class; Time for action
  • DataProvider in different class; Summary; Chapter 4: Groups; Grouping tests; Time for action
  • creating test that belong to a group; Running a TestNG group; Using Eclipse; Time for action
  • running a TestNG group through Eclipse; Using the testng XML.
  • Time for action
  • running a TestNG group using the testng XML.