You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error : Parameter 'config' is required by @Configuration on method setUp but has not been marked as @optional or defined. #8
I haven't figured out why running the test normally from the java class is not working however running the tests from the XML files (config > single.testng.xml, right click and select run) works without issue.
Activity
thatdudedaniel commentedon Oct 9, 2017
I haven't figured out why running the test normally from the java class is not working however running the tests from the XML files (config > single.testng.xml, right click and select run) works without issue.
Source: https://stackoverflow.com/a/32703593
padmakarsrinivas commentedon Jun 1, 2018
This is happening because, when you are running the java class, it is unable to fetch the values from the XML file while compiling.
The parameterized test can't be run directly, you should run your TestNG XML file.
tdoerner commentedon Nov 27, 2019
My test script runs without any issue when NOT in debug mode. As soon as I try using debug in Intellij I get the above mentioned error.
This is my xml file:
This is the parameters I use to run the debug:
mvn clean test-compile surefire:test -Dmaven.surefire.debug -P test-visual
Any help would be greatly appreciated