TestNG Tutorials 47: Marking a Parameter as Optional in TestNG

Hello folks, When we parametrize methods in a TestNG class, we must need to pass parameter values from testng xml. If we do not pass we get an exception. We will see an example below: TestNG class: Testng xml without parameters: Output: When we define a parameter in a method of a testng class, TestNG … Continue reading TestNG Tutorials 47: Marking a Parameter as Optional in TestNG