Date Created: 2010-06-20 08:08:11 -0500 (Sun, 20 Jun 2010) Date Created: 2016-08-08 19:58:27 -0500 (Mon, 08 Aug 2016)

Web Automation with Testng

Overview

 As described on its website, TestNG is a "JUnit-inspired test framework with extra functionality.

Data Set Driven Testing

Here is an example of a TestNG class that uses a data set at the method level.

Maven Configuration - See the 'suiteXmlFiles' element in the Surefire plugin to see how to specify the TestNG configuration.

Testng Configuration - I need to clean the commented code up in this file, but what is active/uncommented works :) Note: The commented code was my attempt to get Testng and JUnit to co-exists in the same Maven project, but I found that the latest of each are not compatible :( So for now, it is one or the other.

Test Report - See the file named 'emailable-report.html'.

Resources

 

Basics
    
    http://learn-automation.com/testng-tutorials-for-beginners/

Data Driven Testing    

    http://learn-automation.com/data-driven-framework-in-selenium-webdriver/

Tests Suites

    http://learn-automation.com/group-test-cases-in-selenium/

Parallel Execution

    http://learn-automation.com/parallel-execution-in-selenium/
    
Run Test Suites from a Java main() Class

    http://learn-automation.com/execute-selenium-test-from-command-line/

        java org,testng.TestNG testng.xml testng2.xml testng2.xml

    
Testng Reports with Screenshots

    http://learn-automation.com/advance-selenium-reporting-with-screenshots/
    http://learn-automation.com/advance-selenium-reporting-with-screenshots-2/
    

            

Date Created: 2017-05-13 07:49:00 -0500 (Sat, 13 May 2017)



back    |    top
 
Date Created: 2010-06-20 08:08:33 -0500 (Sun, 20 Jun 2010)