While running my test suite from testng.xml for parallel browsers, tests are getting executed properly but on running same tests from my testscriptclass file getting below error.
FAILED CONFIGURATION: @BeforeTest setup org.testng.TestNGException: Parameter 'browser' is required by @Configuration on method setup but has not been marked @Optional or defined in C:\Users\hp\AppData\Local\Temp\testng-eclipse-1150453903\testng-customsuite.xml
My question is Is it necessary to use @optional annotation in method under .java class while running selenium test using @Parameters ?