TestNG  For  SELENIUM

 

  • TestNG | Introduction

    • What is TestNG
    • TestNG Features
    • TestNG Advantages
    • Test case writing in TestNG
    • Benefits of TestNG over JUnit
  • TestNG | Installation

    • How to Install TestNG in Eclipse
    • TestNG Installation in Eclipse
  • TestNG | First TestNG Script

    • Create TestNG project
    • Create TestNG class
    • Execute the TestNG script
  • TestNG | Annotations

    • Advantages Of TestNG Annotations in Selenium
    • Annotations Hierarchy in TestNG
    • Basic Annotations
    • Advanced Annotations
    • Annotations with Description
    • Example of TestNG Annotations in Selenium
  • TestNG | Execution Sequence of Annotations

    • TestNG Annotations
    • Execution Sequence of TestNG Annotations
    • Annotation sequence program
  • TestNG | Build Test Suite / TestNG.xml file

    • Create TestNG.xml File
    • Example TestNG.xml file for Single Class
    • TestNG.xml code Explanation
    • Example TestNG.xml file for Multiple Class
    • Execute a testng.xml file to create TestNG.xml File
  • TestNG | Skip / Disable Tests in TestNG

    • Ways to Skip / Disable / Ignore Tests in TestNG
    • Making parameter “enabled” as “false”.
    • Using the “exclude” parameter in testng.xml.
    • Using the “throw new SkipException()” in the if condition to Skip / Ignore Test.
  • TestNG | Prioritizing of Test Cases

    • Without / Zero Priority
    • Example Execute Test case without / Zero priority
    • With Priority
    • Example Execute Test case with Priority
  • TestNG | Grouping of Test Cases

    • Grouping Syntax
    • Grouping Example with Scenario
    • Example Grouping test cases in TestNG
    • Running a TestNG group through testng.xml
  • TestNG | Exception

    • Syntax Assign exception to the method
    • Example Without exception handling
    • Example With Exception handling
    • Example With and Without Exception in TestNG
  • TestNG | Parameterization Using TestNG.xml file

    • Parameterization Using TestNG.xml Description
    • Example of Parameterization Using TestNG.xml
  • TestNG | Parameterization Using @DataProvider

    • Parameterization Using @DataProvider Description
    • Syntax Of @DataProvider
    • Example of Parameterization Using @DataProvider
  • TestNG | Parallel Execution in TestNG

    • Advantages of parallel execution using TestNG
    • Features of parallel execution using TestNG
    • Example of Parallel Execution in TestNG
    • without mentioning parallel attribute in TestNG.xml
  • TestNG | Hard / Soft Asserts

    • There are two types of Assert in TestNG
      • Hard Assert
      • Soft Assert
    • Package
    • Different Hard Assert Statements
    • Different Soft Assert Statements
    • Create object/instance of Hard / Soft assert
    • Example of Hard / Soft Asserts in Selenium
  • TestNG | Listeners

    • TestNG provides the list of below listeners
    • When we use ITestListener
    • Methods in ITestListener are below
  • TestNG | IRetryAnalyzer – How to Run Failed Test Cases

    • Why failed test cases Re-Run in Selenium again
    • There are several reasons for the failure of the test
    • How to re-run failed test case in Selenium
  • TestNG | HTML Reports

    • Why do we need reporting
    • TestNG Reporting
    • Two types of reports generated using TestNG
      • Index.html
      • emailable-report.html

Overview of TestNG for Selenium

 

TestNG Testing Framework:

  • TestNG is an advance framework designed to take advantage of the benefits of both the developer and the testers.
  • TestNG is an open source framework that is distributed under the Apache software license and is easily available for download.
  • Due to its advance facilities, TestNG is considered to be better than JUnit.

 

Features of TestNG:

  • Support for Annotations.
  • There is no need to create a test suite for advance performance mechanism.
  • Support for Parameters.
  • Support for data driven testing with the help of data providers.
  • Setting execution priorities for test methods.
  • Supports threat safe environments while executing multiple threads.
  • Easily supports integration with various tools and plug-ins such as construction equipment (ant, maven etc), integrated development environment (eclipse).
  • Using reportNG makes the user comfortable with the effective medium of report generation.

 

Advantages of TestNG:

  • TestNG annotation test cases are easy to make.
  • Test cases can be grouped and get prioritized more easily.
  • Supports Parameterization.
  • Supports data driven testing using Dataproviders.
  • Generates HTML reports.
  • Parallel test execution is possible.
  • Easily supports integration with other devices and plugins such as Eclipse IDE, build Tools Ant, Maven etc. …

TestNG SELENIUM Tutorial Basic to Advance with Example selenium testng framework and TestNG SELENIUM Tutorial and testng for selenium webdriver and TestNG SELENIUM Tutorial and testng tutorials and TestNG SELENIUM Tutorial