Parallel Execution of Methods In TestNG
Parallel execution of tests in TestNG will discuss about the ability of executing the test methods in parallel based on the test suite configuration. Different thread will start simultaneously and the test methods will be executed in those threads. This will reduce the execution time while running the multiple test methods as a suite. You […]
Parallel Execution of Classes In TestNG
Parallel execution of classes in TestNG will discuss about ability of executing the classes in parallel based on the test suite configuration. Different thread will start simultaneously and the classes will be executed in those threads. This will reduce the execution time while running the multiple classes as a suite. You can achieve this functionality […]
TestNG Assertions
TestNG Assertions will discuss about the Assertions available in the testNG in detail. When you write a test script there should be a verification point in order to mark that test script is passed or failed or any other state. To achieve this in testNG we will user Assertions. Assertion helps you to check or […]
Custom Logger in TestNG
Custom logger in the TestNG will discuss about writing our own logger in TestNG. Logging is one of the most important things to remember in automation testing. Logger will keep on eye of the execution flow that where went wrong in the script or it very useful to debug the script. To generate custom loggers […]
Custom Reporter in TestNG
Custom reporter in testng will discuss about writing our own reporter in TestNG. Reporting is one of the most important things to remember in automation testing. Reports are used to understand the result of the test execution, point of failure, and reasons for the failure. TestNG by default generates a different type of report (i.e. […]
Execute Multiple XML files in TestNG
Execute Multiple Xml files in TestNG will discuss about how to execute multiple xml files in TestNG at a time. For ex. You have more than one xml suite files to execute different types of test scripts in your project. Now you can execute the individual xml files simply that right click on xml file […]
Prioritizing Tests in TestNg
Prioritizing tests in testng will discuss about the order of execution tests in test suite. We will write test methods our own way using @Test annotation. After writing the test cases we will execute the test cases either normally or from the testng.xml file. After execution of the tests if we observe the order of […]
Preserve Order in TestNG
Preserve Order in TestNG will discuss about the order of test case execution in testNG. Usually the order of execution in the testNG will be alphabetical order. Means, if you not set any priority then it will execute the test cases in alphabetical order. In our previous blog (i.e.Prioritizing Tests in testng) we have seen […]
Capture Screenshot for Failed Tests in TestNG
Capture screenshot for failed tests in testNG will discuss about how to take a screenshot when a test case fails while executing the test suite. The screenshot will give the information about on which screen the script got failed during the execution. Then we can easily identify the issue by looking into the screenshot. To […]
Executing Only Failed Tests in TestNG
Executing only failed tests in TestNG will discuss about how we can execute only failed test cases in the test suite once the execution of the suite completed. Most of the times when we execute bulk tests as suite then there is a chance of failing some of the tests. For these failures there may […]