I just got a error when I try to run a unit test in Eclipse with TestNG, the error message is: Reference to undefined variable env.DOMAIN_PATH
but this problem does not exist when I run it in Intellj or with maven.
any one experience this problem?
I use Eclipse Mars.2 Release (4.5.2), and updated TestNG plugin version 6.9.12.201607091356
thanks.
When I was trying to run TestNG, I got the same error. I changed the preferences in Eclipse for TestNG -> Maven so that systemPropertyVariables and environmentVariables are unchecked, and I was able to run the test cases successfully.
Before
After
I faced the same issue. and for me, it worked by unchecking all the options from Preferences->TestNG-> Maven.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With