TestNG Tutorial
TestNG Reporting Customization
We have introduced how to create TestNG default report Html and XML files in the article TestNG Report Example. But you may find it is not enough for you. Because the original reports generated by TestNG have some inconvenience, it is so basic. TestNG provide an IReporter interface that you can implement to create a …
TestNG Report Example
When you create and run a TestNG project, it will generate a lot of Html or XML report files. The report files include a huge amount of useful information that can help you to check the test case status, debug test case steps and show test case execution results to your manager. So it is …
Selenium Keyword Driven And Hybrid Framework
There are three kinds of test Frameworks in Selenium testing. They are Keyword Driven Framework, Data Driven Framework, and Hybrid Framework. With these frameworks, we can separate java code and test data in the test program. So your java code is more readable and reusable, the automation script is more portable, and script maintenance cost …
Run Selenium Test Case Use TestNG
TestNG is an automation test framework. It has a lot of useful features such as graphic execution result reports, annotation support. Selenium webdriver is popular in web-based application automation, but it can not generate reports. So most selenium testers like to use TestNG and Selenium webdriver together to build their automation framework.
TestNG Eclipse Plugin
You have learned how to download and run TestNG with the command line in the article TestNG First Example. But it is so inconvenient. There is an Eclipse plugin that can help you to write and run the TestNG test method in java class easily and quickly. Below is the tasks list which you can …
TestNG First Example
TestNG is an automated test framework which can be used to make all kinds of tests includes unit test, integration test, and functional test. It is inspired by JUnit but more easier and powerful than JUnit. It requires Jdk5.0 or higher. You can use it to test just a single java method or an enterprise-level …
TestNG Parameterized Testing Via DataProvider Or Testng.xml
There are a lot of times that you need to run the same test case with different test data. This is called parameterized testing. TestNG provide two option that you can choose to pass test data to your test method. Pass test data when define test case in testng.xml. Use DataProvider to read test data from …
TestNG Parameterized Testing Via DataProvider Or Testng.xml Read More »