Ways to run multiple testng.xml in Java

TestNG provides different ways to run multiple testng.xml files Through code Through testng.xml itself TestNG tutorial For this post let’s consider these below 2 testNG classes TestNG1.java TestNG2.java Now let’s create 2 testng.xml for the above classes testng1.xml testng2.xml for individual testng.xml file run we can right click on the testng.xml and run. But let’s…

TestNG Parametrisation – @Parameters & @Optional

TestNG provides a way to get the data from external sources like from excel/textfile/arrays which helps to prepare data driven framework in automation. @Parameters – pass parameters from the testNG.xml @dataProvider – Pass the parameters as a 2D array. reference – https://testng.org/doc/documentation-main.html#parameters In this post we will look into the testNG @Parameters Let’s see the code implementation…