To perform cross browsing through TestNG @Parameter,
We have to by pass-through @Parameter annotation and define variable value in tag,
Case: When we have multiple .XML suites, And each .xml suite contains more than 5 or 7 or 10+ Test scripts.
On that scenario, we have to define parameter value for each browser with repetition of classes. Step forward if there are 50 Test class, So if will define total 150 times, Which is not meaningful at all.
<suite name="Suite">
<test name="ChromeTest">
<parameter name="browser" value="chrome" />
<classes>
<class name="Demos.Demo01" />
<class name="Demos.Demo02" />
<class name="Demos.Demo03" />
<class name="Demos.Demo04" />
</classes>
</test>
<!-- Test -->
<test name="FirefoxTest">
<parameter name="browser" value="Firefox" />
<classes>
<class name="Demos.Demo01" />
<class name="Demos.Demo02" />
<class name="Demos.Demo03" />
<class name="Demos.Demo04" />
</classes>
</test>
<test name="EdgeTest">
<parameter name="browser" value="edge" />
<classes>
<class name="Demos.Demo01" />
<class name="Demos.Demo02" />
<class name="Demos.Demo03" />
<class name="Demos.Demo04" />
</classes>
</test>
<!-- Test -->
</suite>
<!-- Suite -->
Please share the effective way to manage,
Is there any other way in TestNG or Selenium to define the parallel browsing scope to have cross browsing on Local system? Except(Selenium Grid)