Home > @Optional annotation with parameter

How to use @Parameters and @Optional annotations in the TestNG

TestNG @Parameters One of the important features of TestNG is parameterization. This annotation allows the user to pass parameter values to test methods through the testng.xml file. @Parameters({"param-name"}) Let's write a simple example of passing parameters to test methods through the XML configuration file. Steps to Perform: Open chrome and enter the Demo

This Article is TAGGED in , , , . Read more